diff --git a/src/Enums/PropertyEnumeration.php b/src/Enums/PropertyEnumeration.php
index 5c24a90a..bd10ff38 100644
--- a/src/Enums/PropertyEnumeration.php
+++ b/src/Enums/PropertyEnumeration.php
@@ -193,6 +193,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;
@@ -313,6 +314,7 @@ class PropertyEnumeration
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;
@@ -352,7 +354,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 +392,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;
@@ -900,7 +903,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 +933,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 +996,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;
@@ -1302,6 +1309,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 +1355,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 +1395,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 +1436,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 +1462,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;
diff --git a/src/Enums/PropertyEnumeration/ObservedNode.php b/src/Enums/PropertyEnumeration/Asin.php
similarity index 55%
rename from src/Enums/PropertyEnumeration/ObservedNode.php
rename to src/Enums/PropertyEnumeration/Asin.php
index 93bf632b..7f6f5f19 100644
--- a/src/Enums/PropertyEnumeration/ObservedNode.php
+++ b/src/Enums/PropertyEnumeration/Asin.php
@@ -6,8 +6,8 @@
* This enumeration contains a value for all properties in the https://schema.org/ and https://openactive.io/ vocabularies.
*
*/
-class ObservedNode extends \OpenActive\Enums\PropertyEnumeration
+class Asin extends \OpenActive\Enums\PropertyEnumeration
{
- const value = "ObservedNode";
- const memberVal = "https://schema.org/observedNode";
+ const value = "Asin";
+ const memberVal = "https://schema.org/asin";
}
diff --git a/src/Enums/PropertyEnumeration/CheckoutPageURLTemplate.php b/src/Enums/PropertyEnumeration/CheckoutPageURLTemplate.php
new file mode 100644
index 00000000..1a5d4512
--- /dev/null
+++ b/src/Enums/PropertyEnumeration/CheckoutPageURLTemplate.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..e3404d1d 100644
--- a/src/Models/SchemaOrg/APIReference.php
+++ b/src/Models/SchemaOrg/APIReference.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"assembly" => "assembly",
- "targetPlatform" => "targetPlatform",
"executableLibraryName" => "executableLibraryName",
+ "targetPlatform" => "targetPlatform",
"programmingModel" => "programmingModel",
"assemblyVersion" => "assemblyVersion",
];
@@ -28,7 +28,7 @@ public static function fieldList() {
}
/**
- * Library file name e.g., mscorlib.dll, system.web.dll.
+ * Library file name, e.g., mscorlib.dll, system.web.dll.
*
*
* @var string
@@ -36,20 +36,20 @@ public static function fieldList() {
protected $assembly;
/**
- * Type of app development: phone, Metro style, desktop, XBox, etc.
+ * Library file name, e.g., mscorlib.dll, system.web.dll.
*
*
* @var string
*/
- protected $targetPlatform;
+ protected $executableLibraryName;
/**
- * Library file name e.g., mscorlib.dll, system.web.dll.
+ * Type of app development: phone, Metro style, desktop, XBox, etc.
*
*
* @var string
*/
- protected $executableLibraryName;
+ protected $targetPlatform;
/**
* Indicates whether API is managed or unmanaged.
@@ -60,7 +60,7 @@ public static function fieldList() {
protected $programmingModel;
/**
- * Associated product/technology version. e.g., .NET Framework 4.5.
+ * Associated product/technology version. E.g., .NET Framework 4.5.
*
*
* @var string
@@ -94,49 +94,49 @@ public function setAssembly($assembly)
/**
* @return string
*/
- public function getTargetPlatform()
+ public function getExecutableLibraryName()
{
- return $this->targetPlatform;
+ return $this->executableLibraryName;
}
/**
- * @param string $targetPlatform
+ * @param string $executableLibraryName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTargetPlatform($targetPlatform)
+ public function setExecutableLibraryName($executableLibraryName)
{
$types = [
"string",
];
- $targetPlatform = self::checkTypes($targetPlatform, $types);
+ $executableLibraryName = self::checkTypes($executableLibraryName, $types);
- $this->targetPlatform = $targetPlatform;
+ $this->executableLibraryName = $executableLibraryName;
}
/**
* @return string
*/
- public function getExecutableLibraryName()
+ public function getTargetPlatform()
{
- return $this->executableLibraryName;
+ return $this->targetPlatform;
}
/**
- * @param string $executableLibraryName
+ * @param string $targetPlatform
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExecutableLibraryName($executableLibraryName)
+ public function setTargetPlatform($targetPlatform)
{
$types = [
"string",
];
- $executableLibraryName = self::checkTypes($executableLibraryName, $types);
+ $targetPlatform = self::checkTypes($targetPlatform, $types);
- $this->executableLibraryName = $executableLibraryName;
+ $this->targetPlatform = $targetPlatform;
}
/**
diff --git a/src/Models/SchemaOrg/Accommodation.php b/src/Models/SchemaOrg/Accommodation.php
index f94a1485..5bf86499 100644
--- a/src/Models/SchemaOrg/Accommodation.php
+++ b/src/Models/SchemaOrg/Accommodation.php
@@ -17,37 +17,30 @@ public static function getType()
public static function fieldList() {
$fields = [
- "floorLevel" => "floorLevel",
"numberOfBathroomsTotal" => "numberOfBathroomsTotal",
"numberOfRooms" => "numberOfRooms",
- "leaseLength" => "leaseLength",
- "yearBuilt" => "yearBuilt",
- "accommodationCategory" => "accommodationCategory",
- "amenityFeature" => "amenityFeature",
- "tourBookingPage" => "tourBookingPage",
- "numberOfBedrooms" => "numberOfBedrooms",
- "numberOfPartialBathrooms" => "numberOfPartialBathrooms",
+ "petsAllowed" => "petsAllowed",
"floorSize" => "floorSize",
"accommodationFloorPlan" => "accommodationFloorPlan",
+ "tourBookingPage" => "tourBookingPage",
+ "accommodationCategory" => "accommodationCategory",
+ "occupancy" => "occupancy",
+ "amenityFeature" => "amenityFeature",
"numberOfFullBathrooms" => "numberOfFullBathrooms",
+ "numberOfPartialBathrooms" => "numberOfPartialBathrooms",
+ "yearBuilt" => "yearBuilt",
+ "floorLevel" => "floorLevel",
"permittedUsage" => "permittedUsage",
- "petsAllowed" => "petsAllowed",
+ "leaseLength" => "leaseLength",
+ "bed" => "bed",
+ "numberOfBedrooms" => "numberOfBedrooms",
];
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.
- *
- *
- * @var string
- */
- protected $floorLevel;
-
- /**
- * 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 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 int|null
@@ -64,85 +57,95 @@ public static function fieldList() {
protected $numberOfRooms;
/**
- * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.
+ * 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|DateInterval|string|null
+ * @var bool|string|null
*/
- protected $leaseLength;
+ protected $petsAllowed;
/**
- * 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).
+ * A floorplan of some [[Accommodation]].
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\FloorPlan|string
*/
- protected $accommodationCategory;
+ protected $accommodationFloorPlan;
/**
- * 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 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.
+ * 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 $tourBookingPage;
+ protected $accommodationCategory;
/**
- * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
+ * The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person).
+ * Typical unit code(s): C62 for person
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $numberOfBedrooms;
+ protected $occupancy;
/**
- * 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).
+ * 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 Number|null
+ * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
*/
- protected $numberOfPartialBathrooms;
+ protected $amenityFeature;
/**
- * The size of the accommodation, e.g. in square meter or squarefoot.
- * Typical unit code(s): MTK for square meter, FTK for square foot, or YDK for square yard
+ * Number of 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var Number|null
*/
- protected $floorSize;
+ protected $numberOfFullBathrooms;
/**
- * A floorplan of some [[Accommodation]].
+ * Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field).
*
*
- * @var \OpenActive\Models\SchemaOrg\FloorPlan|string
+ * @var Number|null
*/
- protected $accommodationFloorPlan;
+ protected $numberOfPartialBathrooms;
/**
- * Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field).
+ * The 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;
+
+ /**
+ * The floor level for an [[Accommodation]] in a multi-storey building. Since counting
+ * systems [vary internationally](https://en.wikipedia.org/wiki/Storey#Consecutive_number_floor_designations), the local system should be used where possible.
+ *
+ *
+ * @var string
+ */
+ protected $floorLevel;
/**
* Indications regarding the permitted usage of the accommodation.
@@ -153,36 +156,29 @@ public static function fieldList() {
protected $permittedUsage;
/**
- * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
+ * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.
*
*
- * @var bool|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
*/
- protected $petsAllowed;
+ protected $leaseLength;
/**
- * @return string
+ * 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\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string
*/
- public function getFloorLevel()
- {
- return $this->floorLevel;
- }
+ protected $bed;
/**
- * @param string $floorLevel
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function setFloorLevel($floorLevel)
- {
- $types = [
- "string",
- ];
-
- $floorLevel = self::checkTypes($floorLevel, $types);
-
- $this->floorLevel = $floorLevel;
- }
+ protected $numberOfBedrooms;
/**
* @return int|null
@@ -237,55 +233,103 @@ public function setNumberOfRooms($numberOfRooms)
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
+ * @return bool|string|null
*/
- public function getLeaseLength()
+ public function getPetsAllowed()
{
- return $this->leaseLength;
+ return $this->petsAllowed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength
+ * @param bool|string|null $petsAllowed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLeaseLength($leaseLength)
+ public function setPetsAllowed($petsAllowed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "DateInterval",
+ "bool",
"string",
"null",
];
- $leaseLength = self::checkTypes($leaseLength, $types);
+ $petsAllowed = self::checkTypes($petsAllowed, $types);
- $this->leaseLength = $leaseLength;
+ $this->petsAllowed = $petsAllowed;
}
/**
- * @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 \OpenActive\Models\SchemaOrg\FloorPlan|string
+ */
+ public function getAccommodationFloorPlan()
+ {
+ return $this->accommodationFloorPlan;
+ }
+
+ /**
+ * @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 setAccommodationFloorPlan($accommodationFloorPlan)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\FloorPlan",
+ "string",
+ ];
+
+ $accommodationFloorPlan = self::checkTypes($accommodationFloorPlan, $types);
+
+ $this->accommodationFloorPlan = $accommodationFloorPlan;
+ }
+
+ /**
+ * @return string
+ */
+ public function getTourBookingPage()
+ {
+ return $this->tourBookingPage;
+ }
+
+ /**
+ * @param string $tourBookingPage
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setTourBookingPage($tourBookingPage)
+ {
+ $types = [
+ "string",
+ ];
+
+ $tourBookingPage = self::checkTypes($tourBookingPage, $types);
+
+ $this->tourBookingPage = $tourBookingPage;
}
/**
@@ -312,6 +356,31 @@ public function setAccommodationCategory($accommodationCategory)
$this->accommodationCategory = $accommodationCategory;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ public function getOccupancy()
+ {
+ return $this->occupancy;
+ }
+
+ /**
+ * @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 setOccupancy($occupancy)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
+ ];
+
+ $occupancy = self::checkTypes($occupancy, $types);
+
+ $this->occupancy = $occupancy;
+ }
+
/**
* @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
*/
@@ -338,204 +407,206 @@ public function setAmenityFeature($amenityFeature)
}
/**
- * @return string
+ * @return Number|null
*/
- public function getTourBookingPage()
+ public function getNumberOfFullBathrooms()
{
- return $this->tourBookingPage;
+ return $this->numberOfFullBathrooms;
}
/**
- * @param string $tourBookingPage
+ * @param Number|null $numberOfFullBathrooms
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTourBookingPage($tourBookingPage)
+ public function setNumberOfFullBathrooms($numberOfFullBathrooms)
{
$types = [
- "string",
+ "Number",
+ "null",
];
- $tourBookingPage = self::checkTypes($tourBookingPage, $types);
+ $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types);
- $this->tourBookingPage = $tourBookingPage;
+ $this->numberOfFullBathrooms = $numberOfFullBathrooms;
}
/**
- * @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
*/
- public function getNumberOfPartialBathrooms()
+ public function getYearBuilt()
{
- return $this->numberOfPartialBathrooms;
+ return $this->yearBuilt;
}
/**
- * @param Number|null $numberOfPartialBathrooms
+ * @param Number|null $yearBuilt
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfPartialBathrooms($numberOfPartialBathrooms)
+ public function setYearBuilt($yearBuilt)
{
$types = [
"Number",
"null",
];
- $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types);
+ $yearBuilt = self::checkTypes($yearBuilt, $types);
- $this->numberOfPartialBathrooms = $numberOfPartialBathrooms;
+ $this->yearBuilt = $yearBuilt;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getFloorSize()
+ public function getFloorLevel()
{
- return $this->floorSize;
+ return $this->floorLevel;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $floorSize
+ * @param string $floorLevel
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFloorSize($floorSize)
+ public function setFloorLevel($floorLevel)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $floorSize = self::checkTypes($floorSize, $types);
+ $floorLevel = self::checkTypes($floorLevel, $types);
- $this->floorSize = $floorSize;
+ $this->floorLevel = $floorLevel;
}
/**
- * @return \OpenActive\Models\SchemaOrg\FloorPlan|string
+ * @return string
*/
- public function getAccommodationFloorPlan()
+ public function getPermittedUsage()
{
- return $this->accommodationFloorPlan;
+ return $this->permittedUsage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\FloorPlan|string $accommodationFloorPlan
+ * @param string $permittedUsage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccommodationFloorPlan($accommodationFloorPlan)
+ public function setPermittedUsage($permittedUsage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\FloorPlan",
"string",
];
- $accommodationFloorPlan = self::checkTypes($accommodationFloorPlan, $types);
+ $permittedUsage = self::checkTypes($permittedUsage, $types);
- $this->accommodationFloorPlan = $accommodationFloorPlan;
+ $this->permittedUsage = $permittedUsage;
}
/**
- * @return Number|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
*/
- public function getNumberOfFullBathrooms()
+ public function getLeaseLength()
{
- return $this->numberOfFullBathrooms;
+ return $this->leaseLength;
}
/**
- * @param Number|null $numberOfFullBathrooms
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfFullBathrooms($numberOfFullBathrooms)
+ public function setLeaseLength($leaseLength)
{
$types = [
- "Number",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "DateInterval",
+ "string",
"null",
];
- $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types);
+ $leaseLength = self::checkTypes($leaseLength, $types);
- $this->numberOfFullBathrooms = $numberOfFullBathrooms;
+ $this->leaseLength = $leaseLength;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string
*/
- public function getPermittedUsage()
+ public function getBed()
{
- return $this->permittedUsage;
+ return $this->bed;
}
/**
- * @param string $permittedUsage
+ * @param \OpenActive\Models\SchemaOrg\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string $bed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPermittedUsage($permittedUsage)
+ public function setBed($bed)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\BedType",
+ "\OpenActive\Models\SchemaOrg\BedDetails",
"string",
];
- $permittedUsage = self::checkTypes($permittedUsage, $types);
+ $bed = self::checkTypes($bed, $types);
- $this->permittedUsage = $permittedUsage;
+ $this->bed = $bed;
}
/**
- * @return bool|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function getPetsAllowed()
+ public function getNumberOfBedrooms()
{
- return $this->petsAllowed;
+ return $this->numberOfBedrooms;
}
/**
- * @param bool|string|null $petsAllowed
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfBedrooms
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPetsAllowed($petsAllowed)
+ public function setNumberOfBedrooms($numberOfBedrooms)
{
$types = [
- "bool",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "Number",
"null",
];
- $petsAllowed = self::checkTypes($petsAllowed, $types);
+ $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types);
- $this->petsAllowed = $petsAllowed;
+ $this->numberOfBedrooms = $numberOfBedrooms;
}
}
diff --git a/src/Models/SchemaOrg/Action.php b/src/Models/SchemaOrg/Action.php
index 88a8db68..b10c51d8 100644
--- a/src/Models/SchemaOrg/Action.php
+++ b/src/Models/SchemaOrg/Action.php
@@ -17,38 +17,38 @@ public static function getType()
public static function fieldList() {
$fields = [
- "agent" => "agent",
- "startTime" => "startTime",
- "actionStatus" => "actionStatus",
- "provider" => "provider",
- "result" => "result",
"location" => "location",
"object" => "object",
- "target" => "target",
- "endTime" => "endTime",
+ "actionStatus" => "actionStatus",
"participant" => "participant",
- "instrument" => "instrument",
+ "endTime" => "endTime",
+ "startTime" => "startTime",
"error" => "error",
+ "target" => "target",
+ "provider" => "provider",
+ "instrument" => "instrument",
+ "result" => "result",
+ "agent" => "agent",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book.
+ * 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 \OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|string
*/
- protected $agent;
+ protected $location;
/**
- * 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 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 DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $startTime;
+ protected $object;
/**
* Indicates the current disposition of the Action.
@@ -59,127 +59,127 @@ public static function fieldList() {
protected $actionStatus;
/**
- * 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.
+ * Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.
*
*
* @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $provider;
+ protected $participant;
/**
- * The result produced in the action. e.g. John wrote *a book*.
+ * 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\Thing|string
+ * @var DateTime|string|null
*/
- protected $result;
+ protected $endTime;
/**
- * The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
+ * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
*
*
- * @var \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @var DateTime|string|null
*/
- protected $location;
+ protected $startTime;
/**
- * 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*.
+ * For failed actions, more information on the cause of the failure.
*
*
* @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $object;
+ protected $error;
/**
- * Indicates a target EntryPoint for an Action.
+ * Indicates a target EntryPoint, or url, for an Action.
*
*
- * @var \OpenActive\Models\SchemaOrg\EntryPoint|string
+ * @var string|\OpenActive\Models\SchemaOrg\EntryPoint
*/
protected $target;
/**
- * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
+ * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
*
*
- * @var DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $endTime;
+ protected $provider;
/**
- * Other co-agents that participated in the action indirectly. e.g. John wrote a book with *Steve*.
+ * The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $participant;
+ protected $instrument;
/**
- * The object that helped the agent perform the action. e.g. John wrote a book with *a pen*.
+ * The result produced in the action. E.g. John wrote *a book*.
*
*
* @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $instrument;
+ protected $result;
/**
- * For failed actions, more information on the cause of the failure.
+ * The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $error;
+ protected $agent;
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|string
*/
- public function getAgent()
+ public function getLocation()
{
- return $this->agent;
+ return $this->location;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $agent
+ * @param \OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|string $location
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAgent($agent)
+ public function setLocation($location)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\VirtualLocation",
"string",
];
- $agent = self::checkTypes($agent, $types);
+ $location = self::checkTypes($location, $types);
- $this->agent = $agent;
+ $this->location = $location;
}
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getStartTime()
+ public function getObject()
{
- return $this->startTime;
+ return $this->object;
}
/**
- * @param DateTime|string|null $startTime
+ * @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 setStartTime($startTime)
+ public function setObject($object)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "string",
];
- $startTime = self::checkTypes($startTime, $types);
+ $object = self::checkTypes($object, $types);
- $this->startTime = $startTime;
+ $this->object = $object;
}
/**
@@ -210,17 +210,17 @@ public function setActionStatus($actionStatus)
/**
* @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getProvider()
+ public function getParticipant()
{
- return $this->provider;
+ return $this->participant;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $participant
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProvider($provider)
+ public function setParticipant($participant)
{
$types = [
"\OpenActive\Models\SchemaOrg\Organization",
@@ -228,90 +228,90 @@ public function setProvider($provider)
"string",
];
- $provider = self::checkTypes($provider, $types);
+ $participant = self::checkTypes($participant, $types);
- $this->provider = $provider;
+ $this->participant = $participant;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return DateTime|string|null
*/
- public function getResult()
+ public function getEndTime()
{
- return $this->result;
+ return $this->endTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $result
+ * @param DateTime|string|null $endTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setResult($result)
+ public function setEndTime($endTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
- "string",
+ "DateTime",
+ "Time",
+ "null",
];
- $result = self::checkTypes($result, $types);
+ $endTime = self::checkTypes($endTime, $types);
- $this->result = $result;
+ $this->endTime = $endTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @return DateTime|string|null
*/
- public function getLocation()
+ public function getStartTime()
{
- return $this->location;
+ return $this->startTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location
+ * @param DateTime|string|null $startTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLocation($location)
+ public function setStartTime($startTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PostalAddress",
- "string",
- "\OpenActive\Models\SchemaOrg\Place",
- "\OpenActive\Models\SchemaOrg\VirtualLocation",
+ "DateTime",
+ "Time",
+ "null",
];
- $location = self::checkTypes($location, $types);
+ $startTime = self::checkTypes($startTime, $types);
- $this->location = $location;
+ $this->startTime = $startTime;
}
/**
* @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getObject()
+ public function getError()
{
- return $this->object;
+ return $this->error;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $object
+ * @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 setObject($object)
+ public function setError($error)
{
$types = [
"\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $object = self::checkTypes($object, $types);
+ $error = self::checkTypes($error, $types);
- $this->object = $object;
+ $this->error = $error;
}
/**
- * @return \OpenActive\Models\SchemaOrg\EntryPoint|string
+ * @return string|\OpenActive\Models\SchemaOrg\EntryPoint
*/
public function getTarget()
{
@@ -319,15 +319,15 @@ public function getTarget()
}
/**
- * @param \OpenActive\Models\SchemaOrg\EntryPoint|string $target
+ * @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 setTarget($target)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EntryPoint",
"string",
+ "\OpenActive\Models\SchemaOrg\EntryPoint",
];
$target = self::checkTypes($target, $types);
@@ -336,105 +336,105 @@ public function setTarget($target)
}
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getEndTime()
+ public function getProvider()
{
- return $this->endTime;
+ return $this->provider;
}
/**
- * @param DateTime|string|null $endTime
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $provider
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndTime($endTime)
+ public function setProvider($provider)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $endTime = self::checkTypes($endTime, $types);
+ $provider = self::checkTypes($provider, $types);
- $this->endTime = $endTime;
+ $this->provider = $provider;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getParticipant()
+ public function getInstrument()
{
- return $this->participant;
+ return $this->instrument;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $participant
+ * @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 setParticipant($participant)
+ public function setInstrument($instrument)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $participant = self::checkTypes($participant, $types);
+ $instrument = self::checkTypes($instrument, $types);
- $this->participant = $participant;
+ $this->instrument = $instrument;
}
/**
* @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getInstrument()
+ public function getResult()
{
- return $this->instrument;
+ return $this->result;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $instrument
+ * @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 setInstrument($instrument)
+ public function setResult($result)
{
$types = [
"\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $instrument = self::checkTypes($instrument, $types);
+ $result = self::checkTypes($result, $types);
- $this->instrument = $instrument;
+ $this->result = $result;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getError()
+ public function getAgent()
{
- return $this->error;
+ return $this->agent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $error
+ * @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 setError($error)
+ public function setAgent($agent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $error = self::checkTypes($error, $types);
+ $agent = self::checkTypes($agent, $types);
- $this->error = $error;
+ $this->agent = $agent;
}
}
diff --git a/src/Models/SchemaOrg/ActionAccessSpecification.php b/src/Models/SchemaOrg/ActionAccessSpecification.php
index 168e3daf..bf054287 100644
--- a/src/Models/SchemaOrg/ActionAccessSpecification.php
+++ b/src/Models/SchemaOrg/ActionAccessSpecification.php
@@ -18,12 +18,12 @@ public static function getType()
public static function fieldList() {
$fields = [
"expectsAcceptanceOf" => "expectsAcceptanceOf",
- "category" => "category",
- "ineligibleRegion" => "ineligibleRegion",
"requiresSubscription" => "requiresSubscription",
"availabilityEnds" => "availabilityEnds",
- "eligibleRegion" => "eligibleRegion",
+ "category" => "category",
"availabilityStarts" => "availabilityStarts",
+ "ineligibleRegion" => "ineligibleRegion",
+ "eligibleRegion" => "eligibleRegion",
];
return array_merge(parent::fieldList(), $fields);
@@ -38,54 +38,54 @@ public static function fieldList() {
protected $expectsAcceptanceOf;
/**
- * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
+ * Indicates if use of the media require a subscription (either paid or free). Allowed values are ```true``` or ```false``` (note that an earlier version had 'yes', 'no').
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @var bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null
*/
- protected $category;
+ 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 not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]].
- *
+ * The end 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 $availabilityEnds;
/**
- * 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|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
*/
- protected $requiresSubscription;
+ protected $category;
/**
- * The end of the availability of the product or service included in the offer.
+ * The beginning of the availability of the product or service included in the offer.
*
*
* @var Date|DateTime|string|null
*/
- protected $availabilityEnds;
+ protected $availabilityStarts;
/**
- * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]].
- *
+ * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]].
+ *
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- protected $eligibleRegion;
+ protected $ineligibleRegion;
/**
- * The beginning of the availability of the product or service included in the 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 valid.\n\nSee also [[ineligibleRegion]].
+ *
*
*
- * @var Date|DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
*/
- protected $availabilityStarts;
+ protected $eligibleRegion;
/**
* @return \OpenActive\Models\SchemaOrg\Offer|string
@@ -113,100 +113,101 @@ public function setExpectsAcceptanceOf($expectsAcceptanceOf)
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @return bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null
*/
- public function getCategory()
+ public function getRequiresSubscription()
{
- return $this->category;
+ return $this->requiresSubscription;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
+ * @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 setCategory($category)
+ public function setRequiresSubscription($requiresSubscription)
{
$types = [
+ "bool",
+ "\OpenActive\Models\SchemaOrg\MediaSubscription",
"string",
- "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
- "\OpenActive\Models\SchemaOrg\Thing",
- "\OpenActive\Models\SchemaOrg\CategoryCode",
"null",
];
- $category = self::checkTypes($category, $types);
+ $requiresSubscription = self::checkTypes($requiresSubscription, $types);
- $this->category = $category;
+ $this->requiresSubscription = $requiresSubscription;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @return Date|DateTime|string|null
*/
- public function getIneligibleRegion()
+ public function getAvailabilityEnds()
{
- return $this->ineligibleRegion;
+ return $this->availabilityEnds;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
+ * @param Date|DateTime|string|null $availabilityEnds
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIneligibleRegion($ineligibleRegion)
+ public function setAvailabilityEnds($availabilityEnds)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "string",
- "\OpenActive\Models\SchemaOrg\GeoShape",
+ "Date",
+ "DateTime",
+ "Time",
+ "null",
];
- $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
+ $availabilityEnds = self::checkTypes($availabilityEnds, $types);
- $this->ineligibleRegion = $ineligibleRegion;
+ $this->availabilityEnds = $availabilityEnds;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null
+ * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|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|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRequiresSubscription($requiresSubscription)
+ public function setCategory($category)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaSubscription",
- "bool",
+ "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
"string",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
"null",
];
- $requiresSubscription = self::checkTypes($requiresSubscription, $types);
+ $category = self::checkTypes($category, $types);
- $this->requiresSubscription = $requiresSubscription;
+ $this->category = $category;
}
/**
* @return Date|DateTime|string|null
*/
- public function getAvailabilityEnds()
+ public function getAvailabilityStarts()
{
- return $this->availabilityEnds;
+ return $this->availabilityStarts;
}
/**
- * @param Date|DateTime|string|null $availabilityEnds
+ * @param Date|DateTime|string|null $availabilityStarts
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailabilityEnds($availabilityEnds)
+ public function setAvailabilityStarts($availabilityStarts)
{
$types = [
"Date",
@@ -215,62 +216,61 @@ public function setAvailabilityEnds($availabilityEnds)
"null",
];
- $availabilityEnds = self::checkTypes($availabilityEnds, $types);
+ $availabilityStarts = self::checkTypes($availabilityStarts, $types);
- $this->availabilityEnds = $availabilityEnds;
+ $this->availabilityStarts = $availabilityStarts;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- public function getEligibleRegion()
+ public function getIneligibleRegion()
{
- return $this->eligibleRegion;
+ return $this->ineligibleRegion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion
+ * @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 setEligibleRegion($eligibleRegion)
+ public function setIneligibleRegion($ineligibleRegion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeoShape",
"string",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
];
- $eligibleRegion = self::checkTypes($eligibleRegion, $types);
+ $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
- $this->eligibleRegion = $eligibleRegion;
+ $this->ineligibleRegion = $ineligibleRegion;
}
/**
- * @return Date|DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
*/
- public function getAvailabilityStarts()
+ public function getEligibleRegion()
{
- return $this->availabilityStarts;
+ return $this->eligibleRegion;
}
/**
- * @param Date|DateTime|string|null $availabilityStarts
+ * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailabilityStarts($availabilityStarts)
+ public function setEligibleRegion($eligibleRegion)
{
$types = [
- "Date",
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "string",
+ "\OpenActive\Models\SchemaOrg\Place",
];
- $availabilityStarts = self::checkTypes($availabilityStarts, $types);
+ $eligibleRegion = self::checkTypes($eligibleRegion, $types);
- $this->availabilityStarts = $availabilityStarts;
+ $this->eligibleRegion = $eligibleRegion;
}
}
diff --git a/src/Models/SchemaOrg/AggregateOffer.php b/src/Models/SchemaOrg/AggregateOffer.php
index 6fca86b3..91f4ae0c 100644
--- a/src/Models/SchemaOrg/AggregateOffer.php
+++ b/src/Models/SchemaOrg/AggregateOffer.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "highPrice" => "highPrice",
"offers" => "offers",
+ "highPrice" => "highPrice",
"lowPrice" => "lowPrice",
"offerCount" => "offerCount",
];
@@ -27,24 +27,24 @@ 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.
+ * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
+ *
*
*
- * @var string|Number|null
+ * @var \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $highPrice;
+ 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 highest price of all offers available.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var string|Number|null
*/
- protected $offers;
+ protected $highPrice;
/**
- * The lowest price of all offers available.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
+ * 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
@@ -60,55 +60,55 @@ public static function fieldList() {
protected $offerCount;
/**
- * @return string|Number|null
+ * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
- public function getHighPrice()
+ public function getOffers()
{
- return $this->highPrice;
+ return $this->offers;
}
/**
- * @param string|Number|null $highPrice
+ * @param \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string $offers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHighPrice($highPrice)
+ public function setOffers($offers)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\Offer",
"string",
- "Number",
- "null",
];
- $highPrice = self::checkTypes($highPrice, $types);
+ $offers = self::checkTypes($offers, $types);
- $this->highPrice = $highPrice;
+ $this->offers = $offers;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return string|Number|null
*/
- public function getOffers()
+ public function getHighPrice()
{
- return $this->offers;
+ return $this->highPrice;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @param string|Number|null $highPrice
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOffers($offers)
+ public function setHighPrice($highPrice)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
"string",
+ "Number",
+ "null",
];
- $offers = self::checkTypes($offers, $types);
+ $highPrice = self::checkTypes($highPrice, $types);
- $this->offers = $offers;
+ $this->highPrice = $highPrice;
}
/**
diff --git a/src/Models/SchemaOrg/AggregateRating.php b/src/Models/SchemaOrg/AggregateRating.php
index 67100854..dd1ae840 100644
--- a/src/Models/SchemaOrg/AggregateRating.php
+++ b/src/Models/SchemaOrg/AggregateRating.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "itemReviewed" => "itemReviewed",
"reviewCount" => "reviewCount",
+ "itemReviewed" => "itemReviewed",
"ratingCount" => "ratingCount",
];
@@ -26,20 +26,20 @@ public static function fieldList() {
}
/**
- * The item that is being reviewed/rated.
+ * The count of total number of reviews.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var int|null
*/
- protected $itemReviewed;
+ protected $reviewCount;
/**
- * The count of total number of reviews.
+ * The item that is being reviewed/rated.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $reviewCount;
+ protected $itemReviewed;
/**
* The count of total number of ratings.
@@ -50,53 +50,53 @@ public static function fieldList() {
protected $ratingCount;
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return int|null
*/
- public function getItemReviewed()
+ public function getReviewCount()
{
- return $this->itemReviewed;
+ return $this->reviewCount;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $itemReviewed
+ * @param int|null $reviewCount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItemReviewed($itemReviewed)
+ public function setReviewCount($reviewCount)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
- "string",
+ "int",
+ "null",
];
- $itemReviewed = self::checkTypes($itemReviewed, $types);
+ $reviewCount = self::checkTypes($reviewCount, $types);
- $this->itemReviewed = $itemReviewed;
+ $this->reviewCount = $reviewCount;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getReviewCount()
+ public function getItemReviewed()
{
- return $this->reviewCount;
+ return $this->itemReviewed;
}
/**
- * @param int|null $reviewCount
+ * @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 setReviewCount($reviewCount)
+ public function setItemReviewed($itemReviewed)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "string",
];
- $reviewCount = self::checkTypes($reviewCount, $types);
+ $itemReviewed = self::checkTypes($itemReviewed, $types);
- $this->reviewCount = $reviewCount;
+ $this->itemReviewed = $itemReviewed;
}
/**
diff --git a/src/Models/SchemaOrg/Airport.php b/src/Models/SchemaOrg/Airport.php
index fffab4c4..c4c4c9b6 100644
--- a/src/Models/SchemaOrg/Airport.php
+++ b/src/Models/SchemaOrg/Airport.php
@@ -17,75 +17,75 @@ public static function getType()
public static function fieldList() {
$fields = [
- "iataCode" => "iataCode",
"icaoCode" => "icaoCode",
+ "iataCode" => "iataCode",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * IATA identifier for an airline or airport.
+ * ICAO identifier for an airport.
*
*
* @var string
*/
- protected $iataCode;
+ protected $icaoCode;
/**
- * ICAO identifier for an airport.
+ * IATA identifier for an airline or airport.
*
*
* @var string
*/
- protected $icaoCode;
+ protected $iataCode;
/**
* @return string
*/
- public function getIataCode()
+ public function getIcaoCode()
{
- return $this->iataCode;
+ return $this->icaoCode;
}
/**
- * @param string $iataCode
+ * @param string $icaoCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIataCode($iataCode)
+ public function setIcaoCode($icaoCode)
{
$types = [
"string",
];
- $iataCode = self::checkTypes($iataCode, $types);
+ $icaoCode = self::checkTypes($icaoCode, $types);
- $this->iataCode = $iataCode;
+ $this->icaoCode = $icaoCode;
}
/**
* @return string
*/
- public function getIcaoCode()
+ public function getIataCode()
{
- return $this->icaoCode;
+ return $this->iataCode;
}
/**
- * @param string $icaoCode
+ * @param string $iataCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIcaoCode($icaoCode)
+ public function setIataCode($iataCode)
{
$types = [
"string",
];
- $icaoCode = self::checkTypes($icaoCode, $types);
+ $iataCode = self::checkTypes($iataCode, $types);
- $this->icaoCode = $icaoCode;
+ $this->iataCode = $iataCode;
}
}
diff --git a/src/Models/SchemaOrg/AlignmentObject.php b/src/Models/SchemaOrg/AlignmentObject.php
index 88da01c9..13d90f49 100644
--- a/src/Models/SchemaOrg/AlignmentObject.php
+++ b/src/Models/SchemaOrg/AlignmentObject.php
@@ -17,174 +17,174 @@ public static function getType()
public static function fieldList() {
$fields = [
- "alignmentType" => "alignmentType",
+ "targetUrl" => "targetUrl",
+ "targetName" => "targetName",
"educationalFramework" => "educationalFramework",
+ "alignmentType" => "alignmentType",
"targetDescription" => "targetDescription",
- "targetName" => "targetName",
- "targetUrl" => "targetUrl",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A category of alignment between the learning resource and the framework node. Recommended values include: 'requires', 'textComplexity', 'readingLevel', and 'educationalSubject'.
+ * The URL of a node in an established educational framework.
*
*
* @var string
*/
- protected $alignmentType;
+ protected $targetUrl;
/**
- * The framework to which the resource being described is aligned.
+ * The name of a node in an established educational framework.
*
*
* @var string
*/
- protected $educationalFramework;
+ protected $targetName;
/**
- * The description of a node in an established educational framework.
+ * The framework to which the resource being described is aligned.
*
*
* @var string
*/
- protected $targetDescription;
+ protected $educationalFramework;
/**
- * The name of a node in an established educational framework.
+ * A category of alignment between the learning resource and the framework node. Recommended values include: 'requires', 'textComplexity', 'readingLevel', and 'educationalSubject'.
*
*
* @var string
*/
- protected $targetName;
+ protected $alignmentType;
/**
- * The URL of a node in an established educational framework.
+ * The description of a node in an established educational framework.
*
*
* @var string
*/
- protected $targetUrl;
+ protected $targetDescription;
/**
* @return string
*/
- public function getAlignmentType()
+ public function getTargetUrl()
{
- return $this->alignmentType;
+ return $this->targetUrl;
}
/**
- * @param string $alignmentType
+ * @param string $targetUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlignmentType($alignmentType)
+ public function setTargetUrl($targetUrl)
{
$types = [
"string",
];
- $alignmentType = self::checkTypes($alignmentType, $types);
+ $targetUrl = self::checkTypes($targetUrl, $types);
- $this->alignmentType = $alignmentType;
+ $this->targetUrl = $targetUrl;
}
/**
* @return string
*/
- public function getEducationalFramework()
+ public function getTargetName()
{
- return $this->educationalFramework;
+ return $this->targetName;
}
/**
- * @param string $educationalFramework
+ * @param string $targetName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalFramework($educationalFramework)
+ public function setTargetName($targetName)
{
$types = [
"string",
];
- $educationalFramework = self::checkTypes($educationalFramework, $types);
+ $targetName = self::checkTypes($targetName, $types);
- $this->educationalFramework = $educationalFramework;
+ $this->targetName = $targetName;
}
/**
* @return string
*/
- public function getTargetDescription()
+ public function getEducationalFramework()
{
- return $this->targetDescription;
+ return $this->educationalFramework;
}
/**
- * @param string $targetDescription
+ * @param string $educationalFramework
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTargetDescription($targetDescription)
+ public function setEducationalFramework($educationalFramework)
{
$types = [
"string",
];
- $targetDescription = self::checkTypes($targetDescription, $types);
+ $educationalFramework = self::checkTypes($educationalFramework, $types);
- $this->targetDescription = $targetDescription;
+ $this->educationalFramework = $educationalFramework;
}
/**
* @return string
*/
- public function getTargetName()
+ public function getAlignmentType()
{
- return $this->targetName;
+ return $this->alignmentType;
}
/**
- * @param string $targetName
+ * @param string $alignmentType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTargetName($targetName)
+ public function setAlignmentType($alignmentType)
{
$types = [
"string",
];
- $targetName = self::checkTypes($targetName, $types);
+ $alignmentType = self::checkTypes($alignmentType, $types);
- $this->targetName = $targetName;
+ $this->alignmentType = $alignmentType;
}
/**
* @return string
*/
- public function getTargetUrl()
+ public function getTargetDescription()
{
- return $this->targetUrl;
+ return $this->targetDescription;
}
/**
- * @param string $targetUrl
+ * @param string $targetDescription
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTargetUrl($targetUrl)
+ public function setTargetDescription($targetDescription)
{
$types = [
"string",
];
- $targetUrl = self::checkTypes($targetUrl, $types);
+ $targetDescription = self::checkTypes($targetDescription, $types);
- $this->targetUrl = $targetUrl;
+ $this->targetDescription = $targetDescription;
}
}
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..f762f3ab 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",
"partOfSystem" => "partOfSystem",
- "relatedTherapy" => "relatedTherapy",
- "diagram" => "diagram",
- "relatedCondition" => "relatedCondition",
"subStructure" => "subStructure",
+ "relatedCondition" => "relatedCondition",
+ "connectedTo" => "connectedTo",
+ "relatedTherapy" => "relatedTherapy",
"associatedPathophysiology" => "associatedPathophysiology",
+ "diagram" => "diagram",
];
return array_merge(parent::fieldList(), $fields);
@@ -38,14 +38,6 @@ public static function fieldList() {
*/
protected $bodyLocation;
- /**
- * Other anatomical structures to which this structure is connected.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
- */
- protected $connectedTo;
-
/**
* The anatomical or organ system that this structure is part of.
*
@@ -55,36 +47,36 @@ public static function fieldList() {
protected $partOfSystem;
/**
- * A medical therapy related to this anatomy.
+ * Component (sub-)structure(s) that comprise this anatomical structure.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $relatedTherapy;
+ protected $subStructure;
/**
- * An image containing a diagram that illustrates the structure and/or its component substructures and/or connections with other structures.
+ * A medical condition associated with this anatomy.
*
*
- * @var \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- protected $diagram;
+ protected $relatedCondition;
/**
- * 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.
@@ -94,6 +86,14 @@ public static function fieldList() {
*/
protected $associatedPathophysiology;
+ /**
+ * An image containing a diagram that illustrates the structure and/or its component substructures and/or connections with other structures.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\ImageObject|string
+ */
+ protected $diagram;
+
/**
* @return string
*/
@@ -119,177 +119,177 @@ public function setBodyLocation($bodyLocation)
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
- public function getConnectedTo()
+ public function getPartOfSystem()
{
- return $this->connectedTo;
+ return $this->partOfSystem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $connectedTo
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|string $partOfSystem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setConnectedTo($connectedTo)
+ public function setPartOfSystem($partOfSystem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
"string",
];
- $connectedTo = self::checkTypes($connectedTo, $types);
+ $partOfSystem = self::checkTypes($partOfSystem, $types);
- $this->connectedTo = $connectedTo;
+ $this->partOfSystem = $partOfSystem;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getPartOfSystem()
+ public function getSubStructure()
{
- return $this->partOfSystem;
+ return $this->subStructure;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|string $partOfSystem
+ * @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 setPartOfSystem($partOfSystem)
+ public function setSubStructure($subStructure)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $partOfSystem = self::checkTypes($partOfSystem, $types);
+ $subStructure = self::checkTypes($subStructure, $types);
- $this->partOfSystem = $partOfSystem;
+ $this->subStructure = $subStructure;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- public function getRelatedTherapy()
+ public function getRelatedCondition()
{
- return $this->relatedTherapy;
+ return $this->relatedCondition;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy
+ * @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 setRelatedTherapy($relatedTherapy)
+ public function setRelatedCondition($relatedCondition)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\MedicalCondition",
"string",
];
- $relatedTherapy = self::checkTypes($relatedTherapy, $types);
+ $relatedCondition = self::checkTypes($relatedCondition, $types);
- $this->relatedTherapy = $relatedTherapy;
+ $this->relatedCondition = $relatedCondition;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getDiagram()
+ public function getConnectedTo()
{
- return $this->diagram;
+ return $this->connectedTo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ImageObject|string $diagram
+ * @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 setDiagram($diagram)
+ public function setConnectedTo($connectedTo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ImageObject",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $diagram = self::checkTypes($diagram, $types);
+ $connectedTo = self::checkTypes($connectedTo, $types);
- $this->diagram = $diagram;
+ $this->connectedTo = $connectedTo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getRelatedCondition()
+ public function getRelatedTherapy()
{
- return $this->relatedCondition;
+ return $this->relatedTherapy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $relatedCondition
+ * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRelatedCondition($relatedCondition)
+ public function setRelatedTherapy($relatedTherapy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalCondition",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $relatedCondition = self::checkTypes($relatedCondition, $types);
+ $relatedTherapy = self::checkTypes($relatedTherapy, $types);
- $this->relatedCondition = $relatedCondition;
+ $this->relatedTherapy = $relatedTherapy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return string
*/
- public function getSubStructure()
+ public function getAssociatedPathophysiology()
{
- return $this->subStructure;
+ return $this->associatedPathophysiology;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $subStructure
+ * @param string $associatedPathophysiology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSubStructure($subStructure)
+ public function setAssociatedPathophysiology($associatedPathophysiology)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $subStructure = self::checkTypes($subStructure, $types);
+ $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types);
- $this->subStructure = $subStructure;
+ $this->associatedPathophysiology = $associatedPathophysiology;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- public function getAssociatedPathophysiology()
+ public function getDiagram()
{
- return $this->associatedPathophysiology;
+ return $this->diagram;
}
/**
- * @param string $associatedPathophysiology
+ * @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 setAssociatedPathophysiology($associatedPathophysiology)
+ public function setDiagram($diagram)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
];
- $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types);
+ $diagram = self::checkTypes($diagram, $types);
- $this->associatedPathophysiology = $associatedPathophysiology;
+ $this->diagram = $diagram;
}
}
diff --git a/src/Models/SchemaOrg/AnatomicalSystem.php b/src/Models/SchemaOrg/AnatomicalSystem.php
index 3c5f3391..ec0337d5 100644
--- a/src/Models/SchemaOrg/AnatomicalSystem.php
+++ b/src/Models/SchemaOrg/AnatomicalSystem.php
@@ -17,23 +17,31 @@ public static function getType()
public static function fieldList() {
$fields = [
- "relatedTherapy" => "relatedTherapy",
- "relatedCondition" => "relatedCondition",
+ "comprisedOf" => "comprisedOf",
"relatedStructure" => "relatedStructure",
+ "relatedCondition" => "relatedCondition",
+ "relatedTherapy" => "relatedTherapy",
"associatedPathophysiology" => "associatedPathophysiology",
- "comprisedOf" => "comprisedOf",
];
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;
+
+ /**
+ * Related anatomical structure(s) that are not part of the system but relate or connect to it, such as vascular bundles associated with an organ system.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ */
+ protected $relatedStructure;
/**
* A medical condition associated with this anatomy.
@@ -44,12 +52,12 @@ public static function fieldList() {
protected $relatedCondition;
/**
- * 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.
@@ -60,36 +68,54 @@ public static function fieldList() {
protected $associatedPathophysiology;
/**
- * Specifying something physically contained by something else. Typically used here for the underlying anatomical structures, such as organs, that comprise the anatomical system.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
- protected $comprisedOf;
+ public function getComprisedOf()
+ {
+ return $this->comprisedOf;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @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 getRelatedTherapy()
+ public function setComprisedOf($comprisedOf)
{
- return $this->relatedTherapy;
+ $types = [
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
+ "string",
+ ];
+
+ $comprisedOf = self::checkTypes($comprisedOf, $types);
+
+ $this->comprisedOf = $comprisedOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ */
+ public function getRelatedStructure()
+ {
+ return $this->relatedStructure;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $relatedStructure
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRelatedTherapy($relatedTherapy)
+ public function setRelatedStructure($relatedStructure)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $relatedTherapy = self::checkTypes($relatedTherapy, $types);
+ $relatedStructure = self::checkTypes($relatedStructure, $types);
- $this->relatedTherapy = $relatedTherapy;
+ $this->relatedStructure = $relatedStructure;
}
/**
@@ -118,28 +144,28 @@ public function setRelatedCondition($relatedCondition)
}
/**
- * @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;
}
/**
@@ -166,30 +192,4 @@ public function setAssociatedPathophysiology($associatedPathophysiology)
$this->associatedPathophysiology = $associatedPathophysiology;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
- */
- public function getComprisedOf()
- {
- return $this->comprisedOf;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $comprisedOf
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setComprisedOf($comprisedOf)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
- "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
- "string",
- ];
-
- $comprisedOf = self::checkTypes($comprisedOf, $types);
-
- $this->comprisedOf = $comprisedOf;
- }
-
}
diff --git a/src/Models/SchemaOrg/Answer.php b/src/Models/SchemaOrg/Answer.php
index a188ef02..da4612e3 100644
--- a/src/Models/SchemaOrg/Answer.php
+++ b/src/Models/SchemaOrg/Answer.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* A step-by-step or full explanation about Answer. Can outline how this Answer was achieved or contain more broad clarification or statement about it.
*
*
- * @var \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\Comment|string
+ * @var \OpenActive\Models\SchemaOrg\Comment|\OpenActive\Models\SchemaOrg\WebContent|string
*/
protected $answerExplanation;
/**
- * @return \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\Comment|string
+ * @return \OpenActive\Models\SchemaOrg\Comment|\OpenActive\Models\SchemaOrg\WebContent|string
*/
public function getAnswerExplanation()
{
@@ -40,15 +40,15 @@ public function getAnswerExplanation()
}
/**
- * @param \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\Comment|string $answerExplanation
+ * @param \OpenActive\Models\SchemaOrg\Comment|\OpenActive\Models\SchemaOrg\WebContent|string $answerExplanation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAnswerExplanation($answerExplanation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\WebContent",
"\OpenActive\Models\SchemaOrg\Comment",
+ "\OpenActive\Models\SchemaOrg\WebContent",
"string",
];
diff --git a/src/Models/SchemaOrg/ApartmentComplex.php b/src/Models/SchemaOrg/ApartmentComplex.php
index 840b9180..e09c71f0 100644
--- a/src/Models/SchemaOrg/ApartmentComplex.php
+++ b/src/Models/SchemaOrg/ApartmentComplex.php
@@ -17,181 +17,181 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "petsAllowed" => "petsAllowed",
+ "tourBookingPage" => "tourBookingPage",
"numberOfAccommodationUnits" => "numberOfAccommodationUnits",
"numberOfAvailableAccommodationUnits" => "numberOfAvailableAccommodationUnits",
- "tourBookingPage" => "tourBookingPage",
"numberOfBedrooms" => "numberOfBedrooms",
- "petsAllowed" => "petsAllowed",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Indicates the total (available plus unavailable) number of accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAvailableAccommodationUnits]].
+ * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var bool|string|null
*/
- protected $numberOfAccommodationUnits;
+ protected $petsAllowed;
/**
- * Indicates the number of available accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAccommodationUnits]].
+ * 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\QuantitativeValue|string
+ * @var string
*/
- protected $numberOfAvailableAccommodationUnits;
+ protected $tourBookingPage;
/**
- * A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.
+ * Indicates the 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 string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $tourBookingPage;
+ protected $numberOfAccommodationUnits;
/**
- * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
+ * Indicates the number of available accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAccommodationUnits]].
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $numberOfBedrooms;
+ protected $numberOfAvailableAccommodationUnits;
/**
- * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
+ * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
*
*
- * @var bool|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- protected $petsAllowed;
+ protected $numberOfBedrooms;
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return bool|string|null
*/
- public function getNumberOfAccommodationUnits()
+ public function getPetsAllowed()
{
- return $this->numberOfAccommodationUnits;
+ return $this->petsAllowed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAccommodationUnits
+ * @param bool|string|null $petsAllowed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfAccommodationUnits($numberOfAccommodationUnits)
+ public function setPetsAllowed($petsAllowed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "bool",
"string",
+ "null",
];
- $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types);
+ $petsAllowed = self::checkTypes($petsAllowed, $types);
- $this->numberOfAccommodationUnits = $numberOfAccommodationUnits;
+ $this->petsAllowed = $petsAllowed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getTourBookingPage()
+ public function getNumberOfAccommodationUnits()
{
- return $this->tourBookingPage;
+ return $this->numberOfAccommodationUnits;
}
/**
- * @param string $tourBookingPage
+ * @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 setTourBookingPage($tourBookingPage)
+ public function setNumberOfAccommodationUnits($numberOfAccommodationUnits)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $tourBookingPage = self::checkTypes($tourBookingPage, $types);
+ $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types);
- $this->tourBookingPage = $tourBookingPage;
+ $this->numberOfAccommodationUnits = $numberOfAccommodationUnits;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getNumberOfBedrooms()
+ public function getNumberOfAvailableAccommodationUnits()
{
- return $this->numberOfBedrooms;
+ return $this->numberOfAvailableAccommodationUnits;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfBedrooms
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAvailableAccommodationUnits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfBedrooms($numberOfBedrooms)
+ public function setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommodationUnits)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types);
+ $numberOfAvailableAccommodationUnits = self::checkTypes($numberOfAvailableAccommodationUnits, $types);
- $this->numberOfBedrooms = $numberOfBedrooms;
+ $this->numberOfAvailableAccommodationUnits = $numberOfAvailableAccommodationUnits;
}
/**
- * @return bool|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function getPetsAllowed()
+ public function getNumberOfBedrooms()
{
- return $this->petsAllowed;
+ return $this->numberOfBedrooms;
}
/**
- * @param bool|string|null $petsAllowed
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfBedrooms
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPetsAllowed($petsAllowed)
+ public function setNumberOfBedrooms($numberOfBedrooms)
{
$types = [
- "bool",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "Number",
"null",
];
- $petsAllowed = self::checkTypes($petsAllowed, $types);
+ $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types);
- $this->petsAllowed = $petsAllowed;
+ $this->numberOfBedrooms = $numberOfBedrooms;
}
}
diff --git a/src/Models/SchemaOrg/ArchiveComponent.php b/src/Models/SchemaOrg/ArchiveComponent.php
index 3aa0360c..ae8f3c0d 100644
--- a/src/Models/SchemaOrg/ArchiveComponent.php
+++ b/src/Models/SchemaOrg/ArchiveComponent.php
@@ -36,7 +36,7 @@ public static function fieldList() {
* [object Object]
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @var \OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|string
*/
protected $itemLocation;
@@ -66,7 +66,7 @@ public function setHoldingArchive($holdingArchive)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @return \OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|string
*/
public function getItemLocation()
{
@@ -74,16 +74,16 @@ public function getItemLocation()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $itemLocation
+ * @param \OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|string $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\PostalAddress",
"\OpenActive\Models\SchemaOrg\Place",
"string",
- "\OpenActive\Models\SchemaOrg\PostalAddress",
];
$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..a78fc4b1 100644
--- a/src/Models/SchemaOrg/Article.php
+++ b/src/Models/SchemaOrg/Article.php
@@ -17,26 +17,34 @@ public static function getType()
public static function fieldList() {
$fields = [
- "pageStart" => "pageStart",
- "articleSection" => "articleSection",
- "pageEnd" => "pageEnd",
- "backstory" => "backstory",
"wordCount" => "wordCount",
+ "pagination" => "pagination",
+ "articleSection" => "articleSection",
"articleBody" => "articleBody",
+ "backstory" => "backstory",
+ "pageEnd" => "pageEnd",
+ "pageStart" => "pageStart",
"speakable" => "speakable",
- "pagination" => "pagination",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The page on which the work starts; for example "135" or "xiii".
+ * The number of words in the text of the Article.
*
*
- * @var string|int|null
+ * @var int|null
*/
- protected $pageStart;
+ protected $wordCount;
+
+ /**
+ * 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;
/**
* Articles may belong to one or more 'sections' in a magazine or newspaper, such as Sports, Lifestyle, etc.
@@ -47,12 +55,12 @@ public static function fieldList() {
protected $articleSection;
/**
- * The page on which the work ends; for example "138" or "xvi".
+ * The actual body of the article.
*
*
- * @var string|int|null
+ * @var string
*/
- protected $pageEnd;
+ protected $articleBody;
/**
* 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.
@@ -63,20 +71,20 @@ public static function fieldList() {
protected $backstory;
/**
- * The number of words in the text of the Article.
+ * The page on which the work ends; for example "138" or "xvi".
*
*
- * @var int|null
+ * @var string|int|null
*/
- protected $wordCount;
+ protected $pageEnd;
/**
- * The actual body of the article.
+ * The page on which the work starts; for example "135" or "xiii".
*
*
- * @var string
+ * @var string|int|null
*/
- protected $articleBody;
+ protected $pageStart;
/**
* Indicates sections of a Web page that are particularly 'speakable' in the sense of being highlighted as being especially appropriate for text-to-speech conversion. Other sections of a page may also be usefully spoken in particular circumstances; the 'speakable' property serves to indicate the parts most likely to be generally useful for speech.
@@ -85,7 +93,7 @@ public static function fieldList() {
*
* 1.) *id-value* URL references - uses *id-value* of an element in the page being annotated. The simplest use of *speakable* has (potentially relative) URL values, referencing identified sections of the document concerned.
*
- * 2.) CSS Selectors - addresses content in the annotated page, eg. via class attribute. Use the [[cssSelector]] property.
+ * 2.) CSS Selectors - addresses content in the annotated page, e.g. via class attribute. Use the [[cssSelector]] property.
*
* 3.) XPaths - addresses content via XPaths (assuming an XML view of the content). Use the [[xpath]] property.
*
@@ -95,42 +103,57 @@ public static function fieldList() {
*
*
*
- * @var string|\OpenActive\Models\SchemaOrg\SpeakableSpecification
+ * @var \OpenActive\Models\SchemaOrg\SpeakableSpecification|string
*/
protected $speakable;
/**
- * Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49".
- *
- *
- * @var string
+ * @return int|null
*/
- protected $pagination;
+ public function getWordCount()
+ {
+ return $this->wordCount;
+ }
/**
- * @return string|int|null
+ * @param int|null $wordCount
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function getPageStart()
+ public function setWordCount($wordCount)
{
- return $this->pageStart;
+ $types = [
+ "int",
+ "null",
+ ];
+
+ $wordCount = self::checkTypes($wordCount, $types);
+
+ $this->wordCount = $wordCount;
}
/**
- * @param string|int|null $pageStart
+ * @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 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;
}
/**
@@ -158,29 +181,27 @@ public function setArticleSection($articleSection)
}
/**
- * @return string|int|null
+ * @return string
*/
- public function getPageEnd()
+ public function getArticleBody()
{
- return $this->pageEnd;
+ return $this->articleBody;
}
/**
- * @param string|int|null $pageEnd
+ * @param string $articleBody
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPageEnd($pageEnd)
+ public function setArticleBody($articleBody)
{
$types = [
"string",
- "int",
- "null",
];
- $pageEnd = self::checkTypes($pageEnd, $types);
+ $articleBody = self::checkTypes($articleBody, $types);
- $this->pageEnd = $pageEnd;
+ $this->articleBody = $articleBody;
}
/**
@@ -209,56 +230,59 @@ public function setBackstory($backstory)
}
/**
- * @return int|null
+ * @return string|int|null
*/
- public function getWordCount()
+ public function getPageEnd()
{
- return $this->wordCount;
+ return $this->pageEnd;
}
/**
- * @param int|null $wordCount
+ * @param string|int|null $pageEnd
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWordCount($wordCount)
+ public function setPageEnd($pageEnd)
{
$types = [
+ "string",
"int",
"null",
];
- $wordCount = self::checkTypes($wordCount, $types);
+ $pageEnd = self::checkTypes($pageEnd, $types);
- $this->wordCount = $wordCount;
+ $this->pageEnd = $pageEnd;
}
/**
- * @return string
+ * @return string|int|null
*/
- public function getArticleBody()
+ public function getPageStart()
{
- return $this->articleBody;
+ return $this->pageStart;
}
/**
- * @param string $articleBody
+ * @param string|int|null $pageStart
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArticleBody($articleBody)
+ public function setPageStart($pageStart)
{
$types = [
"string",
+ "int",
+ "null",
];
- $articleBody = self::checkTypes($articleBody, $types);
+ $pageStart = self::checkTypes($pageStart, $types);
- $this->articleBody = $articleBody;
+ $this->pageStart = $pageStart;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\SpeakableSpecification
+ * @return \OpenActive\Models\SchemaOrg\SpeakableSpecification|string
*/
public function getSpeakable()
{
@@ -266,15 +290,15 @@ public function getSpeakable()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\SpeakableSpecification $speakable
+ * @param \OpenActive\Models\SchemaOrg\SpeakableSpecification|string $speakable
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setSpeakable($speakable)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\SpeakableSpecification",
+ "string",
];
$speakable = self::checkTypes($speakable, $types);
@@ -282,28 +306,4 @@ public function setSpeakable($speakable)
$this->speakable = $speakable;
}
- /**
- * @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/Audience.php b/src/Models/SchemaOrg/Audience.php
index ccb9ff52..61280d36 100644
--- a/src/Models/SchemaOrg/Audience.php
+++ b/src/Models/SchemaOrg/Audience.php
@@ -17,76 +17,76 @@ public static function getType()
public static function fieldList() {
$fields = [
- "audienceType" => "audienceType",
"geographicArea" => "geographicArea",
+ "audienceType" => "audienceType",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The target group associated with a given audience (e.g. veterans, car owners, musicians, etc.).
+ * The geographic area associated with the audience.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $audienceType;
+ protected $geographicArea;
/**
- * The geographic area associated with the audience.
+ * The target group associated with a given audience (e.g. veterans, car owners, musicians, etc.).
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @var string
*/
- protected $geographicArea;
+ protected $audienceType;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getAudienceType()
+ public function getGeographicArea()
{
- return $this->audienceType;
+ return $this->geographicArea;
}
/**
- * @param string $audienceType
+ * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $geographicArea
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAudienceType($audienceType)
+ public function setGeographicArea($geographicArea)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $audienceType = self::checkTypes($audienceType, $types);
+ $geographicArea = self::checkTypes($geographicArea, $types);
- $this->audienceType = $audienceType;
+ $this->geographicArea = $geographicArea;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return string
*/
- public function getGeographicArea()
+ public function getAudienceType()
{
- return $this->geographicArea;
+ return $this->audienceType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $geographicArea
+ * @param string $audienceType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeographicArea($geographicArea)
+ public function setAudienceType($audienceType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $geographicArea = self::checkTypes($geographicArea, $types);
+ $audienceType = self::checkTypes($audienceType, $types);
- $this->geographicArea = $geographicArea;
+ $this->audienceType = $audienceType;
}
}
diff --git a/src/Models/SchemaOrg/AuthorizeAction.php b/src/Models/SchemaOrg/AuthorizeAction.php
index 8f33b194..20918fb5 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\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
protected $recipient;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
public function getRecipient()
{
@@ -40,17 +40,17 @@ public function getRecipient()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setRecipient($recipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Person",
"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..f78e4166 100644
--- a/src/Models/SchemaOrg/BankAccount.php
+++ b/src/Models/SchemaOrg/BankAccount.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "bankAccountType" => "bankAccountType",
"accountMinimumInflow" => "accountMinimumInflow",
+ "bankAccountType" => "bankAccountType",
"accountOverdraftLimit" => "accountOverdraftLimit",
];
@@ -26,20 +26,20 @@ public static function fieldList() {
}
/**
- * The type of a bank account.
+ * A minimum amount that has to be paid in every month.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $bankAccountType;
+ protected $accountMinimumInflow;
/**
- * 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.
@@ -50,52 +50,52 @@ public static function fieldList() {
protected $accountOverdraftLimit;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getBankAccountType()
+ public function getAccountMinimumInflow()
{
- return $this->bankAccountType;
+ return $this->accountMinimumInflow;
}
/**
- * @param string $bankAccountType
+ * @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 setBankAccountType($bankAccountType)
+ public function setAccountMinimumInflow($accountMinimumInflow)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
];
- $bankAccountType = self::checkTypes($bankAccountType, $types);
+ $accountMinimumInflow = self::checkTypes($accountMinimumInflow, $types);
- $this->bankAccountType = $bankAccountType;
+ $this->accountMinimumInflow = $accountMinimumInflow;
}
/**
- * @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;
}
/**
diff --git a/src/Models/SchemaOrg/BedDetails.php b/src/Models/SchemaOrg/BedDetails.php
index 3b00a07d..db8fa14a 100644
--- a/src/Models/SchemaOrg/BedDetails.php
+++ b/src/Models/SchemaOrg/BedDetails.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "typeOfBed" => "typeOfBed",
"numberOfBeds" => "numberOfBeds",
+ "typeOfBed" => "typeOfBed",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The type of bed to which the BedDetail refers, i.e. the type of bed available in the quantity indicated by quantity.
+ * The quantity of the given bed type available in the HotelRoom, Suite, House, or Apartment.
*
*
- * @var \OpenActive\Models\SchemaOrg\BedType|string
+ * @var Number|null
*/
- protected $typeOfBed;
+ protected $numberOfBeds;
/**
- * The quantity of the given bed type available in the HotelRoom, Suite, House, or Apartment.
+ * The type of bed to which the BedDetail refers, i.e. the type of bed available in the quantity indicated by quantity.
*
*
- * @var Number|null
+ * @var string|\OpenActive\Models\SchemaOrg\BedType
*/
- protected $numberOfBeds;
+ protected $typeOfBed;
/**
- * @return \OpenActive\Models\SchemaOrg\BedType|string
+ * @return Number|null
*/
- public function getTypeOfBed()
+ public function getNumberOfBeds()
{
- return $this->typeOfBed;
+ return $this->numberOfBeds;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BedType|string $typeOfBed
+ * @param Number|null $numberOfBeds
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTypeOfBed($typeOfBed)
+ public function setNumberOfBeds($numberOfBeds)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BedType",
- "string",
+ "Number",
+ "null",
];
- $typeOfBed = self::checkTypes($typeOfBed, $types);
+ $numberOfBeds = self::checkTypes($numberOfBeds, $types);
- $this->typeOfBed = $typeOfBed;
+ $this->numberOfBeds = $numberOfBeds;
}
/**
- * @return Number|null
+ * @return string|\OpenActive\Models\SchemaOrg\BedType
*/
- public function getNumberOfBeds()
+ public function getTypeOfBed()
{
- return $this->numberOfBeds;
+ return $this->typeOfBed;
}
/**
- * @param Number|null $numberOfBeds
+ * @param string|\OpenActive\Models\SchemaOrg\BedType $typeOfBed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfBeds($numberOfBeds)
+ public function setTypeOfBed($typeOfBed)
{
$types = [
- "Number",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\BedType",
];
- $numberOfBeds = self::checkTypes($numberOfBeds, $types);
+ $typeOfBed = self::checkTypes($typeOfBed, $types);
- $this->numberOfBeds = $numberOfBeds;
+ $this->typeOfBed = $typeOfBed;
}
}
diff --git a/src/Models/SchemaOrg/BioChemEntity.php b/src/Models/SchemaOrg/BioChemEntity.php
index c73b1a54..3351c77a 100644
--- a/src/Models/SchemaOrg/BioChemEntity.php
+++ b/src/Models/SchemaOrg/BioChemEntity.php
@@ -17,321 +17,318 @@ public static function getType()
public static function fieldList() {
$fields = [
- "funding" => "funding",
"isEncodedByBioChemEntity" => "isEncodedByBioChemEntity",
- "isPartOfBioChemEntity" => "isPartOfBioChemEntity",
- "taxonomicRange" => "taxonomicRange",
- "isInvolvedInBiologicalProcess" => "isInvolvedInBiologicalProcess",
- "isLocatedInSubcellularLocation" => "isLocatedInSubcellularLocation",
- "associatedDisease" => "associatedDisease",
"hasMolecularFunction" => "hasMolecularFunction",
+ "bioChemSimilarity" => "bioChemSimilarity",
"hasBioChemEntityPart" => "hasBioChemEntityPart",
+ "isPartOfBioChemEntity" => "isPartOfBioChemEntity",
+ "biologicalRole" => "biologicalRole",
"bioChemInteraction" => "bioChemInteraction",
+ "isLocatedInSubcellularLocation" => "isLocatedInSubcellularLocation",
"hasRepresentation" => "hasRepresentation",
- "bioChemSimilarity" => "bioChemSimilarity",
- "biologicalRole" => "biologicalRole",
+ "funding" => "funding",
+ "isInvolvedInBiologicalProcess" => "isInvolvedInBiologicalProcess",
+ "taxonomicRange" => "taxonomicRange",
+ "associatedDisease" => "associatedDisease",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
+ * Another BioChemEntity encoding by this one.
*
*
- * @var \OpenActive\Models\SchemaOrg\Grant|string
+ * @var \OpenActive\Models\SchemaOrg\Gene|string
*/
- protected $funding;
+ protected $isEncodedByBioChemEntity;
/**
- * Another BioChemEntity encoding by this one.
+ * Molecular function performed by this BioChemEntity; please use PropertyValue if you want to include any evidence.
*
*
- * @var \OpenActive\Models\SchemaOrg\Gene|string
+ * @var \OpenActive\Models\SchemaOrg\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $isEncodedByBioChemEntity;
+ protected $hasMolecularFunction;
/**
- * Indicates a BioChemEntity that is (in some sense) a part of this BioChemEntity.
+ * A similar BioChemEntity, e.g., obtained by fingerprint similarity algorithms.
*
*
* @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- protected $isPartOfBioChemEntity;
+ protected $bioChemSimilarity;
/**
- * The taxonomic grouping of the organism that expresses, encodes, or in someway related to the BioChemEntity.
+ * Indicates a BioChemEntity that (in some sense) has this BioChemEntity as a part.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon
+ * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- protected $taxonomicRange;
+ protected $hasBioChemEntityPart;
/**
- * 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.
+ * A role played by the BioChemEntity within a biological context.
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $isLocatedInSubcellularLocation;
+ protected $biologicalRole;
/**
- * 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 BioChemEntity that is known to interact with this item.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition
+ * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- protected $associatedDisease;
+ protected $bioChemInteraction;
/**
- * Molecular function performed by this BioChemEntity; please use PropertyValue if you want to include any evidence.
+ * 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
*/
- protected $hasMolecularFunction;
+ protected $isLocatedInSubcellularLocation;
/**
- * Indicates a BioChemEntity that (in some sense) has this BioChemEntity as a part.
+ * A common representation such as a protein sequence or chemical structure for this entity. For images use schema.org/image.
*
*
- * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
+ * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- protected $hasBioChemEntityPart;
+ protected $hasRepresentation;
/**
- * A BioChemEntity that is known to interact with this item.
+ * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
*
*
- * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
+ * @var \OpenActive\Models\SchemaOrg\Grant|string
*/
- protected $bioChemInteraction;
+ protected $funding;
/**
- * A common representation such as a protein sequence or chemical structure for this entity. For images use schema.org/image.
+ * Biological process this BioChemEntity is involved in; please use PropertyValue if you want to include any evidence.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\PropertyValue
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue
*/
- protected $hasRepresentation;
+ protected $isInvolvedInBiologicalProcess;
/**
- * A similar BioChemEntity, e.g., obtained by fingerprint similarity algorithms.
+ * The taxonomic grouping of the organism that expresses, encodes, or in some way related to the BioChemEntity.
*
*
- * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon
*/
- protected $bioChemSimilarity;
+ protected $taxonomicRange;
/**
- * A role played by the BioChemEntity within a biological context.
+ * Disease associated to this BioChemEntity. Such disease can be a MedicalCondition or a URL. If you want to add an evidence supporting the association, please use PropertyValue.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalCondition|\OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- protected $biologicalRole;
+ protected $associatedDisease;
/**
- * @return \OpenActive\Models\SchemaOrg\Grant|string
+ * @return \OpenActive\Models\SchemaOrg\Gene|string
*/
- public function getFunding()
+ public function getIsEncodedByBioChemEntity()
{
- return $this->funding;
+ return $this->isEncodedByBioChemEntity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Grant|string $funding
+ * @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 setFunding($funding)
+ public function setIsEncodedByBioChemEntity($isEncodedByBioChemEntity)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Grant",
+ "\OpenActive\Models\SchemaOrg\Gene",
"string",
];
- $funding = self::checkTypes($funding, $types);
+ $isEncodedByBioChemEntity = self::checkTypes($isEncodedByBioChemEntity, $types);
- $this->funding = $funding;
+ $this->isEncodedByBioChemEntity = $isEncodedByBioChemEntity;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Gene|string
+ * @return \OpenActive\Models\SchemaOrg\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getIsEncodedByBioChemEntity()
+ public function getHasMolecularFunction()
{
- return $this->isEncodedByBioChemEntity;
+ return $this->hasMolecularFunction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Gene|string $isEncodedByBioChemEntity
+ * @param \OpenActive\Models\SchemaOrg\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm $hasMolecularFunction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsEncodedByBioChemEntity($isEncodedByBioChemEntity)
+ public function setHasMolecularFunction($hasMolecularFunction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Gene",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $isEncodedByBioChemEntity = self::checkTypes($isEncodedByBioChemEntity, $types);
+ $hasMolecularFunction = self::checkTypes($hasMolecularFunction, $types);
- $this->isEncodedByBioChemEntity = $isEncodedByBioChemEntity;
+ $this->hasMolecularFunction = $hasMolecularFunction;
}
/**
* @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- public function getIsPartOfBioChemEntity()
+ public function getBioChemSimilarity()
{
- return $this->isPartOfBioChemEntity;
+ return $this->bioChemSimilarity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $isPartOfBioChemEntity
+ * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $bioChemSimilarity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsPartOfBioChemEntity($isPartOfBioChemEntity)
+ public function setBioChemSimilarity($bioChemSimilarity)
{
$types = [
"\OpenActive\Models\SchemaOrg\BioChemEntity",
"string",
];
- $isPartOfBioChemEntity = self::checkTypes($isPartOfBioChemEntity, $types);
+ $bioChemSimilarity = self::checkTypes($bioChemSimilarity, $types);
- $this->isPartOfBioChemEntity = $isPartOfBioChemEntity;
+ $this->bioChemSimilarity = $bioChemSimilarity;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon
+ * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- public function getTaxonomicRange()
+ public function getHasBioChemEntityPart()
{
- return $this->taxonomicRange;
+ return $this->hasBioChemEntityPart;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon $taxonomicRange
+ * @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 setTaxonomicRange($taxonomicRange)
+ public function setHasBioChemEntityPart($hasBioChemEntityPart)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\BioChemEntity",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
- "\OpenActive\Models\SchemaOrg\Taxon",
];
- $taxonomicRange = self::checkTypes($taxonomicRange, $types);
+ $hasBioChemEntityPart = self::checkTypes($hasBioChemEntityPart, $types);
- $this->taxonomicRange = $taxonomicRange;
+ $this->hasBioChemEntityPart = $hasBioChemEntityPart;
}
/**
- * @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|string
*/
- public function getIsLocatedInSubcellularLocation()
+ public function getBiologicalRole()
{
- return $this->isLocatedInSubcellularLocation;
+ return $this->biologicalRole;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string $isLocatedInSubcellularLocation
+ * @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 setIsLocatedInSubcellularLocation($isLocatedInSubcellularLocation)
+ public function setBiologicalRole($biologicalRole)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
"\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $isLocatedInSubcellularLocation = self::checkTypes($isLocatedInSubcellularLocation, $types);
+ $biologicalRole = self::checkTypes($biologicalRole, $types);
- $this->isLocatedInSubcellularLocation = $isLocatedInSubcellularLocation;
+ $this->biologicalRole = $biologicalRole;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition
+ * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- public function getAssociatedDisease()
+ public function getBioChemInteraction()
{
- return $this->associatedDisease;
+ return $this->bioChemInteraction;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition $associatedDisease
+ * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $bioChemInteraction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssociatedDisease($associatedDisease)
+ public function setBioChemInteraction($bioChemInteraction)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\BioChemEntity",
"string",
- "\OpenActive\Models\SchemaOrg\PropertyValue",
- "\OpenActive\Models\SchemaOrg\MedicalCondition",
];
- $associatedDisease = self::checkTypes($associatedDisease, $types);
+ $bioChemInteraction = self::checkTypes($bioChemInteraction, $types);
- $this->associatedDisease = $associatedDisease;
+ $this->bioChemInteraction = $bioChemInteraction;
}
/**
* @return \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getHasMolecularFunction()
+ public function getIsLocatedInSubcellularLocation()
{
- return $this->hasMolecularFunction;
+ return $this->isLocatedInSubcellularLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string $hasMolecularFunction
+ * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string $isLocatedInSubcellularLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMolecularFunction($hasMolecularFunction)
+ public function setIsLocatedInSubcellularLocation($isLocatedInSubcellularLocation)
{
$types = [
"\OpenActive\Models\SchemaOrg\PropertyValue",
@@ -339,134 +336,137 @@ public function setHasMolecularFunction($hasMolecularFunction)
"string",
];
- $hasMolecularFunction = self::checkTypes($hasMolecularFunction, $types);
+ $isLocatedInSubcellularLocation = self::checkTypes($isLocatedInSubcellularLocation, $types);
- $this->hasMolecularFunction = $hasMolecularFunction;
+ $this->isLocatedInSubcellularLocation = $isLocatedInSubcellularLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
+ * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- public function getHasBioChemEntityPart()
+ public function getHasRepresentation()
{
- return $this->hasBioChemEntityPart;
+ return $this->hasRepresentation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $hasBioChemEntityPart
+ * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $hasRepresentation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasBioChemEntityPart($hasBioChemEntityPart)
+ public function setHasRepresentation($hasRepresentation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BioChemEntity",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
"string",
];
- $hasBioChemEntityPart = self::checkTypes($hasBioChemEntityPart, $types);
+ $hasRepresentation = self::checkTypes($hasRepresentation, $types);
- $this->hasBioChemEntityPart = $hasBioChemEntityPart;
+ $this->hasRepresentation = $hasRepresentation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
+ * @return \OpenActive\Models\SchemaOrg\Grant|string
*/
- public function getBioChemInteraction()
+ public function getFunding()
{
- return $this->bioChemInteraction;
+ return $this->funding;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $bioChemInteraction
+ * @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 setBioChemInteraction($bioChemInteraction)
+ public function setFunding($funding)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BioChemEntity",
+ "\OpenActive\Models\SchemaOrg\Grant",
"string",
];
- $bioChemInteraction = self::checkTypes($bioChemInteraction, $types);
+ $funding = self::checkTypes($funding, $types);
- $this->bioChemInteraction = $bioChemInteraction;
+ $this->funding = $funding;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\PropertyValue
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue
*/
- public function getHasRepresentation()
+ public function getIsInvolvedInBiologicalProcess()
{
- return $this->hasRepresentation;
+ return $this->isInvolvedInBiologicalProcess;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\PropertyValue $hasRepresentation
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue $isInvolvedInBiologicalProcess
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasRepresentation($hasRepresentation)
+ public function setIsInvolvedInBiologicalProcess($isInvolvedInBiologicalProcess)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"\OpenActive\Models\SchemaOrg\PropertyValue",
];
- $hasRepresentation = self::checkTypes($hasRepresentation, $types);
+ $isInvolvedInBiologicalProcess = self::checkTypes($isInvolvedInBiologicalProcess, $types);
- $this->hasRepresentation = $hasRepresentation;
+ $this->isInvolvedInBiologicalProcess = $isInvolvedInBiologicalProcess;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon
*/
- public function getBioChemSimilarity()
+ public function getTaxonomicRange()
{
- return $this->bioChemSimilarity;
+ return $this->taxonomicRange;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $bioChemSimilarity
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon $taxonomicRange
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBioChemSimilarity($bioChemSimilarity)
+ public function setTaxonomicRange($taxonomicRange)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BioChemEntity",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\Taxon",
];
- $bioChemSimilarity = self::checkTypes($bioChemSimilarity, $types);
+ $taxonomicRange = self::checkTypes($taxonomicRange, $types);
- $this->bioChemSimilarity = $bioChemSimilarity;
+ $this->taxonomicRange = $taxonomicRange;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalCondition|\OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- public function getBiologicalRole()
+ public function getAssociatedDisease()
{
- return $this->biologicalRole;
+ return $this->associatedDisease;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $biologicalRole
+ * @param \OpenActive\Models\SchemaOrg\MedicalCondition|\OpenActive\Models\SchemaOrg\PropertyValue|string $associatedDisease
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBiologicalRole($biologicalRole)
+ public function setAssociatedDisease($associatedDisease)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\MedicalCondition",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
"string",
];
- $biologicalRole = self::checkTypes($biologicalRole, $types);
+ $associatedDisease = self::checkTypes($associatedDisease, $types);
- $this->biologicalRole = $biologicalRole;
+ $this->associatedDisease = $associatedDisease;
}
}
diff --git a/src/Models/SchemaOrg/Blog.php b/src/Models/SchemaOrg/Blog.php
index 723f2dad..3240c659 100644
--- a/src/Models/SchemaOrg/Blog.php
+++ b/src/Models/SchemaOrg/Blog.php
@@ -17,110 +17,110 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "blogPost" => "blogPost",
"blogPosts" => "blogPosts",
"issn" => "issn",
- "blogPost" => "blogPost",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Indicates a post that is part of a [[Blog]]. Note that historically, what we term a "Blog" was once known as a "weblog", and that what we term a "BlogPosting" is now often colloquially referred to as a "blog".
+ * A posting that is part of this blog.
*
*
* @var \OpenActive\Models\SchemaOrg\BlogPosting|string
*/
- protected $blogPosts;
+ protected $blogPost;
/**
- * The International Standard Serial Number (ISSN) that identifies this serial publication. You can repeat this property to identify different formats of, or the linking ISSN (ISSN-L) for, this serial publication.
+ * Indicates a post that is part of a [[Blog]]. Note that historically, what we term a "Blog" was once known as a "weblog", and that what we term a "BlogPosting" is now often colloquially referred to as a "blog".
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\BlogPosting|string
*/
- protected $issn;
+ protected $blogPosts;
/**
- * A posting that is part of this blog.
+ * The International Standard Serial Number (ISSN) that identifies this serial publication. You can repeat this property to identify different formats of, or the linking ISSN (ISSN-L) for, this serial publication.
*
*
- * @var \OpenActive\Models\SchemaOrg\BlogPosting|string
+ * @var string
*/
- protected $blogPost;
+ protected $issn;
/**
* @return \OpenActive\Models\SchemaOrg\BlogPosting|string
*/
- public function getBlogPosts()
+ public function getBlogPost()
{
- return $this->blogPosts;
+ return $this->blogPost;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $blogPosts
+ * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $blogPost
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBlogPosts($blogPosts)
+ public function setBlogPost($blogPost)
{
$types = [
"\OpenActive\Models\SchemaOrg\BlogPosting",
"string",
];
- $blogPosts = self::checkTypes($blogPosts, $types);
+ $blogPost = self::checkTypes($blogPost, $types);
- $this->blogPosts = $blogPosts;
+ $this->blogPost = $blogPost;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\BlogPosting|string
*/
- public function getIssn()
+ public function getBlogPosts()
{
- return $this->issn;
+ return $this->blogPosts;
}
/**
- * @param string $issn
+ * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $blogPosts
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIssn($issn)
+ public function setBlogPosts($blogPosts)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\BlogPosting",
"string",
];
- $issn = self::checkTypes($issn, $types);
+ $blogPosts = self::checkTypes($blogPosts, $types);
- $this->issn = $issn;
+ $this->blogPosts = $blogPosts;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BlogPosting|string
+ * @return string
*/
- public function getBlogPost()
+ public function getIssn()
{
- return $this->blogPost;
+ return $this->issn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $blogPost
+ * @param string $issn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBlogPost($blogPost)
+ public function setIssn($issn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BlogPosting",
"string",
];
- $blogPost = self::checkTypes($blogPost, $types);
+ $issn = self::checkTypes($issn, $types);
- $this->blogPost = $blogPost;
+ $this->issn = $issn;
}
}
diff --git a/src/Models/SchemaOrg/Book.php b/src/Models/SchemaOrg/Book.php
index e1fc9cfc..2854fb24 100644
--- a/src/Models/SchemaOrg/Book.php
+++ b/src/Models/SchemaOrg/Book.php
@@ -17,40 +17,40 @@ public static function getType()
public static function fieldList() {
$fields = [
- "isbn" => "isbn",
- "illustrator" => "illustrator",
"numberOfPages" => "numberOfPages",
- "abridged" => "abridged",
- "bookFormat" => "bookFormat",
"bookEdition" => "bookEdition",
+ "bookFormat" => "bookFormat",
+ "abridged" => "abridged",
+ "isbn" => "isbn",
+ "illustrator" => "illustrator",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The ISBN of the book.
+ * The number of pages in the book.
*
*
- * @var string
+ * @var int|null
*/
- protected $isbn;
+ protected $numberOfPages;
/**
- * The illustrator of the book.
+ * The edition of the book.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $illustrator;
+ protected $bookEdition;
/**
- * The number of pages in the book.
+ * The format of the book.
*
*
- * @var int|null
+ * @var \OpenActive\Enums\SchemaOrg\BookFormatType|null
*/
- protected $numberOfPages;
+ protected $bookFormat;
/**
* Indicates whether the book is an abridged edition.
@@ -61,93 +61,93 @@ public static function fieldList() {
protected $abridged;
/**
- * The format of the book.
+ * The ISBN of the book.
*
*
- * @var \OpenActive\Enums\SchemaOrg\BookFormatType|null
+ * @var string
*/
- protected $bookFormat;
+ protected $isbn;
/**
- * The edition of the book.
+ * The illustrator of the book.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $bookEdition;
+ protected $illustrator;
/**
- * @return string
+ * @return int|null
*/
- public function getIsbn()
+ public function getNumberOfPages()
{
- return $this->isbn;
+ return $this->numberOfPages;
}
/**
- * @param string $isbn
+ * @param int|null $numberOfPages
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsbn($isbn)
+ public function setNumberOfPages($numberOfPages)
{
$types = [
- "string",
+ "int",
+ "null",
];
- $isbn = self::checkTypes($isbn, $types);
+ $numberOfPages = self::checkTypes($numberOfPages, $types);
- $this->isbn = $isbn;
+ $this->numberOfPages = $numberOfPages;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getIllustrator()
+ public function getBookEdition()
{
- return $this->illustrator;
+ return $this->bookEdition;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $illustrator
+ * @param string $bookEdition
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIllustrator($illustrator)
+ public function setBookEdition($bookEdition)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $illustrator = self::checkTypes($illustrator, $types);
+ $bookEdition = self::checkTypes($bookEdition, $types);
- $this->illustrator = $illustrator;
+ $this->bookEdition = $bookEdition;
}
/**
- * @return int|null
+ * @return \OpenActive\Enums\SchemaOrg\BookFormatType|null
*/
- public function getNumberOfPages()
+ public function getBookFormat()
{
- return $this->numberOfPages;
+ return $this->bookFormat;
}
/**
- * @param int|null $numberOfPages
+ * @param \OpenActive\Enums\SchemaOrg\BookFormatType|null $bookFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfPages($numberOfPages)
+ public function setBookFormat($bookFormat)
{
$types = [
- "int",
+ "\OpenActive\Enums\SchemaOrg\BookFormatType",
"null",
];
- $numberOfPages = self::checkTypes($numberOfPages, $types);
+ $bookFormat = self::checkTypes($bookFormat, $types);
- $this->numberOfPages = $numberOfPages;
+ $this->bookFormat = $bookFormat;
}
/**
@@ -176,52 +176,52 @@ public function setAbridged($abridged)
}
/**
- * @return \OpenActive\Enums\SchemaOrg\BookFormatType|null
+ * @return string
*/
- public function getBookFormat()
+ public function getIsbn()
{
- return $this->bookFormat;
+ return $this->isbn;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\BookFormatType|null $bookFormat
+ * @param string $isbn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBookFormat($bookFormat)
+ public function setIsbn($isbn)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\BookFormatType",
- "null",
+ "string",
];
- $bookFormat = self::checkTypes($bookFormat, $types);
+ $isbn = self::checkTypes($isbn, $types);
- $this->bookFormat = $bookFormat;
+ $this->isbn = $isbn;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getBookEdition()
+ public function getIllustrator()
{
- return $this->bookEdition;
+ return $this->illustrator;
}
/**
- * @param string $bookEdition
+ * @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 setBookEdition($bookEdition)
+ public function setIllustrator($illustrator)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $bookEdition = self::checkTypes($bookEdition, $types);
+ $illustrator = self::checkTypes($illustrator, $types);
- $this->bookEdition = $bookEdition;
+ $this->illustrator = $illustrator;
}
}
diff --git a/src/Models/SchemaOrg/BorrowAction.php b/src/Models/SchemaOrg/BorrowAction.php
index 5378aa96..fc904892 100644
--- a/src/Models/SchemaOrg/BorrowAction.php
+++ b/src/Models/SchemaOrg/BorrowAction.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* A sub property of participant. The person that lends the object being borrowed.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
protected $lender;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
public function getLender()
{
@@ -40,15 +40,15 @@ public function getLender()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $lender
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $lender
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setLender($lender)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
diff --git a/src/Models/SchemaOrg/Brand.php b/src/Models/SchemaOrg/Brand.php
index ccca908c..e7f48390 100644
--- a/src/Models/SchemaOrg/Brand.php
+++ b/src/Models/SchemaOrg/Brand.php
@@ -17,30 +17,30 @@ public static function getType()
public static function fieldList() {
$fields = [
- "review" => "review",
"aggregateRating" => "aggregateRating",
- "slogan" => "slogan",
"logo" => "logo",
+ "slogan" => "slogan",
+ "review" => "review",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A review of the item.
+ * The overall rating, based on a collection of reviews or ratings, of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- protected $review;
+ protected $aggregateRating;
/**
- * The overall rating, based on a collection of reviews or ratings, of the item.
+ * An associated logo.
*
*
- * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @var \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- protected $aggregateRating;
+ protected $logo;
/**
* A slogan or motto associated with the item.
@@ -51,61 +51,61 @@ public static function fieldList() {
protected $slogan;
/**
- * 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 \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- public function getReview()
+ public function getAggregateRating()
{
- return $this->review;
+ return $this->aggregateRating;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $review
+ * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReview($review)
+ public function setAggregateRating($aggregateRating)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
+ "\OpenActive\Models\SchemaOrg\AggregateRating",
"string",
];
- $review = self::checkTypes($review, $types);
+ $aggregateRating = self::checkTypes($aggregateRating, $types);
- $this->review = $review;
+ $this->aggregateRating = $aggregateRating;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @return \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- public function getAggregateRating()
+ public function getLogo()
{
- return $this->aggregateRating;
+ return $this->logo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating
+ * @param \OpenActive\Models\SchemaOrg\ImageObject|string $logo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAggregateRating($aggregateRating)
+ public function setLogo($logo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AggregateRating",
+ "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
];
- $aggregateRating = self::checkTypes($aggregateRating, $types);
+ $logo = self::checkTypes($logo, $types);
- $this->aggregateRating = $aggregateRating;
+ $this->logo = $logo;
}
/**
@@ -133,28 +133,28 @@ public function setSlogan($slogan)
}
/**
- * @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..e1908a5e 100644
--- a/src/Models/SchemaOrg/BroadcastChannel.php
+++ b/src/Models/SchemaOrg/BroadcastChannel.php
@@ -17,32 +17,32 @@ public static function getType()
public static function fieldList() {
$fields = [
- "genre" => "genre",
"broadcastFrequency" => "broadcastFrequency",
+ "broadcastServiceTier" => "broadcastServiceTier",
"providesBroadcastService" => "providesBroadcastService",
- "broadcastChannelId" => "broadcastChannelId",
+ "genre" => "genre",
"inBroadcastLineup" => "inBroadcastLineup",
- "broadcastServiceTier" => "broadcastServiceTier",
+ "broadcastChannelId" => "broadcastChannelId",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Genre of the creative work, broadcast channel or group.
+ * The frequency used for over-the-air broadcasts. Numeric values or simple ranges, e.g. 87-99. In addition a shortcut idiom is supported for frequences of AM and FM radio channels, e.g. "87 FM".
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification
*/
- protected $genre;
+ protected $broadcastFrequency;
/**
- * The frequency used for over-the-air broadcasts. Numeric values or simple ranges e.g. 87-99. In addition a shortcut idiom is supported for frequences of AM and FM radio channels, e.g. "87 FM".
+ * The type of service required to have access to the channel (e.g. Standard or Premium).
*
*
- * @var \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
+ * @var string
*/
- protected $broadcastFrequency;
+ protected $broadcastServiceTier;
/**
* The BroadcastService offered on this channel.
@@ -53,12 +53,12 @@ public static function fieldList() {
protected $providesBroadcastService;
/**
- * The unique address by which the BroadcastService can be identified in a provider lineup. In US, this is typically a number.
+ * Genre of the creative work, broadcast channel or group.
*
*
* @var string
*/
- protected $broadcastChannelId;
+ protected $genre;
/**
* The CableOrSatelliteService offering the channel.
@@ -69,60 +69,60 @@ public static function fieldList() {
protected $inBroadcastLineup;
/**
- * The type of service required to have access to the channel (e.g. Standard or Premium).
+ * The unique address by which the BroadcastService can be identified in a provider lineup. In US, this is typically a number.
*
*
* @var string
*/
- protected $broadcastServiceTier;
+ protected $broadcastChannelId;
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification
*/
- public function getGenre()
+ public function getBroadcastFrequency()
{
- return $this->genre;
+ return $this->broadcastFrequency;
}
/**
- * @param string $genre
+ * @param string|\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification $broadcastFrequency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGenre($genre)
+ public function setBroadcastFrequency($broadcastFrequency)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification",
];
- $genre = self::checkTypes($genre, $types);
+ $broadcastFrequency = self::checkTypes($broadcastFrequency, $types);
- $this->genre = $genre;
+ $this->broadcastFrequency = $broadcastFrequency;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
+ * @return string
*/
- public function getBroadcastFrequency()
+ public function getBroadcastServiceTier()
{
- return $this->broadcastFrequency;
+ return $this->broadcastServiceTier;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string $broadcastFrequency
+ * @param string $broadcastServiceTier
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastFrequency($broadcastFrequency)
+ public function setBroadcastServiceTier($broadcastServiceTier)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification",
"string",
];
- $broadcastFrequency = self::checkTypes($broadcastFrequency, $types);
+ $broadcastServiceTier = self::checkTypes($broadcastServiceTier, $types);
- $this->broadcastFrequency = $broadcastFrequency;
+ $this->broadcastServiceTier = $broadcastServiceTier;
}
/**
@@ -153,25 +153,25 @@ public function setProvidesBroadcastService($providesBroadcastService)
/**
* @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;
}
/**
@@ -202,25 +202,25 @@ public function setInBroadcastLineup($inBroadcastLineup)
/**
* @return string
*/
- public function getBroadcastServiceTier()
+ public function getBroadcastChannelId()
{
- return $this->broadcastServiceTier;
+ return $this->broadcastChannelId;
}
/**
- * @param string $broadcastServiceTier
+ * @param string $broadcastChannelId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastServiceTier($broadcastServiceTier)
+ public function setBroadcastChannelId($broadcastChannelId)
{
$types = [
"string",
];
- $broadcastServiceTier = self::checkTypes($broadcastServiceTier, $types);
+ $broadcastChannelId = self::checkTypes($broadcastChannelId, $types);
- $this->broadcastServiceTier = $broadcastServiceTier;
+ $this->broadcastChannelId = $broadcastChannelId;
}
}
diff --git a/src/Models/SchemaOrg/BroadcastEvent.php b/src/Models/SchemaOrg/BroadcastEvent.php
index 43106fc0..71d92875 100644
--- a/src/Models/SchemaOrg/BroadcastEvent.php
+++ b/src/Models/SchemaOrg/BroadcastEvent.php
@@ -17,144 +17,144 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "isLiveBroadcast" => "isLiveBroadcast",
+ "broadcastOfEvent" => "broadcastOfEvent",
"subtitleLanguage" => "subtitleLanguage",
"videoFormat" => "videoFormat",
- "broadcastOfEvent" => "broadcastOfEvent",
- "isLiveBroadcast" => "isLiveBroadcast",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47).
+ * True if the broadcast is of a live event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Language|string
+ * @var bool|null
*/
- protected $subtitleLanguage;
+ protected $isLiveBroadcast;
/**
- * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.).
+ * The event being broadcast such as a sporting event or awards ceremony.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $videoFormat;
+ protected $broadcastOfEvent;
/**
- * The event being broadcast such as a sporting event or awards ceremony.
+ * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47).
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $broadcastOfEvent;
+ protected $subtitleLanguage;
/**
- * True if the broadcast is of a live event.
+ * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.).
*
*
- * @var bool|null
+ * @var string
*/
- protected $isLiveBroadcast;
+ protected $videoFormat;
/**
- * @return \OpenActive\Models\SchemaOrg\Language|string
+ * @return bool|null
*/
- public function getSubtitleLanguage()
+ public function getIsLiveBroadcast()
{
- return $this->subtitleLanguage;
+ return $this->isLiveBroadcast;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage
+ * @param bool|null $isLiveBroadcast
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSubtitleLanguage($subtitleLanguage)
+ public function setIsLiveBroadcast($isLiveBroadcast)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Language",
- "string",
+ "bool",
+ "null",
];
- $subtitleLanguage = self::checkTypes($subtitleLanguage, $types);
+ $isLiveBroadcast = self::checkTypes($isLiveBroadcast, $types);
- $this->subtitleLanguage = $subtitleLanguage;
+ $this->isLiveBroadcast = $isLiveBroadcast;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getVideoFormat()
+ public function getBroadcastOfEvent()
{
- return $this->videoFormat;
+ return $this->broadcastOfEvent;
}
/**
- * @param string $videoFormat
+ * @param \OpenActive\Models\SchemaOrg\Event|string $broadcastOfEvent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVideoFormat($videoFormat)
+ public function setBroadcastOfEvent($broadcastOfEvent)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $videoFormat = self::checkTypes($videoFormat, $types);
+ $broadcastOfEvent = self::checkTypes($broadcastOfEvent, $types);
- $this->videoFormat = $videoFormat;
+ $this->broadcastOfEvent = $broadcastOfEvent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getBroadcastOfEvent()
+ public function getSubtitleLanguage()
{
- return $this->broadcastOfEvent;
+ return $this->subtitleLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $broadcastOfEvent
+ * @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 setBroadcastOfEvent($broadcastOfEvent)
+ public function setSubtitleLanguage($subtitleLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $broadcastOfEvent = self::checkTypes($broadcastOfEvent, $types);
+ $subtitleLanguage = self::checkTypes($subtitleLanguage, $types);
- $this->broadcastOfEvent = $broadcastOfEvent;
+ $this->subtitleLanguage = $subtitleLanguage;
}
/**
- * @return bool|null
+ * @return string
*/
- public function getIsLiveBroadcast()
+ public function getVideoFormat()
{
- return $this->isLiveBroadcast;
+ return $this->videoFormat;
}
/**
- * @param bool|null $isLiveBroadcast
+ * @param string $videoFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsLiveBroadcast($isLiveBroadcast)
+ public function setVideoFormat($videoFormat)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $isLiveBroadcast = self::checkTypes($isLiveBroadcast, $types);
+ $videoFormat = self::checkTypes($videoFormat, $types);
- $this->isLiveBroadcast = $isLiveBroadcast;
+ $this->videoFormat = $videoFormat;
}
}
diff --git a/src/Models/SchemaOrg/BroadcastFrequencySpecification.php b/src/Models/SchemaOrg/BroadcastFrequencySpecification.php
index fab6a903..0fc3b17f 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;
@@ -45,7 +45,7 @@ public static function fieldList() {
* The frequency in MHz for a particular broadcast.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
protected $broadcastFrequencyValue;
@@ -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",
];
@@ -100,7 +100,7 @@ public function setBroadcastSignalModulation($broadcastSignalModulation)
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
public function getBroadcastFrequencyValue()
{
@@ -108,16 +108,16 @@ public function getBroadcastFrequencyValue()
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $broadcastFrequencyValue
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $broadcastFrequencyValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setBroadcastFrequencyValue($broadcastFrequencyValue)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "Number",
"null",
];
diff --git a/src/Models/SchemaOrg/BroadcastService.php b/src/Models/SchemaOrg/BroadcastService.php
index df992ffd..1c9607a0 100644
--- a/src/Models/SchemaOrg/BroadcastService.php
+++ b/src/Models/SchemaOrg/BroadcastService.php
@@ -17,48 +17,48 @@ public static function getType()
public static function fieldList() {
$fields = [
- "parentService" => "parentService",
- "broadcastDisplayName" => "broadcastDisplayName",
- "videoFormat" => "videoFormat",
- "broadcastTimezone" => "broadcastTimezone",
"broadcastFrequency" => "broadcastFrequency",
- "callSign" => "callSign",
"inLanguage" => "inLanguage",
+ "parentService" => "parentService",
+ "broadcastTimezone" => "broadcastTimezone",
"hasBroadcastChannel" => "hasBroadcastChannel",
- "broadcaster" => "broadcaster",
- "broadcastAffiliateOf" => "broadcastAffiliateOf",
"area" => "area",
+ "broadcastDisplayName" => "broadcastDisplayName",
+ "broadcastAffiliateOf" => "broadcastAffiliateOf",
+ "broadcaster" => "broadcaster",
+ "videoFormat" => "videoFormat",
+ "callSign" => "callSign",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A broadcast service to which the broadcast service may belong to such as regional variations of a national channel.
+ * The frequency used for over-the-air broadcasts. Numeric values or simple ranges, e.g. 87-99. In addition a shortcut idiom is supported for frequences of AM and FM radio channels, e.g. "87 FM".
*
*
- * @var \OpenActive\Models\SchemaOrg\BroadcastService|string
+ * @var string|\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification
*/
- protected $parentService;
+ protected $broadcastFrequency;
/**
- * The name displayed in the channel guide. For many US affiliates, it is the network name.
+ * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $broadcastDisplayName;
+ protected $inLanguage;
/**
- * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.).
+ * 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 $videoFormat;
+ protected $parentService;
/**
- * The timezone in [ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601) for which the service bases its broadcasts
+ * The timezone in [ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601) for which the service bases its broadcasts.
*
*
* @var string
@@ -66,36 +66,36 @@ public static function fieldList() {
protected $broadcastTimezone;
/**
- * The frequency used for over-the-air broadcasts. Numeric values or simple ranges e.g. 87-99. In addition a shortcut idiom is supported for frequences of AM and FM radio channels, e.g. "87 FM".
+ * A broadcast channel of a broadcast service.
*
*
- * @var \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
+ * @var \OpenActive\Models\SchemaOrg\BroadcastChannel|string
*/
- protected $broadcastFrequency;
+ protected $hasBroadcastChannel;
/**
- * 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 area within which users can expect to reach the broadcast service.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $callSign;
+ protected $area;
/**
- * 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 name displayed in the channel guide. For many US affiliates, it is the network name.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var string
*/
- protected $inLanguage;
+ protected $broadcastDisplayName;
/**
- * A broadcast channel of a broadcast service.
+ * The media network(s) whose content is broadcast on this station.
*
*
- * @var \OpenActive\Models\SchemaOrg\BroadcastChannel|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $hasBroadcastChannel;
+ protected $broadcastAffiliateOf;
/**
* The organization owning or operating the broadcast service.
@@ -106,92 +106,94 @@ public static function fieldList() {
protected $broadcaster;
/**
- * The media network(s) whose content is broadcast on this station.
+ * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.).
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $broadcastAffiliateOf;
+ protected $videoFormat;
/**
- * The area within which users can expect to reach the 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\Place|string
+ * @var string
*/
- protected $area;
+ protected $callSign;
/**
- * @return \OpenActive\Models\SchemaOrg\BroadcastService|string
+ * @return string|\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification
*/
- public function getParentService()
+ public function getBroadcastFrequency()
{
- return $this->parentService;
+ return $this->broadcastFrequency;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BroadcastService|string $parentService
+ * @param string|\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification $broadcastFrequency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setParentService($parentService)
+ public function setBroadcastFrequency($broadcastFrequency)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BroadcastService",
"string",
+ "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification",
];
- $parentService = self::checkTypes($parentService, $types);
+ $broadcastFrequency = self::checkTypes($broadcastFrequency, $types);
- $this->parentService = $parentService;
+ $this->broadcastFrequency = $broadcastFrequency;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getBroadcastDisplayName()
+ public function getInLanguage()
{
- return $this->broadcastDisplayName;
+ return $this->inLanguage;
}
/**
- * @param string $broadcastDisplayName
+ * @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 setBroadcastDisplayName($broadcastDisplayName)
+ public function setInLanguage($inLanguage)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $broadcastDisplayName = self::checkTypes($broadcastDisplayName, $types);
+ $inLanguage = self::checkTypes($inLanguage, $types);
- $this->broadcastDisplayName = $broadcastDisplayName;
+ $this->inLanguage = $inLanguage;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\BroadcastService|string
*/
- public function getVideoFormat()
+ public function getParentService()
{
- return $this->videoFormat;
+ return $this->parentService;
}
/**
- * @param string $videoFormat
+ * @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 setVideoFormat($videoFormat)
+ public function setParentService($parentService)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\BroadcastService",
"string",
];
- $videoFormat = self::checkTypes($videoFormat, $types);
+ $parentService = self::checkTypes($parentService, $types);
- $this->videoFormat = $videoFormat;
+ $this->parentService = $parentService;
}
/**
@@ -219,102 +221,102 @@ public function setBroadcastTimezone($broadcastTimezone)
}
/**
- * @return \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
+ * @return \OpenActive\Models\SchemaOrg\BroadcastChannel|string
*/
- public function getBroadcastFrequency()
+ public function getHasBroadcastChannel()
{
- return $this->broadcastFrequency;
+ return $this->hasBroadcastChannel;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string $broadcastFrequency
+ * @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 setBroadcastFrequency($broadcastFrequency)
+ public function setHasBroadcastChannel($hasBroadcastChannel)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification",
+ "\OpenActive\Models\SchemaOrg\BroadcastChannel",
"string",
];
- $broadcastFrequency = self::checkTypes($broadcastFrequency, $types);
+ $hasBroadcastChannel = self::checkTypes($hasBroadcastChannel, $types);
- $this->broadcastFrequency = $broadcastFrequency;
+ $this->hasBroadcastChannel = $hasBroadcastChannel;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getCallSign()
+ public function getArea()
{
- return $this->callSign;
+ return $this->area;
}
/**
- * @param string $callSign
+ * @param \OpenActive\Models\SchemaOrg\Place|string $area
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCallSign($callSign)
+ public function setArea($area)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $callSign = self::checkTypes($callSign, $types);
+ $area = self::checkTypes($area, $types);
- $this->callSign = $callSign;
+ $this->area = $area;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return string
*/
- public function getInLanguage()
+ public function getBroadcastDisplayName()
{
- return $this->inLanguage;
+ return $this->broadcastDisplayName;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
+ * @param string $broadcastDisplayName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInLanguage($inLanguage)
+ public function setBroadcastDisplayName($broadcastDisplayName)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Language",
];
- $inLanguage = self::checkTypes($inLanguage, $types);
+ $broadcastDisplayName = self::checkTypes($broadcastDisplayName, $types);
- $this->inLanguage = $inLanguage;
+ $this->broadcastDisplayName = $broadcastDisplayName;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BroadcastChannel|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getHasBroadcastChannel()
+ public function getBroadcastAffiliateOf()
{
- return $this->hasBroadcastChannel;
+ return $this->broadcastAffiliateOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BroadcastChannel|string $hasBroadcastChannel
+ * @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 setHasBroadcastChannel($hasBroadcastChannel)
+ public function setBroadcastAffiliateOf($broadcastAffiliateOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BroadcastChannel",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $hasBroadcastChannel = self::checkTypes($hasBroadcastChannel, $types);
+ $broadcastAffiliateOf = self::checkTypes($broadcastAffiliateOf, $types);
- $this->hasBroadcastChannel = $hasBroadcastChannel;
+ $this->broadcastAffiliateOf = $broadcastAffiliateOf;
}
/**
@@ -343,53 +345,51 @@ public function setBroadcaster($broadcaster)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getBroadcastAffiliateOf()
+ public function getVideoFormat()
{
- return $this->broadcastAffiliateOf;
+ return $this->videoFormat;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $broadcastAffiliateOf
+ * @param string $videoFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastAffiliateOf($broadcastAffiliateOf)
+ public function setVideoFormat($videoFormat)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $broadcastAffiliateOf = self::checkTypes($broadcastAffiliateOf, $types);
+ $videoFormat = self::checkTypes($videoFormat, $types);
- $this->broadcastAffiliateOf = $broadcastAffiliateOf;
+ $this->videoFormat = $videoFormat;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return string
*/
- public function getArea()
+ public function getCallSign()
{
- return $this->area;
+ return $this->callSign;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $area
+ * @param string $callSign
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArea($area)
+ public function setCallSign($callSign)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $area = self::checkTypes($area, $types);
+ $callSign = self::checkTypes($callSign, $types);
- $this->area = $area;
+ $this->callSign = $callSign;
}
}
diff --git a/src/Models/SchemaOrg/BusOrCoach.php b/src/Models/SchemaOrg/BusOrCoach.php
index 925b3a0a..64fd6286 100644
--- a/src/Models/SchemaOrg/BusOrCoach.php
+++ b/src/Models/SchemaOrg/BusOrCoach.php
@@ -17,76 +17,76 @@ public static function getType()
public static function fieldList() {
$fields = [
- "roofLoad" => "roofLoad",
"acrissCode" => "acrissCode",
+ "roofLoad" => "roofLoad",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The permitted total weight of cargo and installations (e.g. a roof rack) on top of the vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]]\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges.
+ * The ACRISS Car Classification Code is a code used by many car rental companies, for classifying vehicles. ACRISS stands for Association of Car Rental Industry Systems and Standards.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string
*/
- protected $roofLoad;
+ protected $acrissCode;
/**
- * The ACRISS Car Classification Code is a code used by many car rental companies, for classifying vehicles. ACRISS stands for Association of Car Rental Industry Systems and Standards.
+ * The permitted total weight of cargo and installations (e.g. a roof rack) on top of the vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]]\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $acrissCode;
+ protected $roofLoad;
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getRoofLoad()
+ public function getAcrissCode()
{
- return $this->roofLoad;
+ return $this->acrissCode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $roofLoad
+ * @param string $acrissCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRoofLoad($roofLoad)
+ public function setAcrissCode($acrissCode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $roofLoad = self::checkTypes($roofLoad, $types);
+ $acrissCode = self::checkTypes($acrissCode, $types);
- $this->roofLoad = $roofLoad;
+ $this->acrissCode = $acrissCode;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getAcrissCode()
+ public function getRoofLoad()
{
- return $this->acrissCode;
+ return $this->roofLoad;
}
/**
- * @param string $acrissCode
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $roofLoad
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAcrissCode($acrissCode)
+ public function setRoofLoad($roofLoad)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $acrissCode = self::checkTypes($acrissCode, $types);
+ $roofLoad = self::checkTypes($roofLoad, $types);
- $this->acrissCode = $acrissCode;
+ $this->roofLoad = $roofLoad;
}
}
diff --git a/src/Models/SchemaOrg/BusTrip.php b/src/Models/SchemaOrg/BusTrip.php
index ff0e89cc..f4760886 100644
--- a/src/Models/SchemaOrg/BusTrip.php
+++ b/src/Models/SchemaOrg/BusTrip.php
@@ -17,22 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
- "departureBusStop" => "departureBusStop",
+ "busNumber" => "busNumber",
"busName" => "busName",
+ "departureBusStop" => "departureBusStop",
"arrivalBusStop" => "arrivalBusStop",
- "busNumber" => "busNumber",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The stop or station from which the bus departs.
+ * The unique identifier for the bus.
*
*
- * @var \OpenActive\Models\SchemaOrg\BusStop|\OpenActive\Models\SchemaOrg\BusStation|string
+ * @var string
*/
- protected $departureBusStop;
+ protected $busNumber;
/**
* The name of the bus (e.g. Bolt Express).
@@ -43,45 +43,43 @@ public static function fieldList() {
protected $busName;
/**
- * The stop or station from which the bus arrives.
+ * The stop or station from which the bus departs.
*
*
* @var \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string
*/
- protected $arrivalBusStop;
+ protected $departureBusStop;
/**
- * The unique identifier for the bus.
+ * The stop or station from which the bus arrives.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string
*/
- protected $busNumber;
+ protected $arrivalBusStop;
/**
- * @return \OpenActive\Models\SchemaOrg\BusStop|\OpenActive\Models\SchemaOrg\BusStation|string
+ * @return string
*/
- public function getDepartureBusStop()
+ public function getBusNumber()
{
- return $this->departureBusStop;
+ return $this->busNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BusStop|\OpenActive\Models\SchemaOrg\BusStation|string $departureBusStop
+ * @param string $busNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDepartureBusStop($departureBusStop)
+ public function setBusNumber($busNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BusStop",
- "\OpenActive\Models\SchemaOrg\BusStation",
"string",
];
- $departureBusStop = self::checkTypes($departureBusStop, $types);
+ $busNumber = self::checkTypes($busNumber, $types);
- $this->departureBusStop = $departureBusStop;
+ $this->busNumber = $busNumber;
}
/**
@@ -111,17 +109,17 @@ public function setBusName($busName)
/**
* @return \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string
*/
- public function getArrivalBusStop()
+ public function getDepartureBusStop()
{
- return $this->arrivalBusStop;
+ return $this->departureBusStop;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string $arrivalBusStop
+ * @param \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string $departureBusStop
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArrivalBusStop($arrivalBusStop)
+ public function setDepartureBusStop($departureBusStop)
{
$types = [
"\OpenActive\Models\SchemaOrg\BusStation",
@@ -129,33 +127,35 @@ public function setArrivalBusStop($arrivalBusStop)
"string",
];
- $arrivalBusStop = self::checkTypes($arrivalBusStop, $types);
+ $departureBusStop = self::checkTypes($departureBusStop, $types);
- $this->arrivalBusStop = $arrivalBusStop;
+ $this->departureBusStop = $departureBusStop;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string
*/
- public function getBusNumber()
+ public function getArrivalBusStop()
{
- return $this->busNumber;
+ return $this->arrivalBusStop;
}
/**
- * @param string $busNumber
+ * @param \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string $arrivalBusStop
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBusNumber($busNumber)
+ public function setArrivalBusStop($arrivalBusStop)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\BusStation",
+ "\OpenActive\Models\SchemaOrg\BusStop",
"string",
];
- $busNumber = self::checkTypes($busNumber, $types);
+ $arrivalBusStop = self::checkTypes($arrivalBusStop, $types);
- $this->busNumber = $busNumber;
+ $this->arrivalBusStop = $arrivalBusStop;
}
}
diff --git a/src/Models/SchemaOrg/BusinessAudience.php b/src/Models/SchemaOrg/BusinessAudience.php
index ddce1e28..2d47c66b 100644
--- a/src/Models/SchemaOrg/BusinessAudience.php
+++ b/src/Models/SchemaOrg/BusinessAudience.php
@@ -34,7 +34,7 @@ public static function fieldList() {
protected $yearlyRevenue;
/**
- * The number of employees in an organization e.g. business.
+ * The number of employees in an organization, e.g. business.
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
diff --git a/src/Models/SchemaOrg/BuyAction.php b/src/Models/SchemaOrg/BuyAction.php
index 35beaa40..9ce83fe2 100644
--- a/src/Models/SchemaOrg/BuyAction.php
+++ b/src/Models/SchemaOrg/BuyAction.php
@@ -17,21 +17,21 @@ public static function getType()
public static function fieldList() {
$fields = [
- "warrantyPromise" => "warrantyPromise",
- "seller" => "seller",
"vendor" => "vendor",
+ "seller" => "seller",
+ "warrantyPromise" => "warrantyPromise",
];
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\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $warrantyPromise;
+ protected $vendor;
/**
* An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
@@ -42,36 +42,37 @@ public static function fieldList() {
protected $seller;
/**
- * 'vendor' is an earlier term for 'seller'.
+ * The warranty promise(s) included in the offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string
*/
- protected $vendor;
+ protected $warrantyPromise;
/**
- * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getWarrantyPromise()
+ public function getVendor()
{
- return $this->warrantyPromise;
+ return $this->vendor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warrantyPromise
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $vendor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWarrantyPromise($warrantyPromise)
+ public function setVendor($vendor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\WarrantyPromise",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $warrantyPromise = self::checkTypes($warrantyPromise, $types);
+ $vendor = self::checkTypes($vendor, $types);
- $this->warrantyPromise = $warrantyPromise;
+ $this->vendor = $vendor;
}
/**
@@ -101,29 +102,28 @@ public function setSeller($seller)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string
*/
- public function getVendor()
+ public function getWarrantyPromise()
{
- return $this->vendor;
+ return $this->warrantyPromise;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $vendor
+ * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warrantyPromise
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVendor($vendor)
+ public function setWarrantyPromise($warrantyPromise)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\WarrantyPromise",
"string",
];
- $vendor = self::checkTypes($vendor, $types);
+ $warrantyPromise = self::checkTypes($warrantyPromise, $types);
- $this->vendor = $vendor;
+ $this->warrantyPromise = $warrantyPromise;
}
}
diff --git a/src/Models/SchemaOrg/CDCPMDRecord.php b/src/Models/SchemaOrg/CDCPMDRecord.php
index 824f6aca..dfbbf2ff 100644
--- a/src/Models/SchemaOrg/CDCPMDRecord.php
+++ b/src/Models/SchemaOrg/CDCPMDRecord.php
@@ -17,51 +17,43 @@ 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",
- "cvdFacilityId" => "cvdFacilityId",
+ "cvdFacilityCounty" => "cvdFacilityCounty",
+ "cvdNumC19Died" => "cvdNumC19Died",
"cvdNumVentUse" => "cvdNumVentUse",
- "cvdNumBeds" => "cvdNumBeds",
+ "cvdNumBedsOcc" => "cvdNumBedsOcc",
+ "cvdNumC19OFMechVentPats" => "cvdNumC19OFMechVentPats",
+ "cvdNumC19HospPats" => "cvdNumC19HospPats",
"cvdNumC19MechVentPats" => "cvdNumC19MechVentPats",
+ "cvdFacilityId" => "cvdFacilityId",
+ "cvdNumVent" => "cvdNumVent",
+ "cvdNumICUBeds" => "cvdNumICUBeds",
+ "cvdNumICUBedsOcc" => "cvdNumICUBedsOcc",
"datePosted" => "datePosted",
"cvdNumC19OverflowPats" => "cvdNumC19OverflowPats",
- "cvdNumC19HospPats" => "cvdNumC19HospPats",
+ "cvdNumTotBeds" => "cvdNumTotBeds",
+ "cvdNumC19HOPats" => "cvdNumC19HOPats",
+ "cvdNumBeds" => "cvdNumBeds",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * numbedsocc - HOSPITAL INPATIENT BED OCCUPANCY: Total number of staffed inpatient beds that are occupied.
- *
- *
- * @var Number|null
- */
- protected $cvdNumBedsOcc;
-
- /**
- * numicubedsocc - ICU BED OCCUPANCY: Total number of staffed inpatient ICU beds that are occupied.
+ * collectiondate - Date for which patient counts are reported.
*
*
- * @var Number|null
+ * @var DateTime|string|null
*/
- protected $cvdNumICUBedsOcc;
+ protected $cvdCollectionDate;
/**
- * numvent - MECHANICAL VENTILATORS: Total number of ventilators available.
+ * 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 $cvdNumVent;
+ protected $cvdFacilityCounty;
/**
* numc19died - DEATHS: Patients with suspected or confirmed COVID-19 who died in the hospital, ED, or any overflow location.
@@ -72,52 +64,44 @@ public static function fieldList() {
protected $cvdNumC19Died;
/**
- * 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.
+ * numventuse - MECHANICAL VENTILATORS IN USE: Total number of ventilators in use.
*
*
* @var Number|null
*/
- protected $cvdNumTotBeds;
-
- /**
- * 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 string
- */
- protected $cvdFacilityCounty;
+ protected $cvdNumVentUse;
/**
- * numicubeds - ICU BEDS: Total number of staffed inpatient intensive care unit (ICU) beds.
+ * numbedsocc - HOSPITAL INPATIENT BED OCCUPANCY: Total number of staffed inpatient beds that are occupied.
*
*
* @var Number|null
*/
- protected $cvdNumICUBeds;
+ protected $cvdNumBedsOcc;
/**
- * collectiondate - Date for which patient counts are reported.
+ * 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 DateTime|string|null
+ * @var Number|null
*/
- protected $cvdCollectionDate;
+ protected $cvdNumC19OFMechVentPats;
/**
- * 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.
+ * 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 $cvdNumC19OFMechVentPats;
+ protected $cvdNumC19MechVentPats;
/**
* 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.
@@ -128,28 +112,28 @@ public static function fieldList() {
protected $cvdFacilityId;
/**
- * numventuse - MECHANICAL VENTILATORS IN USE: Total number of ventilators in use.
+ * numvent - MECHANICAL VENTILATORS: Total number of ventilators available.
*
*
* @var Number|null
*/
- protected $cvdNumVentUse;
+ protected $cvdNumVent;
/**
- * numbeds - HOSPITAL INPATIENT BEDS: Inpatient beds, including all staffed, licensed, and overflow (surge) beds used for inpatients.
+ * numicubeds - ICU BEDS: Total number of staffed inpatient intensive care unit (ICU) beds.
*
*
* @var Number|null
*/
- protected $cvdNumBeds;
+ protected $cvdNumICUBeds;
/**
- * 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.
+ * numicubedsocc - ICU BED OCCUPANCY: Total number of staffed inpatient ICU beds that are occupied.
*
*
* @var Number|null
*/
- protected $cvdNumC19MechVentPats;
+ protected $cvdNumICUBedsOcc;
/**
* Publication date of an online listing.
@@ -168,86 +152,77 @@ public static function fieldList() {
protected $cvdNumC19OverflowPats;
/**
- * numc19hosppats - HOSPITALIZED: Patients currently hospitalized in an inpatient care location who have suspected or confirmed COVID-19.
+ * 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 $cvdNumC19HospPats;
+ protected $cvdNumTotBeds;
/**
- * @return Number|null
+ * 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
*/
- public function getCvdNumBedsOcc()
- {
- return $this->cvdNumBedsOcc;
- }
+ protected $cvdNumC19HOPats;
/**
- * @param Number|null $cvdNumBedsOcc
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * numbeds - HOSPITAL INPATIENT BEDS: Inpatient beds, including all staffed, licensed, and overflow (surge) beds used for inpatients.
+ *
+ *
+ * @var Number|null
*/
- public function setCvdNumBedsOcc($cvdNumBedsOcc)
- {
- $types = [
- "Number",
- "null",
- ];
-
- $cvdNumBedsOcc = self::checkTypes($cvdNumBedsOcc, $types);
-
- $this->cvdNumBedsOcc = $cvdNumBedsOcc;
- }
+ protected $cvdNumBeds;
/**
- * @return Number|null
+ * @return DateTime|string|null
*/
- public function getCvdNumICUBedsOcc()
+ public function getCvdCollectionDate()
{
- return $this->cvdNumICUBedsOcc;
+ return $this->cvdCollectionDate;
}
/**
- * @param Number|null $cvdNumICUBedsOcc
+ * @param DateTime|string|null $cvdCollectionDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumICUBedsOcc($cvdNumICUBedsOcc)
+ public function setCvdCollectionDate($cvdCollectionDate)
{
$types = [
- "Number",
+ "DateTime",
+ "string",
"null",
];
- $cvdNumICUBedsOcc = self::checkTypes($cvdNumICUBedsOcc, $types);
+ $cvdCollectionDate = self::checkTypes($cvdCollectionDate, $types);
- $this->cvdNumICUBedsOcc = $cvdNumICUBedsOcc;
+ $this->cvdCollectionDate = $cvdCollectionDate;
}
/**
- * @return Number|null
+ * @return string
*/
- public function getCvdNumVent()
+ public function getCvdFacilityCounty()
{
- return $this->cvdNumVent;
+ return $this->cvdFacilityCounty;
}
/**
- * @param Number|null $cvdNumVent
+ * @param string $cvdFacilityCounty
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumVent($cvdNumVent)
+ public function setCvdFacilityCounty($cvdFacilityCounty)
{
$types = [
- "Number",
- "null",
+ "string",
];
- $cvdNumVent = self::checkTypes($cvdNumVent, $types);
+ $cvdFacilityCounty = self::checkTypes($cvdFacilityCounty, $types);
- $this->cvdNumVent = $cvdNumVent;
+ $this->cvdFacilityCounty = $cvdFacilityCounty;
}
/**
@@ -278,151 +253,126 @@ public function setCvdNumC19Died($cvdNumC19Died)
/**
* @return Number|null
*/
- public function getCvdNumTotBeds()
+ public function getCvdNumVentUse()
{
- return $this->cvdNumTotBeds;
+ return $this->cvdNumVentUse;
}
/**
- * @param Number|null $cvdNumTotBeds
+ * @param Number|null $cvdNumVentUse
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumTotBeds($cvdNumTotBeds)
+ public function setCvdNumVentUse($cvdNumVentUse)
{
$types = [
"Number",
"null",
];
- $cvdNumTotBeds = self::checkTypes($cvdNumTotBeds, $types);
-
- $this->cvdNumTotBeds = $cvdNumTotBeds;
- }
-
- /**
- * @return string
- */
- public function getCvdFacilityCounty()
- {
- return $this->cvdFacilityCounty;
- }
-
- /**
- * @param string $cvdFacilityCounty
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setCvdFacilityCounty($cvdFacilityCounty)
- {
- $types = [
- "string",
- ];
-
- $cvdFacilityCounty = self::checkTypes($cvdFacilityCounty, $types);
+ $cvdNumVentUse = self::checkTypes($cvdNumVentUse, $types);
- $this->cvdFacilityCounty = $cvdFacilityCounty;
+ $this->cvdNumVentUse = $cvdNumVentUse;
}
/**
* @return Number|null
*/
- public function getCvdNumICUBeds()
+ public function getCvdNumBedsOcc()
{
- return $this->cvdNumICUBeds;
+ return $this->cvdNumBedsOcc;
}
/**
- * @param Number|null $cvdNumICUBeds
+ * @param Number|null $cvdNumBedsOcc
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumICUBeds($cvdNumICUBeds)
+ public function setCvdNumBedsOcc($cvdNumBedsOcc)
{
$types = [
"Number",
"null",
];
- $cvdNumICUBeds = self::checkTypes($cvdNumICUBeds, $types);
+ $cvdNumBedsOcc = self::checkTypes($cvdNumBedsOcc, $types);
- $this->cvdNumICUBeds = $cvdNumICUBeds;
+ $this->cvdNumBedsOcc = $cvdNumBedsOcc;
}
/**
- * @return DateTime|string|null
+ * @return Number|null
*/
- public function getCvdCollectionDate()
+ public function getCvdNumC19OFMechVentPats()
{
- return $this->cvdCollectionDate;
+ return $this->cvdNumC19OFMechVentPats;
}
/**
- * @param DateTime|string|null $cvdCollectionDate
+ * @param Number|null $cvdNumC19OFMechVentPats
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdCollectionDate($cvdCollectionDate)
+ public function setCvdNumC19OFMechVentPats($cvdNumC19OFMechVentPats)
{
$types = [
- "DateTime",
- "string",
+ "Number",
"null",
];
- $cvdCollectionDate = self::checkTypes($cvdCollectionDate, $types);
+ $cvdNumC19OFMechVentPats = self::checkTypes($cvdNumC19OFMechVentPats, $types);
- $this->cvdCollectionDate = $cvdCollectionDate;
+ $this->cvdNumC19OFMechVentPats = $cvdNumC19OFMechVentPats;
}
/**
* @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 getCvdNumC19MechVentPats()
{
- return $this->cvdNumC19OFMechVentPats;
+ return $this->cvdNumC19MechVentPats;
}
/**
- * @param Number|null $cvdNumC19OFMechVentPats
+ * @param Number|null $cvdNumC19MechVentPats
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumC19OFMechVentPats($cvdNumC19OFMechVentPats)
+ public function setCvdNumC19MechVentPats($cvdNumC19MechVentPats)
{
$types = [
"Number",
"null",
];
- $cvdNumC19OFMechVentPats = self::checkTypes($cvdNumC19OFMechVentPats, $types);
+ $cvdNumC19MechVentPats = self::checkTypes($cvdNumC19MechVentPats, $types);
- $this->cvdNumC19OFMechVentPats = $cvdNumC19OFMechVentPats;
+ $this->cvdNumC19MechVentPats = $cvdNumC19MechVentPats;
}
/**
@@ -452,76 +402,76 @@ public function setCvdFacilityId($cvdFacilityId)
/**
* @return Number|null
*/
- public function getCvdNumVentUse()
+ public function getCvdNumVent()
{
- return $this->cvdNumVentUse;
+ return $this->cvdNumVent;
}
/**
- * @param Number|null $cvdNumVentUse
+ * @param Number|null $cvdNumVent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumVentUse($cvdNumVentUse)
+ public function setCvdNumVent($cvdNumVent)
{
$types = [
"Number",
"null",
];
- $cvdNumVentUse = self::checkTypes($cvdNumVentUse, $types);
+ $cvdNumVent = self::checkTypes($cvdNumVent, $types);
- $this->cvdNumVentUse = $cvdNumVentUse;
+ $this->cvdNumVent = $cvdNumVent;
}
/**
* @return Number|null
*/
- public function getCvdNumBeds()
+ public function getCvdNumICUBeds()
{
- return $this->cvdNumBeds;
+ return $this->cvdNumICUBeds;
}
/**
- * @param Number|null $cvdNumBeds
+ * @param Number|null $cvdNumICUBeds
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumBeds($cvdNumBeds)
+ public function setCvdNumICUBeds($cvdNumICUBeds)
{
$types = [
"Number",
"null",
];
- $cvdNumBeds = self::checkTypes($cvdNumBeds, $types);
+ $cvdNumICUBeds = self::checkTypes($cvdNumICUBeds, $types);
- $this->cvdNumBeds = $cvdNumBeds;
+ $this->cvdNumICUBeds = $cvdNumICUBeds;
}
/**
* @return Number|null
*/
- public function getCvdNumC19MechVentPats()
+ public function getCvdNumICUBedsOcc()
{
- return $this->cvdNumC19MechVentPats;
+ return $this->cvdNumICUBedsOcc;
}
/**
- * @param Number|null $cvdNumC19MechVentPats
+ * @param Number|null $cvdNumICUBedsOcc
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumC19MechVentPats($cvdNumC19MechVentPats)
+ public function setCvdNumICUBedsOcc($cvdNumICUBedsOcc)
{
$types = [
"Number",
"null",
];
- $cvdNumC19MechVentPats = self::checkTypes($cvdNumC19MechVentPats, $types);
+ $cvdNumICUBedsOcc = self::checkTypes($cvdNumICUBedsOcc, $types);
- $this->cvdNumC19MechVentPats = $cvdNumC19MechVentPats;
+ $this->cvdNumICUBedsOcc = $cvdNumICUBedsOcc;
}
/**
@@ -578,26 +528,76 @@ public function setCvdNumC19OverflowPats($cvdNumC19OverflowPats)
/**
* @return Number|null
*/
- public function getCvdNumC19HospPats()
+ public function getCvdNumTotBeds()
{
- return $this->cvdNumC19HospPats;
+ return $this->cvdNumTotBeds;
}
/**
- * @param Number|null $cvdNumC19HospPats
+ * @param Number|null $cvdNumTotBeds
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumC19HospPats($cvdNumC19HospPats)
+ public function setCvdNumTotBeds($cvdNumTotBeds)
{
$types = [
"Number",
"null",
];
- $cvdNumC19HospPats = self::checkTypes($cvdNumC19HospPats, $types);
+ $cvdNumTotBeds = self::checkTypes($cvdNumTotBeds, $types);
- $this->cvdNumC19HospPats = $cvdNumC19HospPats;
+ $this->cvdNumTotBeds = $cvdNumTotBeds;
+ }
+
+ /**
+ * @return Number|null
+ */
+ public function getCvdNumC19HOPats()
+ {
+ return $this->cvdNumC19HOPats;
+ }
+
+ /**
+ * @param Number|null $cvdNumC19HOPats
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setCvdNumC19HOPats($cvdNumC19HOPats)
+ {
+ $types = [
+ "Number",
+ "null",
+ ];
+
+ $cvdNumC19HOPats = self::checkTypes($cvdNumC19HOPats, $types);
+
+ $this->cvdNumC19HOPats = $cvdNumC19HOPats;
+ }
+
+ /**
+ * @return Number|null
+ */
+ public function getCvdNumBeds()
+ {
+ return $this->cvdNumBeds;
+ }
+
+ /**
+ * @param Number|null $cvdNumBeds
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setCvdNumBeds($cvdNumBeds)
+ {
+ $types = [
+ "Number",
+ "null",
+ ];
+
+ $cvdNumBeds = self::checkTypes($cvdNumBeds, $types);
+
+ $this->cvdNumBeds = $cvdNumBeds;
}
}
diff --git a/src/Models/SchemaOrg/Car.php b/src/Models/SchemaOrg/Car.php
index b3b105f2..4eda86ee 100644
--- a/src/Models/SchemaOrg/Car.php
+++ b/src/Models/SchemaOrg/Car.php
@@ -17,76 +17,76 @@ public static function getType()
public static function fieldList() {
$fields = [
- "roofLoad" => "roofLoad",
"acrissCode" => "acrissCode",
+ "roofLoad" => "roofLoad",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The permitted total weight of cargo and installations (e.g. a roof rack) on top of the vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]]\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges.
+ * The ACRISS Car Classification Code is a code used by many car rental companies, for classifying vehicles. ACRISS stands for Association of Car Rental Industry Systems and Standards.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string
*/
- protected $roofLoad;
+ protected $acrissCode;
/**
- * The ACRISS Car Classification Code is a code used by many car rental companies, for classifying vehicles. ACRISS stands for Association of Car Rental Industry Systems and Standards.
+ * The permitted total weight of cargo and installations (e.g. a roof rack) on top of the vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]]\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $acrissCode;
+ protected $roofLoad;
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getRoofLoad()
+ public function getAcrissCode()
{
- return $this->roofLoad;
+ return $this->acrissCode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $roofLoad
+ * @param string $acrissCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRoofLoad($roofLoad)
+ public function setAcrissCode($acrissCode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $roofLoad = self::checkTypes($roofLoad, $types);
+ $acrissCode = self::checkTypes($acrissCode, $types);
- $this->roofLoad = $roofLoad;
+ $this->acrissCode = $acrissCode;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getAcrissCode()
+ public function getRoofLoad()
{
- return $this->acrissCode;
+ return $this->roofLoad;
}
/**
- * @param string $acrissCode
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $roofLoad
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAcrissCode($acrissCode)
+ public function setRoofLoad($roofLoad)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $acrissCode = self::checkTypes($acrissCode, $types);
+ $roofLoad = self::checkTypes($roofLoad, $types);
- $this->acrissCode = $acrissCode;
+ $this->roofLoad = $roofLoad;
}
}
diff --git a/src/Models/SchemaOrg/CategoryCode.php b/src/Models/SchemaOrg/CategoryCode.php
index 3b1522b0..adfec07d 100644
--- a/src/Models/SchemaOrg/CategoryCode.php
+++ b/src/Models/SchemaOrg/CategoryCode.php
@@ -36,7 +36,7 @@ public static function fieldList() {
* A [[CategoryCodeSet]] that contains this category code.
*
*
- * @var \OpenActive\Models\SchemaOrg\CategoryCodeSet|string
+ * @var string|\OpenActive\Models\SchemaOrg\CategoryCodeSet
*/
protected $inCodeSet;
@@ -65,7 +65,7 @@ public function setCodeValue($codeValue)
}
/**
- * @return \OpenActive\Models\SchemaOrg\CategoryCodeSet|string
+ * @return string|\OpenActive\Models\SchemaOrg\CategoryCodeSet
*/
public function getInCodeSet()
{
@@ -73,15 +73,15 @@ public function getInCodeSet()
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCodeSet|string $inCodeSet
+ * @param string|\OpenActive\Models\SchemaOrg\CategoryCodeSet $inCodeSet
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setInCodeSet($inCodeSet)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCodeSet",
"string",
+ "\OpenActive\Models\SchemaOrg\CategoryCodeSet",
];
$inCodeSet = self::checkTypes($inCodeSet, $types);
diff --git a/src/Models/SchemaOrg/Chapter.php b/src/Models/SchemaOrg/Chapter.php
index f0e6159a..e9c17aa3 100644
--- a/src/Models/SchemaOrg/Chapter.php
+++ b/src/Models/SchemaOrg/Chapter.php
@@ -17,21 +17,21 @@ public static function getType()
public static function fieldList() {
$fields = [
- "pageStart" => "pageStart",
- "pageEnd" => "pageEnd",
"pagination" => "pagination",
+ "pageEnd" => "pageEnd",
+ "pageStart" => "pageStart",
];
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".
@@ -42,37 +42,35 @@ 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".
+ * The page on which the work starts; for example "135" or "xiii".
*
*
- * @var string
+ * @var string|int|null
*/
- protected $pagination;
+ protected $pageStart;
/**
- * @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;
}
/**
@@ -102,27 +100,29 @@ public function setPageEnd($pageEnd)
}
/**
- * @return string
+ * @return string|int|null
*/
- public function getPagination()
+ public function getPageStart()
{
- return $this->pagination;
+ return $this->pageStart;
}
/**
- * @param string $pagination
+ * @param string|int|null $pageStart
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPagination($pagination)
+ public function setPageStart($pageStart)
{
$types = [
"string",
+ "int",
+ "null",
];
- $pagination = self::checkTypes($pagination, $types);
+ $pageStart = self::checkTypes($pageStart, $types);
- $this->pagination = $pagination;
+ $this->pageStart = $pageStart;
}
}
diff --git a/src/Models/SchemaOrg/ChemicalSubstance.php b/src/Models/SchemaOrg/ChemicalSubstance.php
index 4000ad52..7f6a212a 100644
--- a/src/Models/SchemaOrg/ChemicalSubstance.php
+++ b/src/Models/SchemaOrg/ChemicalSubstance.php
@@ -17,110 +17,110 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "chemicalRole" => "chemicalRole",
"chemicalComposition" => "chemicalComposition",
"potentialUse" => "potentialUse",
- "chemicalRole" => "chemicalRole",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The chemical composition describes the identity and relative ratio of the chemical elements that make up the substance.
+ * A role played by the BioChemEntity within a chemical context.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $chemicalComposition;
+ protected $chemicalRole;
/**
- * Intended use of the BioChemEntity by humans.
+ * The chemical composition describes the identity and relative ratio of the chemical elements that make up the substance.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string
*/
- protected $potentialUse;
+ protected $chemicalComposition;
/**
- * A role played by the BioChemEntity within a chemical context.
+ * Intended use of the BioChemEntity by humans.
*
*
* @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $chemicalRole;
+ protected $potentialUse;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getChemicalComposition()
+ public function getChemicalRole()
{
- return $this->chemicalComposition;
+ return $this->chemicalRole;
}
/**
- * @param string $chemicalComposition
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $chemicalRole
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setChemicalComposition($chemicalComposition)
+ public function setChemicalRole($chemicalRole)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $chemicalComposition = self::checkTypes($chemicalComposition, $types);
+ $chemicalRole = self::checkTypes($chemicalRole, $types);
- $this->chemicalComposition = $chemicalComposition;
+ $this->chemicalRole = $chemicalRole;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string
*/
- public function getPotentialUse()
+ public function getChemicalComposition()
{
- return $this->potentialUse;
+ return $this->chemicalComposition;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $potentialUse
+ * @param string $chemicalComposition
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPotentialUse($potentialUse)
+ public function setChemicalComposition($chemicalComposition)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $potentialUse = self::checkTypes($potentialUse, $types);
+ $chemicalComposition = self::checkTypes($chemicalComposition, $types);
- $this->potentialUse = $potentialUse;
+ $this->chemicalComposition = $chemicalComposition;
}
/**
* @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getChemicalRole()
+ public function getPotentialUse()
{
- return $this->chemicalRole;
+ return $this->potentialUse;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $chemicalRole
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $potentialUse
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setChemicalRole($chemicalRole)
+ public function setPotentialUse($potentialUse)
{
$types = [
"\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $chemicalRole = self::checkTypes($chemicalRole, $types);
+ $potentialUse = self::checkTypes($potentialUse, $types);
- $this->chemicalRole = $chemicalRole;
+ $this->potentialUse = $potentialUse;
}
}
diff --git a/src/Models/SchemaOrg/ChooseAction.php b/src/Models/SchemaOrg/ChooseAction.php
index d1c71ddd..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..56b829a5 100644
--- a/src/Models/SchemaOrg/Claim.php
+++ b/src/Models/SchemaOrg/Claim.php
@@ -17,113 +17,113 @@ public static function getType()
public static function fieldList() {
$fields = [
- "claimInterpreter" => "claimInterpreter",
"firstAppearance" => "firstAppearance",
"appearance" => "appearance",
+ "claimInterpreter" => "claimInterpreter",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * For a [[Claim]] interpreted from [[MediaObject]] content
- * sed to indicate a claim contained, implied or refined from the content of a [[MediaObject]].
+ * Indicates the first known occurrence of a [[Claim]] in some [[CreativeWork]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $claimInterpreter;
+ protected $firstAppearance;
/**
- * Indicates the first known occurence of a [[Claim]] in some [[CreativeWork]].
+ * Indicates an occurrence of a [[Claim]] in some [[CreativeWork]].
*
*
* @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $firstAppearance;
+ protected $appearance;
/**
- * Indicates an occurence of a [[Claim]] in some [[CreativeWork]].
+ * For a [[Claim]] interpreted from [[MediaObject]] content
+ * sed to indicate a claim contained, implied or refined from the content of a [[MediaObject]].
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $appearance;
+ protected $claimInterpreter;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getClaimInterpreter()
+ public function getFirstAppearance()
{
- return $this->claimInterpreter;
+ return $this->firstAppearance;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $claimInterpreter
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $firstAppearance
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setClaimInterpreter($claimInterpreter)
+ public function setFirstAppearance($firstAppearance)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $claimInterpreter = self::checkTypes($claimInterpreter, $types);
+ $firstAppearance = self::checkTypes($firstAppearance, $types);
- $this->claimInterpreter = $claimInterpreter;
+ $this->firstAppearance = $firstAppearance;
}
/**
* @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getFirstAppearance()
+ public function getAppearance()
{
- return $this->firstAppearance;
+ return $this->appearance;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $firstAppearance
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $appearance
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFirstAppearance($firstAppearance)
+ public function setAppearance($appearance)
{
$types = [
"\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $firstAppearance = self::checkTypes($firstAppearance, $types);
+ $appearance = self::checkTypes($appearance, $types);
- $this->firstAppearance = $firstAppearance;
+ $this->appearance = $appearance;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getAppearance()
+ public function getClaimInterpreter()
{
- return $this->appearance;
+ return $this->claimInterpreter;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $appearance
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $claimInterpreter
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAppearance($appearance)
+ public function setClaimInterpreter($claimInterpreter)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $appearance = self::checkTypes($appearance, $types);
+ $claimInterpreter = self::checkTypes($claimInterpreter, $types);
- $this->appearance = $appearance;
+ $this->claimInterpreter = $claimInterpreter;
}
}
diff --git a/src/Models/SchemaOrg/Class.php b/src/Models/SchemaOrg/Class.php
index bfafaeae..685a6d5d 100644
--- a/src/Models/SchemaOrg/Class.php
+++ b/src/Models/SchemaOrg/Class.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* Relates a term (i.e. a property, class or enumeration) to one that supersedes it.
*
*
- * @var \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null
+ * @var \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|null
*/
protected $supersededBy;
/**
- * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null
+ * @return \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|null
*/
public function getSupersededBy()
{
@@ -40,17 +40,17 @@ public function getSupersededBy()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null $supersededBy
+ * @param \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|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\Enums\PropertyEnumeration",
"\OpenActive\Models\SchemaOrg\Enumeration",
"\OpenActive\Models\SchemaOrg\Class",
"string",
- "\OpenActive\Enums\PropertyEnumeration",
"null",
];
diff --git a/src/Models/SchemaOrg/Clip.php b/src/Models/SchemaOrg/Clip.php
index 152585a2..510e5261 100644
--- a/src/Models/SchemaOrg/Clip.php
+++ b/src/Models/SchemaOrg/Clip.php
@@ -17,53 +17,61 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "partOfSeries" => "partOfSeries",
+ "actors" => "actors",
+ "clipNumber" => "clipNumber",
"startOffset" => "startOffset",
"endOffset" => "endOffset",
- "director" => "director",
- "actor" => "actor",
"partOfEpisode" => "partOfEpisode",
- "clipNumber" => "clipNumber",
- "partOfSeries" => "partOfSeries",
- "partOfSeason" => "partOfSeason",
- "actors" => "actors",
"musicBy" => "musicBy",
"directors" => "directors",
+ "partOfSeason" => "partOfSeason",
+ "director" => "director",
+ "actor" => "actor",
];
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 series to which this episode or season belongs.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- protected $startOffset;
+ protected $partOfSeries;
/**
- * The end time of the clip expressed as the number of seconds from the beginning of the work.
+ * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $endOffset;
+ protected $actors;
/**
- * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
+ * Position of the clip within an ordered group of clips.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string|int|null
*/
- protected $director;
+ protected $clipNumber;
/**
- * 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 start time of the clip expressed as the number of seconds from the beginning of the work.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null
*/
- protected $actor;
+ protected $startOffset;
+
+ /**
+ * The end time of the clip expressed as the number of seconds from the beginning of the work.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null
+ */
+ protected $endOffset;
/**
* The episode to which this clip belongs.
@@ -74,20 +82,20 @@ 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\Person|\OpenActive\Models\SchemaOrg\MusicGroup|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.
@@ -98,131 +106,149 @@ public static function fieldList() {
protected $partOfSeason;
/**
- * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
+ * 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., 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\MusicGroup|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $musicBy;
+ protected $actor;
/**
- * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- protected $directors;
+ public function getPartOfSeries()
+ {
+ return $this->partOfSeries;
+ }
/**
- * @return Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null
+ * @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 getStartOffset()
+ public function setPartOfSeries($partOfSeries)
{
- return $this->startOffset;
+ $types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeries",
+ "string",
+ ];
+
+ $partOfSeries = self::checkTypes($partOfSeries, $types);
+
+ $this->partOfSeries = $partOfSeries;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Person|string
+ */
+ public function getActors()
+ {
+ return $this->actors;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null $startOffset
+ * @param \OpenActive\Models\SchemaOrg\Person|string $actors
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartOffset($startOffset)
+ public function setActors($actors)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\HyperTocEntry",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "null",
];
- $startOffset = self::checkTypes($startOffset, $types);
+ $actors = self::checkTypes($actors, $types);
- $this->startOffset = $startOffset;
+ $this->actors = $actors;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null
+ * @return string|int|null
*/
- public function getEndOffset()
+ public function getClipNumber()
{
- return $this->endOffset;
+ return $this->clipNumber;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null $endOffset
+ * @param string|int|null $clipNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndOffset($endOffset)
+ public function setClipNumber($clipNumber)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\HyperTocEntry",
"string",
+ "int",
"null",
];
- $endOffset = self::checkTypes($endOffset, $types);
+ $clipNumber = self::checkTypes($clipNumber, $types);
- $this->endOffset = $endOffset;
+ $this->clipNumber = $clipNumber;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null
*/
- public function getDirector()
+ public function getStartOffset()
{
- return $this->director;
+ return $this->startOffset;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @param \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null $startOffset
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirector($director)
+ public function setStartOffset($startOffset)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\HyperTocEntry",
"string",
+ "Number",
+ "null",
];
- $director = self::checkTypes($director, $types);
+ $startOffset = self::checkTypes($startOffset, $types);
- $this->director = $director;
+ $this->startOffset = $startOffset;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null
*/
- public function getActor()
+ public function getEndOffset()
{
- return $this->actor;
+ return $this->endOffset;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @param \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null $endOffset
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActor($actor)
+ public function setEndOffset($endOffset)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\HyperTocEntry",
"string",
+ "Number",
+ "null",
];
- $actor = self::checkTypes($actor, $types);
+ $endOffset = self::checkTypes($endOffset, $types);
- $this->actor = $actor;
+ $this->endOffset = $endOffset;
}
/**
@@ -251,54 +277,54 @@ public function setPartOfEpisode($partOfEpisode)
}
/**
- * @return string|int|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- public function getClipNumber()
+ public function getMusicBy()
{
- return $this->clipNumber;
+ return $this->musicBy;
}
/**
- * @param string|int|null $clipNumber
+ * @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 setClipNumber($clipNumber)
+ public function setMusicBy($musicBy)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
"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;
}
/**
@@ -329,77 +355,51 @@ public function setPartOfSeason($partOfSeason)
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getActors()
- {
- return $this->actors;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actors
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setActors($actors)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
- ];
-
- $actors = self::checkTypes($actors, $types);
-
- $this->actors = $actors;
- }
-
- /**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
- */
- 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 getActor()
{
- return $this->directors;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @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 setDirectors($directors)
+ public function setActor($actor)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->directors = $directors;
+ $this->actor = $actor;
}
}
diff --git a/src/Models/SchemaOrg/ComicIssue.php b/src/Models/SchemaOrg/ComicIssue.php
index ffd3a40f..0b711c51 100644
--- a/src/Models/SchemaOrg/ComicIssue.php
+++ b/src/Models/SchemaOrg/ComicIssue.php
@@ -17,24 +17,24 @@ public static function getType()
public static function fieldList() {
$fields = [
- "letterer" => "letterer",
+ "inker" => "inker",
"colorist" => "colorist",
+ "artist" => "artist",
+ "letterer" => "letterer",
"variantCover" => "variantCover",
- "inker" => "inker",
"penciler" => "penciler",
- "artist" => "artist",
];
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.
@@ -45,64 +45,64 @@ public static function fieldList() {
protected $colorist;
/**
- * A description of the variant cover
- * for the issue, if the issue is a variant printing. For example, "Bryan Hitch
- * Variant Cover" or "2nd Printing Variant".
+ * The primary artist for a work
+ * in a medium other than pencils or digital line art--for example, if the
+ * primary artwork is done in watercolors or digital paints.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $variantCover;
+ protected $artist;
/**
- * The individual who traces over the pencil drawings in ink after pencils are complete.
+ * The individual who adds lettering, including speech balloons and sound effects, to artwork.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $inker;
+ protected $letterer;
/**
- * The individual who draws the primary narrative artwork.
+ * A description of the variant cover
+ * for the issue, if the issue is a variant printing. For example, "Bryan Hitch
+ * Variant Cover" or "2nd Printing Variant".
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $penciler;
+ protected $variantCover;
/**
- * The primary artist for a work
- * in a medium other than pencils or digital line art--for example, if the
- * primary artwork is done in watercolors or digital paints.
+ * The individual who draws the primary narrative artwork.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $artist;
+ protected $penciler;
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getLetterer()
+ public function 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;
}
/**
@@ -131,102 +131,102 @@ public function setColorist($colorist)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getVariantCover()
+ public function getArtist()
{
- return $this->variantCover;
+ return $this->artist;
}
/**
- * @param string $variantCover
+ * @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 setVariantCover($variantCover)
+ public function setArtist($artist)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $variantCover = self::checkTypes($variantCover, $types);
+ $artist = self::checkTypes($artist, $types);
- $this->variantCover = $variantCover;
+ $this->artist = $artist;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getInker()
+ public function getLetterer()
{
- return $this->inker;
+ return $this->letterer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $inker
+ * @param \OpenActive\Models\SchemaOrg\Person|string $letterer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInker($inker)
+ public function setLetterer($letterer)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $inker = self::checkTypes($inker, $types);
+ $letterer = self::checkTypes($letterer, $types);
- $this->inker = $inker;
+ $this->letterer = $letterer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getPenciler()
+ public function getVariantCover()
{
- return $this->penciler;
+ return $this->variantCover;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $penciler
+ * @param string $variantCover
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPenciler($penciler)
+ public function setVariantCover($variantCover)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $penciler = self::checkTypes($penciler, $types);
+ $variantCover = self::checkTypes($variantCover, $types);
- $this->penciler = $penciler;
+ $this->variantCover = $variantCover;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getArtist()
+ public function getPenciler()
{
- return $this->artist;
+ return $this->penciler;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $artist
+ * @param \OpenActive\Models\SchemaOrg\Person|string $penciler
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArtist($artist)
+ public function setPenciler($penciler)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $artist = self::checkTypes($artist, $types);
+ $penciler = self::checkTypes($penciler, $types);
- $this->artist = $artist;
+ $this->penciler = $penciler;
}
}
diff --git a/src/Models/SchemaOrg/ComicStory.php b/src/Models/SchemaOrg/ComicStory.php
index 8ec03973..744137bb 100644
--- a/src/Models/SchemaOrg/ComicStory.php
+++ b/src/Models/SchemaOrg/ComicStory.php
@@ -17,23 +17,23 @@ public static function getType()
public static function fieldList() {
$fields = [
- "letterer" => "letterer",
- "colorist" => "colorist",
"inker" => "inker",
- "penciler" => "penciler",
+ "colorist" => "colorist",
"artist" => "artist",
+ "letterer" => "letterer",
+ "penciler" => "penciler",
];
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.
@@ -44,54 +44,54 @@ public static function fieldList() {
protected $colorist;
/**
- * The individual who traces over the pencil drawings in ink after pencils are complete.
+ * The primary artist for a work
+ * in a medium other than pencils or digital line art--for example, if the
+ * primary artwork is done in watercolors or digital paints.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $inker;
+ protected $artist;
/**
- * The individual who draws the primary narrative artwork.
+ * The individual who adds lettering, including speech balloons and sound effects, to artwork.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $penciler;
+ protected $letterer;
/**
- * The primary artist for a work
- * in a medium other than pencils or digital line art--for example, if the
- * primary artwork is done in watercolors or digital paints.
+ * The individual who draws the primary narrative artwork.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $artist;
+ protected $penciler;
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getLetterer()
+ public function 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;
}
/**
@@ -122,76 +122,76 @@ public function setColorist($colorist)
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getInker()
+ public function getArtist()
{
- return $this->inker;
+ return $this->artist;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $inker
+ * @param \OpenActive\Models\SchemaOrg\Person|string $artist
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInker($inker)
+ public function setArtist($artist)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $inker = self::checkTypes($inker, $types);
+ $artist = self::checkTypes($artist, $types);
- $this->inker = $inker;
+ $this->artist = $artist;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPenciler()
+ public function getLetterer()
{
- return $this->penciler;
+ return $this->letterer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $penciler
+ * @param \OpenActive\Models\SchemaOrg\Person|string $letterer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPenciler($penciler)
+ public function setLetterer($letterer)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $penciler = self::checkTypes($penciler, $types);
+ $letterer = self::checkTypes($letterer, $types);
- $this->penciler = $penciler;
+ $this->letterer = $letterer;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getArtist()
+ public function getPenciler()
{
- return $this->artist;
+ return $this->penciler;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $artist
+ * @param \OpenActive\Models\SchemaOrg\Person|string $penciler
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArtist($artist)
+ public function setPenciler($penciler)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $artist = self::checkTypes($artist, $types);
+ $penciler = self::checkTypes($penciler, $types);
- $this->artist = $artist;
+ $this->penciler = $penciler;
}
}
diff --git a/src/Models/SchemaOrg/Comment.php b/src/Models/SchemaOrg/Comment.php
index e45f4dde..39d7872f 100644
--- a/src/Models/SchemaOrg/Comment.php
+++ b/src/Models/SchemaOrg/Comment.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"parentItem" => "parentItem",
- "downvoteCount" => "downvoteCount",
"upvoteCount" => "upvoteCount",
+ "downvoteCount" => "downvoteCount",
];
return array_merge(parent::fieldList(), $fields);
@@ -34,20 +34,20 @@ public static function fieldList() {
protected $parentItem;
/**
- * The number of downvotes this question, answer or comment has received from the community.
+ * The number of upvotes this question, answer or comment has received from the community.
*
*
* @var int|null
*/
- protected $downvoteCount;
+ protected $upvoteCount;
/**
- * The number of upvotes this question, answer or comment has received from the community.
+ * The number of downvotes this question, answer or comment has received from the community.
*
*
* @var int|null
*/
- protected $upvoteCount;
+ protected $downvoteCount;
/**
* @return \OpenActive\Models\SchemaOrg\Comment|string
@@ -77,51 +77,51 @@ public function setParentItem($parentItem)
/**
* @return int|null
*/
- public function getDownvoteCount()
+ public function getUpvoteCount()
{
- return $this->downvoteCount;
+ return $this->upvoteCount;
}
/**
- * @param int|null $downvoteCount
+ * @param int|null $upvoteCount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDownvoteCount($downvoteCount)
+ public function setUpvoteCount($upvoteCount)
{
$types = [
"int",
"null",
];
- $downvoteCount = self::checkTypes($downvoteCount, $types);
+ $upvoteCount = self::checkTypes($upvoteCount, $types);
- $this->downvoteCount = $downvoteCount;
+ $this->upvoteCount = $upvoteCount;
}
/**
* @return int|null
*/
- public function getUpvoteCount()
+ public function getDownvoteCount()
{
- return $this->upvoteCount;
+ return $this->downvoteCount;
}
/**
- * @param int|null $upvoteCount
+ * @param int|null $downvoteCount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUpvoteCount($upvoteCount)
+ public function setDownvoteCount($downvoteCount)
{
$types = [
"int",
"null",
];
- $upvoteCount = self::checkTypes($upvoteCount, $types);
+ $downvoteCount = self::checkTypes($downvoteCount, $types);
- $this->upvoteCount = $upvoteCount;
+ $this->downvoteCount = $downvoteCount;
}
}
diff --git a/src/Models/SchemaOrg/CommunicateAction.php b/src/Models/SchemaOrg/CommunicateAction.php
index 91f19d19..430db8bc 100644
--- a/src/Models/SchemaOrg/CommunicateAction.php
+++ b/src/Models/SchemaOrg/CommunicateAction.php
@@ -17,23 +17,15 @@ public static function getType()
public static function fieldList() {
$fields = [
- "recipient" => "recipient",
"inLanguage" => "inLanguage",
- "language" => "language",
+ "recipient" => "recipient",
"about" => "about",
+ "language" => "language",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * 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
- */
- protected $recipient;
-
/**
* 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]].
*
@@ -43,12 +35,12 @@ public static function fieldList() {
protected $inLanguage;
/**
- * A sub property of instrument. The language used on this action.
+ * A sub property of participant. The participant who is at the receiving end of the action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Language|string
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $language;
+ protected $recipient;
/**
* The subject matter of the content.
@@ -59,32 +51,12 @@ public static function fieldList() {
protected $about;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
- */
- public function getRecipient()
- {
- return $this->recipient;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * A sub property of instrument. The language used on this action.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Language|string
*/
- public function setRecipient($recipient)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
- "\OpenActive\Models\SchemaOrg\ContactPoint",
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
- ];
-
- $recipient = self::checkTypes($recipient, $types);
-
- $this->recipient = $recipient;
- }
+ protected $language;
/**
* @return string|\OpenActive\Models\SchemaOrg\Language
@@ -112,28 +84,31 @@ public function setInLanguage($inLanguage)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Language|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getLanguage()
+ public function getRecipient()
{
- return $this->language;
+ return $this->recipient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Language|string $language
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLanguage($language)
+ public function setRecipient($recipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Language",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $language = self::checkTypes($language, $types);
+ $recipient = self::checkTypes($recipient, $types);
- $this->language = $language;
+ $this->recipient = $recipient;
}
/**
@@ -161,4 +136,29 @@ public function setAbout($about)
$this->about = $about;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Language|string
+ */
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+
+ /**
+ * @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 setLanguage($language)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Language",
+ "string",
+ ];
+
+ $language = self::checkTypes($language, $types);
+
+ $this->language = $language;
+ }
+
}
diff --git a/src/Models/SchemaOrg/CompoundPriceSpecification.php b/src/Models/SchemaOrg/CompoundPriceSpecification.php
index a2905419..8ba29b1f 100644
--- a/src/Models/SchemaOrg/CompoundPriceSpecification.php
+++ b/src/Models/SchemaOrg/CompoundPriceSpecification.php
@@ -17,78 +17,78 @@ public static function getType()
public static function fieldList() {
$fields = [
- "priceComponent" => "priceComponent",
"priceType" => "priceType",
+ "priceComponent" => "priceComponent",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * This property links to all [[UnitPriceSpecification]] nodes that apply in parallel for the [[CompoundPriceSpecification]] node.
+ * Defines the type of a price specified for an offered product, for example a list price, a (temporary) sale price or a manufacturer suggested retail price. If multiple prices are specified for an offer the [[priceType]] property can be used to identify the type of each such specified price. The value of priceType can be specified as a value from enumeration PriceTypeEnumeration or as a free form text string for price types that are not already predefined in PriceTypeEnumeration.
*
*
- * @var \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string
+ * @var \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null
*/
- protected $priceComponent;
+ protected $priceType;
/**
- * Defines the type of a price specified for an offered product, for example a list price, a (temporary) sale price or a manufacturer suggested retail price. If multiple prices are specified for an offer the [[priceType]] property can be used to identify the type of each such specified price. The value of priceType can be specified as a value from enumeration PriceTypeEnumeration or as a free form text string for price types that are not already predefined in PriceTypeEnumeration.
+ * This property links to all [[UnitPriceSpecification]] nodes that apply in parallel for the [[CompoundPriceSpecification]] node.
*
*
- * @var \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null
+ * @var \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string
*/
- protected $priceType;
+ protected $priceComponent;
/**
- * @return \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string
+ * @return \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null
*/
- public function getPriceComponent()
+ public function getPriceType()
{
- return $this->priceComponent;
+ return $this->priceType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string $priceComponent
+ * @param \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null $priceType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPriceComponent($priceComponent)
+ public function setPriceType($priceType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\UnitPriceSpecification",
+ "\OpenActive\Enums\SchemaOrg\PriceTypeEnumeration",
"string",
+ "null",
];
- $priceComponent = self::checkTypes($priceComponent, $types);
+ $priceType = self::checkTypes($priceType, $types);
- $this->priceComponent = $priceComponent;
+ $this->priceType = $priceType;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null
+ * @return \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string
*/
- public function getPriceType()
+ public function getPriceComponent()
{
- return $this->priceType;
+ return $this->priceComponent;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null $priceType
+ * @param \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string $priceComponent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPriceType($priceType)
+ public function setPriceComponent($priceComponent)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\PriceTypeEnumeration",
+ "\OpenActive\Models\SchemaOrg\UnitPriceSpecification",
"string",
- "null",
];
- $priceType = self::checkTypes($priceType, $types);
+ $priceComponent = self::checkTypes($priceComponent, $types);
- $this->priceType = $priceType;
+ $this->priceComponent = $priceComponent;
}
}
diff --git a/src/Models/SchemaOrg/ConstraintNode.php b/src/Models/SchemaOrg/ConstraintNode.php
new file mode 100644
index 00000000..8dc75040
--- /dev/null
+++ b/src/Models/SchemaOrg/ConstraintNode.php
@@ -0,0 +1,94 @@
+ "constraintProperty",
+ "numConstraints" => "numConstraints",
+ ];
+
+ return array_merge(parent::fieldList(), $fields);
+ }
+
+ /**
+ * Indicates a property used as a constraint. For example, in the definition of a [[StatisticalVariable]]. The value is a property, either from within Schema.org or from other compatible (e.g. RDF) systems such as DataCommons.org or Wikidata.org.
+ *
+ *
+ * @var string|\OpenActive\Enums\PropertyEnumeration|null
+ */
+ protected $constraintProperty;
+
+ /**
+ * Indicates the number of constraints property values defined for a particular [[ConstraintNode]] such as [[StatisticalVariable]]. This helps applications understand if they have access to a sufficiently complete description of a [[StatisticalVariable]] or other construct that is defined using properties on template-style nodes.
+ *
+ *
+ * @var int|null
+ */
+ protected $numConstraints;
+
+ /**
+ * @return string|\OpenActive\Enums\PropertyEnumeration|null
+ */
+ public function getConstraintProperty()
+ {
+ return $this->constraintProperty;
+ }
+
+ /**
+ * @param string|\OpenActive\Enums\PropertyEnumeration|null $constraintProperty
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setConstraintProperty($constraintProperty)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Enums\PropertyEnumeration",
+ "null",
+ ];
+
+ $constraintProperty = self::checkTypes($constraintProperty, $types);
+
+ $this->constraintProperty = $constraintProperty;
+ }
+
+ /**
+ * @return int|null
+ */
+ public function getNumConstraints()
+ {
+ return $this->numConstraints;
+ }
+
+ /**
+ * @param int|null $numConstraints
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setNumConstraints($numConstraints)
+ {
+ $types = [
+ "int",
+ "null",
+ ];
+
+ $numConstraints = self::checkTypes($numConstraints, $types);
+
+ $this->numConstraints = $numConstraints;
+ }
+
+}
diff --git a/src/Models/SchemaOrg/ConsumeAction.php b/src/Models/SchemaOrg/ConsumeAction.php
index d13f0fa1..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..92639111 100644
--- a/src/Models/SchemaOrg/ContactPoint.php
+++ b/src/Models/SchemaOrg/ContactPoint.php
@@ -17,44 +17,36 @@ public static function getType()
public static function fieldList() {
$fields = [
- "telephone" => "telephone",
- "hoursAvailable" => "hoursAvailable",
- "email" => "email",
- "contactOption" => "contactOption",
"availableLanguage" => "availableLanguage",
- "serviceArea" => "serviceArea",
- "areaServed" => "areaServed",
"contactType" => "contactType",
- "productSupported" => "productSupported",
+ "contactOption" => "contactOption",
+ "hoursAvailable" => "hoursAvailable",
+ "serviceArea" => "serviceArea",
"faxNumber" => "faxNumber",
+ "productSupported" => "productSupported",
+ "telephone" => "telephone",
+ "areaServed" => "areaServed",
+ "email" => "email",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The telephone number.
- *
- *
- * @var string
- */
- protected $telephone;
-
- /**
- * The hours during which this service or contact is available.
+ * 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\OpeningHoursSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\Language|string
*/
- protected $hoursAvailable;
+ protected $availableLanguage;
/**
- * Email address.
+ * 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 $email;
+ protected $contactType;
/**
* An option available on this contact point (e.g. a toll-free number or support for hearing-impaired callers).
@@ -65,36 +57,28 @@ public static function fieldList() {
protected $contactOption;
/**
- * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]]
+ * The hours during which this service or contact is available.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
*/
- protected $availableLanguage;
+ protected $hoursAvailable;
/**
* The geographic area where the service is provided.
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
protected $serviceArea;
/**
- * 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
- */
- protected $areaServed;
-
- /**
- * 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 fax number.
*
*
* @var string
*/
- protected $contactType;
+ protected $faxNumber;
/**
* 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,84 +89,76 @@ public static function fieldList() {
protected $productSupported;
/**
- * The fax number.
+ * The telephone number.
*
*
* @var string
*/
- protected $faxNumber;
+ protected $telephone;
/**
- * @return string
+ * The geographic area where a service or offered item is provided.
+ *
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- public function getTelephone()
- {
- return $this->telephone;
- }
+ protected $areaServed;
/**
- * @param string $telephone
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * Email address.
+ *
+ *
+ * @var string
*/
- public function setTelephone($telephone)
- {
- $types = [
- "string",
- ];
-
- $telephone = self::checkTypes($telephone, $types);
-
- $this->telephone = $telephone;
- }
+ protected $email;
/**
- * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
+ * @return \OpenActive\Models\SchemaOrg\Language|string
*/
- public function getHoursAvailable()
+ public function getAvailableLanguage()
{
- return $this->hoursAvailable;
+ return $this->availableLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $hoursAvailable
+ * @param \OpenActive\Models\SchemaOrg\Language|string $availableLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHoursAvailable($hoursAvailable)
+ public function setAvailableLanguage($availableLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification",
+ "\OpenActive\Models\SchemaOrg\Language",
"string",
];
- $hoursAvailable = self::checkTypes($hoursAvailable, $types);
+ $availableLanguage = self::checkTypes($availableLanguage, $types);
- $this->hoursAvailable = $hoursAvailable;
+ $this->availableLanguage = $availableLanguage;
}
/**
* @return string
*/
- public function getEmail()
+ public function getContactType()
{
- return $this->email;
+ return $this->contactType;
}
/**
- * @param string $email
+ * @param string $contactType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEmail($email)
+ public function setContactType($contactType)
{
$types = [
"string",
];
- $email = self::checkTypes($email, $types);
+ $contactType = self::checkTypes($contactType, $types);
- $this->email = $email;
+ $this->contactType = $contactType;
}
/**
@@ -211,32 +187,32 @@ public function setContactOption($contactOption)
}
/**
- * @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\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
public function getServiceArea()
{
@@ -244,16 +220,16 @@ public function getServiceArea()
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string $serviceArea
+ * @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 setServiceArea($serviceArea)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"\OpenActive\Models\SchemaOrg\GeoShape",
"\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "\OpenActive\Models\SchemaOrg\Place",
"string",
];
@@ -263,103 +239,127 @@ public function setServiceArea($serviceArea)
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return string
*/
- public function getAreaServed()
+ public function getFaxNumber()
{
- return $this->areaServed;
+ return $this->faxNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed
+ * @param string $faxNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAreaServed($areaServed)
+ public function setFaxNumber($faxNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "\OpenActive\Models\SchemaOrg\GeoShape",
"string",
- "\OpenActive\Models\SchemaOrg\Place",
];
- $areaServed = self::checkTypes($areaServed, $types);
+ $faxNumber = self::checkTypes($faxNumber, $types);
- $this->areaServed = $areaServed;
+ $this->faxNumber = $faxNumber;
+ }
+
+ /**
+ * @return string|\OpenActive\Models\SchemaOrg\Product
+ */
+ public function getProductSupported()
+ {
+ return $this->productSupported;
+ }
+
+ /**
+ * @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 setProductSupported($productSupported)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Models\SchemaOrg\Product",
+ ];
+
+ $productSupported = self::checkTypes($productSupported, $types);
+
+ $this->productSupported = $productSupported;
}
/**
* @return string
*/
- public function getContactType()
+ public function getTelephone()
{
- return $this->contactType;
+ return $this->telephone;
}
/**
- * @param string $contactType
+ * @param string $telephone
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContactType($contactType)
+ public function setTelephone($telephone)
{
$types = [
"string",
];
- $contactType = self::checkTypes($contactType, $types);
+ $telephone = self::checkTypes($telephone, $types);
- $this->contactType = $contactType;
+ $this->telephone = $telephone;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Product
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- public function getProductSupported()
+ public function getAreaServed()
{
- return $this->productSupported;
+ return $this->areaServed;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Product $productSupported
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea $areaServed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductSupported($productSupported)
+ public function setAreaServed($areaServed)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Product",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
];
- $productSupported = self::checkTypes($productSupported, $types);
+ $areaServed = self::checkTypes($areaServed, $types);
- $this->productSupported = $productSupported;
+ $this->areaServed = $areaServed;
}
/**
* @return string
*/
- public function getFaxNumber()
+ public function getEmail()
{
- return $this->faxNumber;
+ return $this->email;
}
/**
- * @param string $faxNumber
+ * @param string $email
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFaxNumber($faxNumber)
+ public function setEmail($email)
{
$types = [
"string",
];
- $faxNumber = self::checkTypes($faxNumber, $types);
+ $email = self::checkTypes($email, $types);
- $this->faxNumber = $faxNumber;
+ $this->email = $email;
}
}
diff --git a/src/Models/SchemaOrg/CookAction.php b/src/Models/SchemaOrg/CookAction.php
index 0c80482f..a6efa2f1 100644
--- a/src/Models/SchemaOrg/CookAction.php
+++ b/src/Models/SchemaOrg/CookAction.php
@@ -17,65 +17,65 @@ public static function getType()
public static function fieldList() {
$fields = [
- "recipe" => "recipe",
- "foodEstablishment" => "foodEstablishment",
"foodEvent" => "foodEvent",
+ "foodEstablishment" => "foodEstablishment",
+ "recipe" => "recipe",
];
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.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\FoodEstablishment|string
+ * @var \OpenActive\Models\SchemaOrg\FoodEstablishment|\OpenActive\Models\SchemaOrg\Place|string
*/
protected $foodEstablishment;
/**
- * A sub property of location. The specific food event where the action occurred.
+ * A sub property of instrument. The recipe/instructions used to perform the action.
*
*
- * @var \OpenActive\Models\SchemaOrg\FoodEvent|string
+ * @var \OpenActive\Models\SchemaOrg\Recipe|string
*/
- protected $foodEvent;
+ protected $recipe;
/**
- * @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\FoodEstablishment|\OpenActive\Models\SchemaOrg\Place|string
*/
public function getFoodEstablishment()
{
@@ -83,15 +83,15 @@ public function getFoodEstablishment()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\FoodEstablishment|string $foodEstablishment
+ * @param \OpenActive\Models\SchemaOrg\FoodEstablishment|\OpenActive\Models\SchemaOrg\Place|string $foodEstablishment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setFoodEstablishment($foodEstablishment)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"\OpenActive\Models\SchemaOrg\FoodEstablishment",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
@@ -101,28 +101,28 @@ public function setFoodEstablishment($foodEstablishment)
}
/**
- * @return \OpenActive\Models\SchemaOrg\FoodEvent|string
+ * @return \OpenActive\Models\SchemaOrg\Recipe|string
*/
- public function getFoodEvent()
+ public function getRecipe()
{
- return $this->foodEvent;
+ return $this->recipe;
}
/**
- * @param \OpenActive\Models\SchemaOrg\FoodEvent|string $foodEvent
+ * @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 setFoodEvent($foodEvent)
+ public function setRecipe($recipe)
{
$types = [
- "\OpenActive\Models\SchemaOrg\FoodEvent",
+ "\OpenActive\Models\SchemaOrg\Recipe",
"string",
];
- $foodEvent = self::checkTypes($foodEvent, $types);
+ $recipe = self::checkTypes($recipe, $types);
- $this->foodEvent = $foodEvent;
+ $this->recipe = $recipe;
}
}
diff --git a/src/Models/SchemaOrg/Corporation.php b/src/Models/SchemaOrg/Corporation.php
index 3954b7f0..13ab4280 100644
--- a/src/Models/SchemaOrg/Corporation.php
+++ b/src/Models/SchemaOrg/Corporation.php
@@ -24,7 +24,7 @@ public static function fieldList() {
}
/**
- * The exchange traded instrument associated with a Corporation object. The tickerSymbol is expressed as an exchange and an instrument name separated by a space character. For the exchange component of the tickerSymbol attribute, we recommend using the controlled vocabulary of Market Identifier Codes (MIC) specified in ISO15022.
+ * The exchange traded instrument associated with a Corporation object. The tickerSymbol is expressed as an exchange and an instrument name separated by a space character. For the exchange component of the tickerSymbol attribute, we recommend using the controlled vocabulary of Market Identifier Codes (MIC) specified in ISO 15022.
*
*
* @var string
diff --git a/src/Models/SchemaOrg/Course.php b/src/Models/SchemaOrg/Course.php
index 09300453..b801d9dc 100644
--- a/src/Models/SchemaOrg/Course.php
+++ b/src/Models/SchemaOrg/Course.php
@@ -17,32 +17,60 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "courseCode" => "courseCode",
+ "syllabusSections" => "syllabusSections",
+ "totalHistoricalEnrollment" => "totalHistoricalEnrollment",
+ "availableLanguage" => "availableLanguage",
"coursePrerequisites" => "coursePrerequisites",
- "educationalCredentialAwarded" => "educationalCredentialAwarded",
"numberOfCredits" => "numberOfCredits",
+ "financialAidEligible" => "financialAidEligible",
"occupationalCredentialAwarded" => "occupationalCredentialAwarded",
- "courseCode" => "courseCode",
"hasCourseInstance" => "hasCourseInstance",
+ "educationalCredentialAwarded" => "educationalCredentialAwarded",
];
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]].
+ * The identifier for the [[Course]] used by the course [[provider]] (e.g. CS101 or 6.001).
*
*
- * @var string|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course
+ * @var string
*/
- protected $coursePrerequisites;
+ protected $courseCode;
/**
- * A description of the qualification, award, certificate, diploma or other educational credential awarded as a consequence of successful completion of this course or program.
+ * Indicates (typically several) Syllabus entities that lay out what each section of the overall course will cover.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @var \OpenActive\Models\SchemaOrg\Syllabus|string
*/
- protected $educationalCredentialAwarded;
+ protected $syllabusSections;
+
+ /**
+ * The total number of students that have enrolled in the history of the course.
+ *
+ *
+ * @var int|null
+ */
+ protected $totalHistoricalEnrollment;
+
+ /**
+ * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Language|string
+ */
+ protected $availableLanguage;
+
+ /**
+ * 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\Course|string|\OpenActive\Models\SchemaOrg\AlignmentObject
+ */
+ protected $coursePrerequisites;
/**
* The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram.
@@ -53,20 +81,20 @@ public static function fieldList() {
protected $numberOfCredits;
/**
- * A description of the qualification, award, certificate, diploma or other occupational credential awarded as a consequence of successful completion of this course or program.
+ * A financial aid type or program which students may use to pay for tuition or fees associated with the program.
*
*
- * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $occupationalCredentialAwarded;
+ protected $financialAidEligible;
/**
- * The identifier for the [[Course]] used by the course [[provider]] (e.g. CS101 or 6.001).
+ * 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
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $courseCode;
+ protected $occupationalCredentialAwarded;
/**
* 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.
@@ -77,54 +105,136 @@ public static function fieldList() {
protected $hasCourseInstance;
/**
- * @return string|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course
+ * A description of the qualification, award, certificate, diploma or other educational credential awarded as a consequence of successful completion of this course or program.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
*/
- public function getCoursePrerequisites()
+ protected $educationalCredentialAwarded;
+
+ /**
+ * @return string
+ */
+ public function getCourseCode()
{
- return $this->coursePrerequisites;
+ return $this->courseCode;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course $coursePrerequisites
+ * @param string $courseCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCoursePrerequisites($coursePrerequisites)
+ public function setCourseCode($courseCode)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\AlignmentObject",
- "\OpenActive\Models\SchemaOrg\Course",
];
- $coursePrerequisites = self::checkTypes($coursePrerequisites, $types);
+ $courseCode = self::checkTypes($courseCode, $types);
- $this->coursePrerequisites = $coursePrerequisites;
+ $this->courseCode = $courseCode;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @return \OpenActive\Models\SchemaOrg\Syllabus|string
*/
- public function getEducationalCredentialAwarded()
+ public function getSyllabusSections()
{
- return $this->educationalCredentialAwarded;
+ return $this->syllabusSections;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $educationalCredentialAwarded
+ * @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 setEducationalCredentialAwarded($educationalCredentialAwarded)
+ public function setSyllabusSections($syllabusSections)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Syllabus",
"string",
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $educationalCredentialAwarded = self::checkTypes($educationalCredentialAwarded, $types);
+ $syllabusSections = self::checkTypes($syllabusSections, $types);
- $this->educationalCredentialAwarded = $educationalCredentialAwarded;
+ $this->syllabusSections = $syllabusSections;
+ }
+
+ /**
+ * @return int|null
+ */
+ public function getTotalHistoricalEnrollment()
+ {
+ return $this->totalHistoricalEnrollment;
+ }
+
+ /**
+ * @param int|null $totalHistoricalEnrollment
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setTotalHistoricalEnrollment($totalHistoricalEnrollment)
+ {
+ $types = [
+ "int",
+ "null",
+ ];
+
+ $totalHistoricalEnrollment = self::checkTypes($totalHistoricalEnrollment, $types);
+
+ $this->totalHistoricalEnrollment = $totalHistoricalEnrollment;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Language|string
+ */
+ public function getAvailableLanguage()
+ {
+ return $this->availableLanguage;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Language|string $availableLanguage
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setAvailableLanguage($availableLanguage)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Language",
+ "string",
+ ];
+
+ $availableLanguage = self::checkTypes($availableLanguage, $types);
+
+ $this->availableLanguage = $availableLanguage;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Course|string|\OpenActive\Models\SchemaOrg\AlignmentObject
+ */
+ public function getCoursePrerequisites()
+ {
+ return $this->coursePrerequisites;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Course|string|\OpenActive\Models\SchemaOrg\AlignmentObject $coursePrerequisites
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setCoursePrerequisites($coursePrerequisites)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Course",
+ "string",
+ "\OpenActive\Models\SchemaOrg\AlignmentObject",
+ ];
+
+ $coursePrerequisites = self::checkTypes($coursePrerequisites, $types);
+
+ $this->coursePrerequisites = $coursePrerequisites;
}
/**
@@ -155,52 +265,53 @@ public function setNumberOfCredits($numberOfCredits)
}
/**
- * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getOccupationalCredentialAwarded()
+ public function getFinancialAidEligible()
{
- return $this->occupationalCredentialAwarded;
+ return $this->financialAidEligible;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $occupationalCredentialAwarded
+ * @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 setOccupationalCredentialAwarded($occupationalCredentialAwarded)
+ public function setFinancialAidEligible($financialAidEligible)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types);
+ $financialAidEligible = self::checkTypes($financialAidEligible, $types);
- $this->occupationalCredentialAwarded = $occupationalCredentialAwarded;
+ $this->financialAidEligible = $financialAidEligible;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getCourseCode()
+ public function getOccupationalCredentialAwarded()
{
- return $this->courseCode;
+ return $this->occupationalCredentialAwarded;
}
/**
- * @param string $courseCode
+ * @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 setCourseCode($courseCode)
+ public function setOccupationalCredentialAwarded($occupationalCredentialAwarded)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $courseCode = self::checkTypes($courseCode, $types);
+ $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types);
- $this->courseCode = $courseCode;
+ $this->occupationalCredentialAwarded = $occupationalCredentialAwarded;
}
/**
@@ -228,4 +339,29 @@ public function setHasCourseInstance($hasCourseInstance)
$this->hasCourseInstance = $hasCourseInstance;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ */
+ public function getEducationalCredentialAwarded()
+ {
+ return $this->educationalCredentialAwarded;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $educationalCredentialAwarded
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setEducationalCredentialAwarded($educationalCredentialAwarded)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
+ "string",
+ ];
+
+ $educationalCredentialAwarded = self::checkTypes($educationalCredentialAwarded, $types);
+
+ $this->educationalCredentialAwarded = $educationalCredentialAwarded;
+ }
+
}
diff --git a/src/Models/SchemaOrg/CourseInstance.php b/src/Models/SchemaOrg/CourseInstance.php
index 5f6f9db7..72449b2d 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",
+ "courseSchedule" => "courseSchedule",
"courseWorkload" => "courseWorkload",
- "courseMode" => "courseMode",
];
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]].
*
@@ -34,20 +43,44 @@ public static function fieldList() {
protected $instructor;
/**
- * The amount of work expected of students taking the course, often provided as a figure per week or per month, and may be broken down by type. For example, "2 hours of lectures, 1 hour of lab work and 3 hours of independent study per week".
+ * Represents the length and pace of a course, expressed as a [[Schedule]].
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Schedule|string
*/
- protected $courseWorkload;
+ protected $courseSchedule;
/**
- * The medium or means of delivery of the course instance or the mode of study, either as a text label (e.g. "online", "onsite" or "blended"; "synchronous" or "asynchronous"; "full-time" or "part-time") or as a URL reference to a term from a controlled vocabulary (e.g. https://ceds.ed.gov/element/001311#Asynchronous ).
+ * The amount of work expected of students taking the course, often provided as a figure per week or per month, and may be broken down by type. For example, "2 hours of lectures, 1 hour of lab work and 3 hours of independent study per week".
*
*
* @var string
*/
- protected $courseMode;
+ protected $courseWorkload;
+
+ /**
+ * @return 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
@@ -75,51 +108,52 @@ public function setInstructor($instructor)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Schedule|string
*/
- public function getCourseWorkload()
+ public function getCourseSchedule()
{
- return $this->courseWorkload;
+ return $this->courseSchedule;
}
/**
- * @param string $courseWorkload
+ * @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 setCourseWorkload($courseWorkload)
+ public function setCourseSchedule($courseSchedule)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Schedule",
"string",
];
- $courseWorkload = self::checkTypes($courseWorkload, $types);
+ $courseSchedule = self::checkTypes($courseSchedule, $types);
- $this->courseWorkload = $courseWorkload;
+ $this->courseSchedule = $courseSchedule;
}
/**
* @return string
*/
- public function getCourseMode()
+ public function getCourseWorkload()
{
- return $this->courseMode;
+ return $this->courseWorkload;
}
/**
- * @param string $courseMode
+ * @param string $courseWorkload
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCourseMode($courseMode)
+ public function setCourseWorkload($courseWorkload)
{
$types = [
"string",
];
- $courseMode = self::checkTypes($courseMode, $types);
+ $courseWorkload = self::checkTypes($courseWorkload, $types);
- $this->courseMode = $courseMode;
+ $this->courseWorkload = $courseWorkload;
}
}
diff --git a/src/Models/SchemaOrg/CreativeWork.php b/src/Models/SchemaOrg/CreativeWork.php
index bf378797..d2811174 100644
--- a/src/Models/SchemaOrg/CreativeWork.php
+++ b/src/Models/SchemaOrg/CreativeWork.php
@@ -17,926 +17,979 @@ 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",
- "funding" => "funding",
"educationalUse" => "educationalUse",
- "genre" => "genre",
- "keywords" => "keywords",
+ "license" => "license",
"position" => "position",
+ "headline" => "headline",
"accessibilityHazard" => "accessibilityHazard",
- "alternativeHeadline" => "alternativeHeadline",
- "audience" => "audience",
+ "isAccessibleForFree" => "isAccessibleForFree",
+ "temporal" => "temporal",
+ "dateModified" => "dateModified",
+ "encodingFormat" => "encodingFormat",
+ "publishingPrinciples" => "publishingPrinciples",
+ "educationalLevel" => "educationalLevel",
+ "contentRating" => "contentRating",
"offers" => "offers",
- "locationCreated" => "locationCreated",
- "associatedMedia" => "associatedMedia",
- "materialExtent" => "materialExtent",
- "mainEntity" => "mainEntity",
- "copyrightHolder" => "copyrightHolder",
+ "isBasedOnUrl" => "isBasedOnUrl",
+ "contributor" => "contributor",
+ "spatial" => "spatial",
+ "inLanguage" => "inLanguage",
+ "hasPart" => "hasPart",
"awards" => "awards",
- "contentLocation" => "contentLocation",
+ "archivedAt" => "archivedAt",
+ "copyrightNotice" => "copyrightNotice",
+ "translator" => "translator",
+ "editor" => "editor",
+ "recordedAt" => "recordedAt",
+ "countryOfOrigin" => "countryOfOrigin",
"sdDatePublished" => "sdDatePublished",
- "producer" => "producer",
- "spatial" => "spatial",
- "publisher" => "publisher",
- "sourceOrganization" => "sourceOrganization",
- "character" => "character",
- "funder" => "funder",
- "exampleOfWork" => "exampleOfWork",
- "usageInfo" => "usageInfo",
- "provider" => "provider",
- "sdPublisher" => "sdPublisher",
- "comment" => "comment",
- "accessibilityFeature" => "accessibilityFeature",
- "publication" => "publication",
- "translationOfWork" => "translationOfWork",
"interactivityType" => "interactivityType",
- "commentCount" => "commentCount",
- "accessMode" => "accessMode",
+ "keywords" => "keywords",
+ "material" => "material",
+ "copyrightHolder" => "copyrightHolder",
+ "educationalAlignment" => "educationalAlignment",
"aggregateRating" => "aggregateRating",
- "timeRequired" => "timeRequired",
- "typicalAgeRange" => "typicalAgeRange",
+ "mainEntity" => "mainEntity",
+ "usageInfo" => "usageInfo",
+ "contentReferenceTime" => "contentReferenceTime",
+ "sdLicense" => "sdLicense",
+ "expires" => "expires",
+ "acquireLicensePage" => "acquireLicensePage",
"interactionStatistic" => "interactionStatistic",
- "copyrightYear" => "copyrightYear",
+ "fileFormat" => "fileFormat",
+ "maintainer" => "maintainer",
"isBasedOn" => "isBasedOn",
- "workExample" => "workExample",
- "publishingPrinciples" => "publishingPrinciples",
+ "alternativeHeadline" => "alternativeHeadline",
+ "commentCount" => "commentCount",
"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",
+ "typicalAgeRange" => "typicalAgeRange",
+ "schemaVersion" => "schemaVersion",
+ "sourceOrganization" => "sourceOrganization",
+ "version" => "version",
+ "datePublished" => "datePublished",
+ "dateCreated" => "dateCreated",
+ "publication" => "publication",
+ "award" => "award",
+ "accessibilityAPI" => "accessibilityAPI",
+ "exampleOfWork" => "exampleOfWork",
+ "translationOfWork" => "translationOfWork",
+ "accessMode" => "accessMode",
+ "author" => "author",
+ "producer" => "producer",
+ "funder" => "funder",
"about" => "about",
+ "accessibilityFeature" => "accessibilityFeature",
"isFamilyFriendly" => "isFamilyFriendly",
- "headline" => "headline",
- "accessibilityAPI" => "accessibilityAPI",
- "publisherImprint" => "publisherImprint",
- "isBasedOnUrl" => "isBasedOnUrl",
- "encodings" => "encodings",
- "interpretedAsClaim" => "interpretedAsClaim",
- "accessibilityControl" => "accessibilityControl",
"citation" => "citation",
- "version" => "version",
- "archivedAt" => "archivedAt",
- "learningResourceType" => "learningResourceType",
- "encoding" => "encoding",
+ "sdPublisher" => "sdPublisher",
"audio" => "audio",
- "mentions" => "mentions",
+ "materialExtent" => "materialExtent",
"accessModeSufficient" => "accessModeSufficient",
- "hasPart" => "hasPart",
+ "comment" => "comment",
+ "associatedMedia" => "associatedMedia",
+ "text" => "text",
+ "publisherImprint" => "publisherImprint",
+ "character" => "character",
+ "spatialCoverage" => "spatialCoverage",
+ "abstract" => "abstract",
"temporalCoverage" => "temporalCoverage",
- "contributor" => "contributor",
+ "funding" => "funding",
+ "assesses" => "assesses",
+ "workExample" => "workExample",
+ "locationCreated" => "locationCreated",
+ "audience" => "audience",
+ "creator" => "creator",
+ "learningResourceType" => "learningResourceType",
+ "creditText" => "creditText",
+ "copyrightYear" => "copyrightYear",
+ "workTranslation" => "workTranslation",
+ "reviews" => "reviews",
"video" => "video",
+ "encoding" => "encoding",
+ "accessibilityControl" => "accessibilityControl",
+ "pattern" => "pattern",
+ "mentions" => "mentions",
+ "editEIDR" => "editEIDR",
+ "teaches" => "teaches",
+ "timeRequired" => "timeRequired",
+ "thumbnail" => "thumbnail",
+ "genre" => "genre",
+ "creativeWorkStatus" => "creativeWorkStatus",
+ "provider" => "provider",
+ "review" => "review",
+ "correction" => "correction",
+ "encodings" => "encodings",
+ "interpretedAsClaim" => "interpretedAsClaim",
+ "thumbnailUrl" => "thumbnailUrl",
+ "publisher" => "publisher",
+ "accessibilitySummary" => "accessibilitySummary",
+ "contentLocation" => "contentLocation",
+ "conditionsOfAccess" => "conditionsOfAccess",
+ "accountablePerson" => "accountablePerson",
+ "releasedEvent" => "releasedEvent",
+ "size" => "size",
];
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 purpose of a work in the context of education; for example, 'assignment', 'group work'.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $teaches;
+ protected $educationalUse;
/**
- * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators.
+ * A license document that applies to this content, typically indicated by URL.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $educationalLevel;
+ protected $license;
/**
- * An abstract is a short description that summarizes a [[CreativeWork]].
+ * The position of an item in a series or sequence of items.
*
*
- * @var string
+ * @var string|int|null
*/
- protected $abstract;
+ protected $position;
/**
- * 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.
+ * Headline of the article.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var string
*/
- protected $creativeWorkStatus;
+ protected $headline;
/**
- * 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 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 Date|null
+ * @var string
*/
- protected $expires;
+ protected $accessibilityHazard;
/**
- * The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event.
+ * A flag to signal that the item, event, or place is accessible for free.
*
*
- * @var DateTime|null
+ * @var bool|null
*/
- protected $contentReferenceTime;
+ protected $isAccessibleForFree;
/**
- * A material that something is made from, e.g. leather, wool, cotton, paper.
+ * 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|\OpenActive\Models\SchemaOrg\Product
+ * @var DateTime|string|null
*/
- protected $material;
+ protected $temporal;
/**
- * A review of the item.
+ * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed.
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var Date|DateTime|null
*/
- protected $review;
+ protected $dateModified;
/**
- * 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.
+ * Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)), e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc.
+ *
+ * In cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information.
+ *
+ * Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.
*
*
* @var string
*/
- protected $fileFormat;
+ protected $encodingFormat;
/**
- * The textual content of this CreativeWork.
+ * The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]].
+ *
+ * While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology.
+ *
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $text;
+ protected $publishingPrinciples;
/**
- * 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.
+ * 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 $translator;
+ protected $educationalLevel;
/**
- * An award won by or for this item.
+ * Official rating of a piece of content—for example, 'MPAA PG-13'.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Rating|string
*/
- protected $award;
+ protected $contentRating;
/**
- * The item being described is intended to assess the competency or learning outcome defined by the referenced term.
+ * 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\Models\SchemaOrg\DefinedTerm
+ * @var \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $assesses;
+ protected $offers;
/**
- * Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work.
+ * A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $copyrightNotice;
+ protected $isBasedOnUrl;
/**
- * 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.
+ * A secondary contributor to the CreativeWork or Event.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ */
+ protected $contributor;
+
+ /**
+ * The "spatial" property can be used in cases when more specific properties
+ * (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Place|string
+ */
+ protected $spatial;
+
+ /**
+ * 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;
+
+ /**
+ * Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ */
+ protected $hasPart;
+
+ /**
+ * Awards won by or for this item.
*
*
* @var string
*/
- protected $schemaVersion;
+ protected $awards;
/**
- * The country of origin of something, including products as well as creative works such as movie and TV content.
- *
- * In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable.
- *
- * In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here.
+ * Indicates a page or other link involved in archival of a [[CreativeWork]]. In the case of [[MediaReview]], the items in a [[MediaReviewItem]] may often become inaccessible, but be archived by archival, journalistic, activist, or law enforcement organizations. In such cases, the referenced page may not directly publish the content.
*
*
- * @var \OpenActive\Models\SchemaOrg\Country|string
+ * @var \OpenActive\Models\SchemaOrg\WebPage|string
*/
- protected $countryOfOrigin;
+ protected $archivedAt;
/**
- * 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.
+ * 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 \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string
*/
- protected $pattern;
+ protected $copyrightNotice;
+
+ /**
+ * 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
+ */
+ protected $translator;
/**
- * Specifies the Person that is legally accountable for the CreativeWork.
+ * Specifies the Person who edited the CreativeWork.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $accountablePerson;
+ protected $editor;
/**
- * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
+ * The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Grant|string
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $funding;
+ protected $recordedAt;
/**
- * The purpose of a work in the context of education; for example, 'assignment', 'group work'.
+ * The country of origin of something, including products as well as creative works such as movie and TV content.
+ *
+ * In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable.
+ *
+ * In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\Country|string
*/
- protected $educationalUse;
+ protected $countryOfOrigin;
/**
- * Genre of the creative work, broadcast channel or group.
+ * Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]
*
*
- * @var string
+ * @var Date|null
*/
- protected $genre;
+ protected $sdDatePublished;
/**
- * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.
+ * The predominant mode of learning supported by the learning resource. Acceptable values are 'active', 'expositive', or 'mixed'.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string
*/
- protected $keywords;
+ protected $interactivityType;
/**
- * The position of an item in a series or sequence of items.
+ * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.
*
*
- * @var string|int|null
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $position;
+ protected $keywords;
/**
- * 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 material that something is made from, e.g. leather, wool, cotton, paper.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\Product
*/
- protected $accessibilityHazard;
+ protected $material;
/**
- * A secondary title of the CreativeWork.
+ * The party holding the legal copyright to the CreativeWork.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $alternativeHeadline;
+ protected $copyrightHolder;
/**
- * An intended audience, i.e. a group for whom something was created.
+ * 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\Audience|string
+ * @var \OpenActive\Models\SchemaOrg\AlignmentObject|string
*/
- protected $audience;
+ protected $educationalAlignment;
/**
- * 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 overall rating, based on a collection of reviews or ratings, of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- protected $offers;
+ protected $aggregateRating;
/**
- * The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.
+ * Indicates the primary entity described in some page or other CreativeWork.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $locationCreated;
+ protected $mainEntity;
/**
- * A media object that encodes this CreativeWork. This property is a synonym for encoding.
+ * The schema.org [[usageInfo]] property indicates further information about a [[CreativeWork]]. This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information, e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options.
+ *
+ * This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses.
*
*
- * @var \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $associatedMedia;
+ protected $usageInfo;
/**
- * [object Object]
+ * 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var DateTime|null
*/
- protected $materialExtent;
+ protected $contentReferenceTime;
/**
- * Indicates the primary entity described in some page or other CreativeWork.
+ * A license document that applies to this structured data, typically indicated by URL.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $mainEntity;
+ protected $sdLicense;
/**
- * The party holding the legal copyright to the CreativeWork.
+ * Date the content expires and is no longer useful or available. For example a [[VideoObject]] or [[NewsArticle]] whose availability or relevance is time-limited, or a [[ClaimReview]] fact check whose publisher wants to indicate that it may no longer be relevant (or helpful to highlight) after some date.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var Date|DateTime|null
*/
- protected $copyrightHolder;
+ protected $expires;
/**
- * Awards won by or for this item.
+ * Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $awards;
+ protected $acquireLicensePage;
/**
- * The location depicted or described in the content. For example, the location in a photograph or painting.
+ * 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 $contentLocation;
+ protected $interactionStatistic;
/**
- * 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.).
+ * A maintainer of a [[Dataset]], software package ([[SoftwareApplication]]), or other [[Project]]. A maintainer is a [[Person]] or [[Organization]] that manages contributions to, and/or publication of, some (typically complex) artifact. It is common for distributions of software and data to be based on "upstream" sources. When [[maintainer]] is applied to a specific version of something e.g. a particular version or packaging of a [[Dataset]], it is always possible that the upstream source has a different maintainer. The [[isBasedOn]] property can be used to indicate such relationships between datasets to make the different maintenance roles clear. Similarly in the case of software, a package may have dedicated maintainers working on integration into software distributions such as Ubuntu, as well as upstream maintainers of the underlying work.
+ *
*
*
* @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $producer;
+ protected $maintainer;
/**
- * The "spatial" property can be used in cases when more specific properties
- * (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.
+ * A resource from which this work is derived or from which it is a modification or adaptation.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $spatial;
+ protected $isBasedOn;
/**
- * The publisher of the creative work.
+ * A secondary title of the CreativeWork.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $publisher;
+ protected $alternativeHeadline;
/**
- * The Organization on whose behalf the creator was working.
+ * 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\Organization|string
+ * @var int|null
*/
- protected $sourceOrganization;
+ protected $commentCount;
/**
- * Fictional person connected with a creative work.
+ * A link to the page containing the comments of the CreativeWork.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $character;
+ protected $discussionUrl;
/**
- * A person or organization that supports (sponsors) something through some kind of financial contribution.
+ * 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 $funder;
+ protected $sponsor;
/**
- * A creative work that this work is an example/instance/realization/derivation of.
+ * Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.
*
*
* @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $exampleOfWork;
+ protected $isPartOf;
/**
- * 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.
+ * The typical expected age range, e.g. '7-9', '11-'.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var string
*/
- protected $usageInfo;
+ protected $typicalAgeRange;
/**
- * 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.
+ * 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|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $provider;
+ protected $schemaVersion;
/**
- * 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.
+ * The Organization on whose behalf the creator was working.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $sdPublisher;
+ protected $sourceOrganization;
/**
- * Comments, typically from users.
+ * The version of the CreativeWork embodied by a specified resource.
*
*
- * @var \OpenActive\Models\SchemaOrg\Comment|string
+ * @var string|Number|null
*/
- protected $comment;
+ protected $version;
/**
- * 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).
+ * Date of first broadcast/publication.
*
*
- * @var string
+ * @var Date|DateTime|null
*/
- protected $accessibilityFeature;
+ protected $datePublished;
/**
- * A publication event associated with the item.
+ * The date on which the CreativeWork was created or the item was added to a DataFeed.
*
*
- * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string
+ * @var Date|DateTime|null
*/
- protected $publication;
+ protected $dateCreated;
/**
- * The work that this work has been translated from. e.g. 物种起源 is a translationOf “On the Origin of Species”
+ * A publication event associated with the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string
*/
- protected $translationOfWork;
+ protected $publication;
/**
- * 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.
+ * 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 int|null
+ * @var string
*/
- protected $commentCount;
+ protected $accessibilityAPI;
/**
- * 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).
+ * A creative work that this work is an example/instance/realization/derivation of.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $accessMode;
+ protected $exampleOfWork;
/**
- * The overall rating, based on a collection of reviews or ratings, of the item.
+ * The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.
*
*
- * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $aggregateRating;
+ protected $translationOfWork;
/**
- * Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. 'PT30M', 'PT1H25M'.
+ * The 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 DateInterval|string|null
+ * @var string
*/
- protected $timeRequired;
+ protected $accessMode;
/**
- * The typical expected age range, e.g. '7-9', '11-'.
+ * The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $typicalAgeRange;
+ protected $author;
/**
- * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.
+ * The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).
*
*
- * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $interactionStatistic;
+ protected $producer;
/**
- * The year during which the claimed copyright for the CreativeWork was first asserted.
+ * A person or organization that supports (sponsors) something through some kind of financial contribution.
*
*
- * @var Number|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $copyrightYear;
+ protected $funder;
/**
- * A resource from which this work is derived or from which it is a modification or adaption.
+ * The subject matter of the content.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\Product
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $isBasedOn;
+ protected $about;
/**
- * Example/instance/realization/derivation of the concept of this creative work. eg. The paperback edition, first edition, or eBook.
+ * 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\CreativeWork|string
+ * @var string
*/
- protected $workExample;
+ protected $accessibilityFeature;
/**
- * 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.
- *
+ * Indicates whether this content is family friendly.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var bool|null
*/
- protected $publishingPrinciples;
+ protected $isFamilyFriendly;
/**
- * A link to the page containing the comments of the CreativeWork.
+ * A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $discussionUrl;
+ protected $citation;
/**
- * The place and time the release was issued, expressed as a PublicationEvent.
+ * 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 \OpenActive\Models\SchemaOrg\PublicationEvent|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $releasedEvent;
+ protected $sdPublisher;
/**
- * The date on which the CreativeWork was created or the item was added to a DataFeed.
+ * An embedded audio object.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- protected $dateCreated;
+ protected $audio;
/**
- * 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.
+ * [object Object]
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $workTranslation;
+ protected $materialExtent;
/**
- * Specifies the Person who edited the CreativeWork.
+ * 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\Person|string
+ * @var \OpenActive\Models\SchemaOrg\ItemList|string
*/
- protected $editor;
+ protected $accessModeSufficient;
/**
- * Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.
+ * Comments, typically from users.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Comment|string
*/
- protected $creditText;
+ protected $comment;
/**
- * 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 textual content of this CreativeWork.
*
*
* @var string
*/
- protected $editEIDR;
+ protected $text;
/**
- * 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 publishing division which published the comic.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $author;
+ protected $publisherImprint;
/**
- * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed.
+ * Fictional person connected with a creative work.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $dateModified;
+ protected $character;
/**
- * 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 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\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $sponsor;
+ protected $spatialCoverage;
/**
- * 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."
+ * An abstract is a short description that summarizes a [[CreativeWork]].
*
*
* @var string
*/
- protected $accessibilitySummary;
+ protected $abstract;
/**
- * 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.
+ * 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".
*
- * Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.
+ * 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 $encodingFormat;
+ protected $temporalCoverage;
/**
- * 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 [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Grant|string
*/
- protected $maintainer;
+ protected $funding;
/**
- * An alignment to an established educational framework.
- *
- * This property should not be used where the nature of the alignment can be described using a simple property, for example to express that a resource [[teaches]] or [[assesses]] a competency.
+ * The item being described is intended to assess the competency or learning outcome defined by the referenced term.
*
*
- * @var \OpenActive\Models\SchemaOrg\AlignmentObject|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $educationalAlignment;
+ protected $assesses;
/**
- * Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.
+ * Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.
*
*
* @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $acquireLicensePage;
+ protected $workExample;
/**
- * A flag to signal that the item, event, or place is accessible for free.
+ * The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.
*
*
- * @var bool|null
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $isAccessibleForFree;
+ protected $locationCreated;
/**
- * Date of first broadcast/publication.
+ * An intended audience, i.e. a group for whom something was created.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Audience|string
*/
- protected $datePublished;
+ protected $audience;
/**
- * The spatialCoverage of a CreativeWork indicates the place(s) which are the focus of the content. It is a subproperty of
- * contentLocation intended primarily for more technical and detailed materials. For example with a Dataset, it indicates
- * areas that the dataset describes: a dataset of New York weather would have spatialCoverage which was the place: the state of New York.
+ * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $spatialCoverage;
+ protected $creator;
/**
- * A license document that applies to this structured data, typically indicated by URL.
+ * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $sdLicense;
+ protected $learningResourceType;
/**
- * 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 ".
+ * Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.
*
*
* @var string
*/
- protected $conditionsOfAccess;
+ protected $creditText;
/**
- * 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 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 string|\OpenActive\Models\SchemaOrg\Rating
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $contentRating;
+ protected $workTranslation;
/**
- * 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.
+ * Review of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $size;
+ protected $reviews;
/**
- * Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.
+ * An embedded video object.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string
*/
- protected $isPartOf;
+ protected $video;
/**
- * The "temporal" property can be used in cases where more specific properties
- * (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], [[datePublished]]) are not known to be appropriate.
+ * A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.
*
*
- * @var DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- protected $temporal;
+ protected $encoding;
/**
- * A thumbnail image relevant to the Thing.
+ * Identifies input methods that are sufficient to fully control the described resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityControl-vocabulary).
*
*
* @var string
*/
- protected $thumbnailUrl;
+ protected $accessibilityControl;
/**
- * 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 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|\OpenActive\Models\SchemaOrg\Language
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $inLanguage;
+ protected $pattern;
/**
- * A license document that applies to this content, typically indicated by URL.
+ * Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $license;
+ protected $mentions;
/**
- * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.
+ * 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\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $creator;
+ protected $editEIDR;
/**
- * Review of the item.
+ * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $reviews;
+ protected $teaches;
/**
- * The subject matter of the content.
+ * Approximate or typical time it usually takes to work with or through the content of this work for the typical or target audience.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var DateInterval|string|null
*/
- protected $about;
+ protected $timeRequired;
/**
- * Indicates whether this content is family friendly.
+ * Thumbnail image for an image or video.
*
*
- * @var bool|null
+ * @var \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- protected $isFamilyFriendly;
+ protected $thumbnail;
/**
- * Headline of the article.
+ * Genre of the creative work, broadcast channel or group.
*
*
* @var string
*/
- protected $headline;
+ protected $genre;
/**
- * 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 status of a creative work in terms of its stage in a lifecycle. Example terms include Incomplete, Draft, Published, Obsolete. Some organizations define a set of terms for the stages of their publication lifecycle.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $accessibilityAPI;
+ protected $creativeWorkStatus;
/**
- * The publishing division which published the comic.
+ * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $publisherImprint;
+ protected $provider;
/**
- * 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.
+ * A review of the item.
+ *
*
+ * @var \OpenActive\Models\SchemaOrg\Review|string
+ */
+ protected $review;
+
+ /**
+ * Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\CorrectionComment
*/
- protected $isBasedOnUrl;
+ protected $correction;
/**
* A media object that encodes this CreativeWork.
@@ -955,855 +1008,869 @@ public static function fieldList() {
protected $interpretedAsClaim;
/**
- * 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 thumbnail image relevant to the Thing.
*
*
* @var string
*/
- protected $accessibilityControl;
-
- /**
- * A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
- */
- protected $citation;
+ protected $thumbnailUrl;
/**
- * The version of the CreativeWork embodied by a specified resource.
+ * The publisher of the creative work.
*
*
- * @var string|Number|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $version;
+ protected $publisher;
/**
- * Indicates a page or other link involved in archival of a [[CreativeWork]]. In the case of [[MediaReview]], the items in a [[MediaReviewItem]] may often become inaccessible, but be archived by archival, journalistic, activist, or law enforcement organizations. In such cases, the referenced page may not directly publish the content.
+ * A 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\WebPage|string
+ * @var string
*/
- protected $archivedAt;
+ protected $accessibilitySummary;
/**
- * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'.
+ * The location depicted or described in the content. For example, the location in a photograph or painting.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $learningResourceType;
+ protected $contentLocation;
/**
- * A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.
+ * 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 \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @var string
*/
- protected $encoding;
+ protected $conditionsOfAccess;
/**
- * An embedded audio object.
+ * Specifies the Person that is legally accountable for the CreativeWork.
*
*
- * @var \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $audio;
+ protected $accountablePerson;
/**
- * Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.
+ * The place and time the release was issued, expressed as a PublicationEvent.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string
*/
- protected $mentions;
+ protected $releasedEvent;
/**
- * 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).
+ * 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\ItemList|string
+ * @var string|\OpenActive\Models\SchemaOrg\SizeSpecification|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $accessModeSufficient;
+ protected $size;
/**
- * Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).
- *
- *
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $hasPart;
+ public function getEducationalUse()
+ {
+ return $this->educationalUse;
+ }
/**
- * The temporalCoverage of a CreativeWork indicates the period that the content applies to, i.e. that it describes, either as a DateTime or as a textual string indicating a time period in [ISO 8601 time interval format](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals). In
- * the case of a Dataset it will typically indicate the relevant time period in a precise notation (e.g. for a 2011 census dataset, the year 2011 would be written "2011/2012"). Other forms of content e.g. ScholarlyArticle, Book, TVSeries or TVEpisode may indicate their temporalCoverage in broader terms - textually or via well-known URL.
- * Written works such as books may sometimes have precise temporal coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 interval format format via "1939/1945".
- *
- * Open-ended date ranges can be written with ".." in place of the end date. For example, "2015-11/.." indicates a range beginning in November 2015 and with no specified final date. This is tentative and might be updated in future when ISO 8601 is officially updated.
- *
- *
- * @var DateTime|string|null
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalUse
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- protected $temporalCoverage;
+ public function setEducationalUse($educationalUse)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ ];
+
+ $educationalUse = self::checkTypes($educationalUse, $types);
+
+ $this->educationalUse = $educationalUse;
+ }
/**
- * A secondary contributor to the CreativeWork or Event.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $contributor;
+ public function getLicense()
+ {
+ return $this->license;
+ }
/**
- * An embedded video object.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $license
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- protected $video;
+ public function setLicense($license)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
+ ];
+
+ $license = self::checkTypes($license, $types);
+
+ $this->license = $license;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string|int|null
*/
- public function getTeaches()
+ public function getPosition()
{
- return $this->teaches;
+ return $this->position;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches
+ * @param string|int|null $position
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTeaches($teaches)
+ public function setPosition($position)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "int",
+ "null",
];
- $teaches = self::checkTypes($teaches, $types);
+ $position = self::checkTypes($position, $types);
- $this->teaches = $teaches;
+ $this->position = $position;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return string
*/
- public function getEducationalLevel()
+ public function getHeadline()
{
- return $this->educationalLevel;
+ return $this->headline;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel
+ * @param string $headline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalLevel($educationalLevel)
+ public function setHeadline($headline)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $educationalLevel = self::checkTypes($educationalLevel, $types);
+ $headline = self::checkTypes($headline, $types);
- $this->educationalLevel = $educationalLevel;
+ $this->headline = $headline;
}
/**
* @return string
*/
- public function getAbstract()
+ public function getAccessibilityHazard()
{
- return $this->abstract;
+ return $this->accessibilityHazard;
}
/**
- * @param string $abstract
+ * @param string $accessibilityHazard
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAbstract($abstract)
+ public function setAccessibilityHazard($accessibilityHazard)
{
$types = [
"string",
];
- $abstract = self::checkTypes($abstract, $types);
+ $accessibilityHazard = self::checkTypes($accessibilityHazard, $types);
- $this->abstract = $abstract;
+ $this->accessibilityHazard = $accessibilityHazard;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return bool|null
*/
- public function getCreativeWorkStatus()
+ public function getIsAccessibleForFree()
{
- return $this->creativeWorkStatus;
+ return $this->isAccessibleForFree;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $creativeWorkStatus
+ * @param bool|null $isAccessibleForFree
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCreativeWorkStatus($creativeWorkStatus)
+ public function setIsAccessibleForFree($isAccessibleForFree)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "bool",
+ "null",
];
- $creativeWorkStatus = self::checkTypes($creativeWorkStatus, $types);
+ $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types);
- $this->creativeWorkStatus = $creativeWorkStatus;
+ $this->isAccessibleForFree = $isAccessibleForFree;
}
/**
- * @return Date|null
+ * @return DateTime|string|null
*/
- public function getExpires()
+ public function getTemporal()
{
- return $this->expires;
+ return $this->temporal;
}
/**
- * @param Date|null $expires
+ * @param DateTime|string|null $temporal
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExpires($expires)
+ public function setTemporal($temporal)
{
$types = [
- "Date",
+ "DateTime",
+ "string",
"null",
];
- $expires = self::checkTypes($expires, $types);
+ $temporal = self::checkTypes($temporal, $types);
- $this->expires = $expires;
+ $this->temporal = $temporal;
}
/**
- * @return DateTime|null
+ * @return Date|DateTime|null
*/
- public function getContentReferenceTime()
+ public function getDateModified()
{
- return $this->contentReferenceTime;
+ return $this->dateModified;
}
/**
- * @param DateTime|null $contentReferenceTime
+ * @param Date|DateTime|null $dateModified
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContentReferenceTime($contentReferenceTime)
+ public function setDateModified($dateModified)
{
$types = [
+ "Date",
"DateTime",
"null",
];
- $contentReferenceTime = self::checkTypes($contentReferenceTime, $types);
+ $dateModified = self::checkTypes($dateModified, $types);
- $this->contentReferenceTime = $contentReferenceTime;
+ $this->dateModified = $dateModified;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Product
+ * @return string
*/
- public function getMaterial()
+ public function getEncodingFormat()
{
- return $this->material;
+ return $this->encodingFormat;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Product $material
+ * @param string $encodingFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaterial($material)
+ public function setEncodingFormat($encodingFormat)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Product",
];
- $material = self::checkTypes($material, $types);
+ $encodingFormat = self::checkTypes($encodingFormat, $types);
- $this->material = $material;
+ $this->encodingFormat = $encodingFormat;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getReview()
+ public function getPublishingPrinciples()
{
- return $this->review;
+ return $this->publishingPrinciples;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $review
+ * @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 setReview($review)
+ public function setPublishingPrinciples($publishingPrinciples)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $review = self::checkTypes($review, $types);
+ $publishingPrinciples = self::checkTypes($publishingPrinciples, $types);
- $this->review = $review;
+ $this->publishingPrinciples = $publishingPrinciples;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getFileFormat()
+ public function getEducationalLevel()
{
- return $this->fileFormat;
+ return $this->educationalLevel;
}
/**
- * @param string $fileFormat
+ * @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 setFileFormat($fileFormat)
+ public function setEducationalLevel($educationalLevel)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $fileFormat = self::checkTypes($fileFormat, $types);
+ $educationalLevel = self::checkTypes($educationalLevel, $types);
- $this->fileFormat = $fileFormat;
+ $this->educationalLevel = $educationalLevel;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Rating|string
*/
- public function getText()
+ public function getContentRating()
{
- return $this->text;
+ return $this->contentRating;
}
/**
- * @param string $text
+ * @param \OpenActive\Models\SchemaOrg\Rating|string $contentRating
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setText($text)
+ public function setContentRating($contentRating)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Rating",
"string",
];
- $text = self::checkTypes($text, $types);
+ $contentRating = self::checkTypes($contentRating, $types);
- $this->text = $text;
+ $this->contentRating = $contentRating;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
- public function getTranslator()
+ public function getOffers()
{
- return $this->translator;
+ return $this->offers;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $translator
+ * @param \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string $offers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTranslator($translator)
+ public function setOffers($offers)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\Offer",
"string",
];
- $translator = self::checkTypes($translator, $types);
+ $offers = self::checkTypes($offers, $types);
- $this->translator = $translator;
+ $this->offers = $offers;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getAward()
+ public function getIsBasedOnUrl()
{
- return $this->award;
+ return $this->isBasedOnUrl;
}
/**
- * @param string $award
+ * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\CreativeWork|string $isBasedOnUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAward($award)
+ public function setIsBasedOnUrl($isBasedOnUrl)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Product",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $award = self::checkTypes($award, $types);
+ $isBasedOnUrl = self::checkTypes($isBasedOnUrl, $types);
- $this->award = $award;
+ $this->isBasedOnUrl = $isBasedOnUrl;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getAssesses()
+ public function getContributor()
{
- return $this->assesses;
+ return $this->contributor;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $contributor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssesses($assesses)
+ public function setContributor($contributor)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $assesses = self::checkTypes($assesses, $types);
+ $contributor = self::checkTypes($contributor, $types);
- $this->assesses = $assesses;
+ $this->contributor = $contributor;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getCopyrightNotice()
+ public function getSpatial()
{
- return $this->copyrightNotice;
+ return $this->spatial;
}
/**
- * @param string $copyrightNotice
+ * @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 setCopyrightNotice($copyrightNotice)
+ public function setSpatial($spatial)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $copyrightNotice = self::checkTypes($copyrightNotice, $types);
+ $spatial = self::checkTypes($spatial, $types);
- $this->copyrightNotice = $copyrightNotice;
+ $this->spatial = $spatial;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getSchemaVersion()
+ public function getInLanguage()
{
- return $this->schemaVersion;
+ return $this->inLanguage;
}
/**
- * @param string $schemaVersion
+ * @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 setSchemaVersion($schemaVersion)
+ public function setInLanguage($inLanguage)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $schemaVersion = self::checkTypes($schemaVersion, $types);
+ $inLanguage = self::checkTypes($inLanguage, $types);
- $this->schemaVersion = $schemaVersion;
+ $this->inLanguage = $inLanguage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getCountryOfOrigin()
+ public function getHasPart()
{
- return $this->countryOfOrigin;
+ return $this->hasPart;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin
+ * @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 setCountryOfOrigin($countryOfOrigin)
+ public function setHasPart($hasPart)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
+ $hasPart = self::checkTypes($hasPart, $types);
- $this->countryOfOrigin = $countryOfOrigin;
+ $this->hasPart = $hasPart;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string
*/
- public function getPattern()
+ public function getAwards()
{
- return $this->pattern;
+ return $this->awards;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $pattern
+ * @param string $awards
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPattern($pattern)
+ public function setAwards($awards)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $pattern = self::checkTypes($pattern, $types);
+ $awards = self::checkTypes($awards, $types);
- $this->pattern = $pattern;
+ $this->awards = $awards;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\WebPage|string
*/
- public function getAccountablePerson()
+ public function getArchivedAt()
{
- return $this->accountablePerson;
+ return $this->archivedAt;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $accountablePerson
+ * @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 setAccountablePerson($accountablePerson)
+ public function setArchivedAt($archivedAt)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\WebPage",
"string",
];
- $accountablePerson = self::checkTypes($accountablePerson, $types);
+ $archivedAt = self::checkTypes($archivedAt, $types);
- $this->accountablePerson = $accountablePerson;
+ $this->archivedAt = $archivedAt;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Grant|string
+ * @return string
*/
- public function getFunding()
+ public function getCopyrightNotice()
{
- return $this->funding;
+ return $this->copyrightNotice;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Grant|string $funding
+ * @param string $copyrightNotice
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFunding($funding)
+ public function setCopyrightNotice($copyrightNotice)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Grant",
"string",
];
- $funding = self::checkTypes($funding, $types);
+ $copyrightNotice = self::checkTypes($copyrightNotice, $types);
- $this->funding = $funding;
+ $this->copyrightNotice = $copyrightNotice;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getEducationalUse()
+ public function getTranslator()
{
- return $this->educationalUse;
+ return $this->translator;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalUse
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $translator
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalUse($educationalUse)
+ public function setTranslator($translator)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $educationalUse = self::checkTypes($educationalUse, $types);
+ $translator = self::checkTypes($translator, $types);
- $this->educationalUse = $educationalUse;
+ $this->translator = $translator;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getGenre()
+ public function getEditor()
{
- return $this->genre;
+ return $this->editor;
}
/**
- * @param string $genre
+ * @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 setGenre($genre)
+ public function setEditor($editor)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $genre = self::checkTypes($genre, $types);
+ $editor = self::checkTypes($editor, $types);
- $this->genre = $genre;
+ $this->editor = $editor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getKeywords()
+ public function getRecordedAt()
{
- return $this->keywords;
+ return $this->recordedAt;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords
+ * @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 setKeywords($keywords)
+ public function setRecordedAt($recordedAt)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $keywords = self::checkTypes($keywords, $types);
+ $recordedAt = self::checkTypes($recordedAt, $types);
- $this->keywords = $keywords;
+ $this->recordedAt = $recordedAt;
}
/**
- * @return string|int|null
+ * @return \OpenActive\Models\SchemaOrg\Country|string
*/
- public function getPosition()
+ public function getCountryOfOrigin()
{
- return $this->position;
+ return $this->countryOfOrigin;
}
/**
- * @param string|int|null $position
+ * @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 setPosition($position)
+ public function setCountryOfOrigin($countryOfOrigin)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Country",
"string",
- "int",
- "null",
];
- $position = self::checkTypes($position, $types);
+ $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
- $this->position = $position;
+ $this->countryOfOrigin = $countryOfOrigin;
}
/**
- * @return string
+ * @return Date|null
*/
- public function getAccessibilityHazard()
+ public function getSdDatePublished()
{
- return $this->accessibilityHazard;
+ return $this->sdDatePublished;
}
/**
- * @param string $accessibilityHazard
+ * @param Date|null $sdDatePublished
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessibilityHazard($accessibilityHazard)
+ public function setSdDatePublished($sdDatePublished)
{
$types = [
- "string",
+ "Date",
+ "null",
];
- $accessibilityHazard = self::checkTypes($accessibilityHazard, $types);
+ $sdDatePublished = self::checkTypes($sdDatePublished, $types);
- $this->accessibilityHazard = $accessibilityHazard;
+ $this->sdDatePublished = $sdDatePublished;
}
/**
* @return string
*/
- public function getAlternativeHeadline()
+ public function getInteractivityType()
{
- return $this->alternativeHeadline;
+ return $this->interactivityType;
}
/**
- * @param string $alternativeHeadline
+ * @param string $interactivityType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlternativeHeadline($alternativeHeadline)
+ public function setInteractivityType($interactivityType)
{
$types = [
"string",
];
- $alternativeHeadline = self::checkTypes($alternativeHeadline, $types);
+ $interactivityType = self::checkTypes($interactivityType, $types);
- $this->alternativeHeadline = $alternativeHeadline;
+ $this->interactivityType = $interactivityType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Audience|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getAudience()
+ public function getKeywords()
{
- return $this->audience;
+ return $this->keywords;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $keywords
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAudience($audience)
+ public function setKeywords($keywords)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Audience",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $audience = self::checkTypes($audience, $types);
+ $keywords = self::checkTypes($keywords, $types);
- $this->audience = $audience;
+ $this->keywords = $keywords;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return string|\OpenActive\Models\SchemaOrg\Product
*/
- public function getOffers()
+ public function getMaterial()
{
- return $this->offers;
+ return $this->material;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @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 setOffers($offers)
+ public function setMaterial($material)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
"string",
+ "\OpenActive\Models\SchemaOrg\Product",
];
- $offers = self::checkTypes($offers, $types);
+ $material = self::checkTypes($material, $types);
- $this->offers = $offers;
+ $this->material = $material;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getLocationCreated()
+ public function getCopyrightHolder()
{
- return $this->locationCreated;
+ return $this->copyrightHolder;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $locationCreated
+ * @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 setLocationCreated($locationCreated)
+ public function setCopyrightHolder($copyrightHolder)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $locationCreated = self::checkTypes($locationCreated, $types);
+ $copyrightHolder = self::checkTypes($copyrightHolder, $types);
- $this->locationCreated = $locationCreated;
+ $this->copyrightHolder = $copyrightHolder;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string
*/
- public function getAssociatedMedia()
+ public function getEducationalAlignment()
{
- return $this->associatedMedia;
+ return $this->educationalAlignment;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaObject|string $associatedMedia
+ * @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 setAssociatedMedia($associatedMedia)
+ public function setEducationalAlignment($educationalAlignment)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaObject",
+ "\OpenActive\Models\SchemaOrg\AlignmentObject",
"string",
];
- $associatedMedia = self::checkTypes($associatedMedia, $types);
+ $educationalAlignment = self::checkTypes($educationalAlignment, $types);
- $this->associatedMedia = $associatedMedia;
+ $this->educationalAlignment = $educationalAlignment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- public function getMaterialExtent()
+ public function getAggregateRating()
{
- return $this->materialExtent;
+ return $this->aggregateRating;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $materialExtent
+ * @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 setMaterialExtent($materialExtent)
+ public function setAggregateRating($aggregateRating)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\AggregateRating",
"string",
];
- $materialExtent = self::checkTypes($materialExtent, $types);
+ $aggregateRating = self::checkTypes($aggregateRating, $types);
- $this->materialExtent = $materialExtent;
+ $this->aggregateRating = $aggregateRating;
}
/**
@@ -1832,348 +1899,319 @@ public function setMainEntity($mainEntity)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getCopyrightHolder()
+ public function getUsageInfo()
{
- return $this->copyrightHolder;
+ return $this->usageInfo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $copyrightHolder
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $usageInfo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCopyrightHolder($copyrightHolder)
+ public function setUsageInfo($usageInfo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $copyrightHolder = self::checkTypes($copyrightHolder, $types);
+ $usageInfo = self::checkTypes($usageInfo, $types);
- $this->copyrightHolder = $copyrightHolder;
+ $this->usageInfo = $usageInfo;
}
/**
- * @return string
+ * @return DateTime|null
*/
- public function getAwards()
+ public function getContentReferenceTime()
{
- return $this->awards;
+ return $this->contentReferenceTime;
}
/**
- * @param string $awards
+ * @param DateTime|null $contentReferenceTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAwards($awards)
+ public function setContentReferenceTime($contentReferenceTime)
{
$types = [
- "string",
+ "DateTime",
+ "null",
];
- $awards = self::checkTypes($awards, $types);
+ $contentReferenceTime = self::checkTypes($contentReferenceTime, $types);
- $this->awards = $awards;
+ $this->contentReferenceTime = $contentReferenceTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getContentLocation()
+ public function getSdLicense()
{
- return $this->contentLocation;
+ return $this->sdLicense;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $contentLocation
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $sdLicense
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContentLocation($contentLocation)
+ public function setSdLicense($sdLicense)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $contentLocation = self::checkTypes($contentLocation, $types);
+ $sdLicense = self::checkTypes($sdLicense, $types);
- $this->contentLocation = $contentLocation;
+ $this->sdLicense = $sdLicense;
}
/**
- * @return Date|null
+ * @return Date|DateTime|null
*/
- public function getSdDatePublished()
+ public function getExpires()
{
- return $this->sdDatePublished;
+ return $this->expires;
}
/**
- * @param Date|null $sdDatePublished
+ * @param Date|DateTime|null $expires
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSdDatePublished($sdDatePublished)
+ public function setExpires($expires)
{
$types = [
"Date",
+ "DateTime",
"null",
];
- $sdDatePublished = self::checkTypes($sdDatePublished, $types);
+ $expires = self::checkTypes($expires, $types);
- $this->sdDatePublished = $sdDatePublished;
+ $this->expires = $expires;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getProducer()
+ public function getAcquireLicensePage()
{
- return $this->producer;
+ return $this->acquireLicensePage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $producer
+ * @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 setProducer($producer)
+ public function setAcquireLicensePage($acquireLicensePage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $producer = self::checkTypes($producer, $types);
+ $acquireLicensePage = self::checkTypes($acquireLicensePage, $types);
- $this->producer = $producer;
+ $this->acquireLicensePage = $acquireLicensePage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string
*/
- public function getSpatial()
+ public function getInteractionStatistic()
{
- return $this->spatial;
+ return $this->interactionStatistic;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $spatial
+ * @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 setSpatial($spatial)
+ public function setInteractionStatistic($interactionStatistic)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\InteractionCounter",
"string",
];
- $spatial = self::checkTypes($spatial, $types);
+ $interactionStatistic = self::checkTypes($interactionStatistic, $types);
- $this->spatial = $spatial;
+ $this->interactionStatistic = $interactionStatistic;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getPublisher()
+ public function getFileFormat()
{
- return $this->publisher;
+ return $this->fileFormat;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $publisher
+ * @param string $fileFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPublisher($publisher)
+ public function setFileFormat($fileFormat)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $publisher = self::checkTypes($publisher, $types);
+ $fileFormat = self::checkTypes($fileFormat, $types);
- $this->publisher = $publisher;
+ $this->fileFormat = $fileFormat;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getSourceOrganization()
+ public function getMaintainer()
{
- return $this->sourceOrganization;
+ return $this->maintainer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $sourceOrganization
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $maintainer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSourceOrganization($sourceOrganization)
+ public function setMaintainer($maintainer)
{
$types = [
"\OpenActive\Models\SchemaOrg\Organization",
- "string",
- ];
-
- $sourceOrganization = self::checkTypes($sourceOrganization, $types);
-
- $this->sourceOrganization = $sourceOrganization;
- }
-
- /**
- * @return \OpenActive\Models\SchemaOrg\Person|string
- */
- public function getCharacter()
- {
- return $this->character;
- }
-
- /**
- * @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 setCharacter($character)
- {
- $types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $character = self::checkTypes($character, $types);
+ $maintainer = self::checkTypes($maintainer, $types);
- $this->character = $character;
+ $this->maintainer = $maintainer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getFunder()
+ public function getIsBasedOn()
{
- return $this->funder;
+ return $this->isBasedOn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
+ * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\CreativeWork|string $isBasedOn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFunder($funder)
+ public function setIsBasedOn($isBasedOn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Product",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $funder = self::checkTypes($funder, $types);
+ $isBasedOn = self::checkTypes($isBasedOn, $types);
- $this->funder = $funder;
+ $this->isBasedOn = $isBasedOn;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string
*/
- public function getExampleOfWork()
+ public function getAlternativeHeadline()
{
- return $this->exampleOfWork;
+ return $this->alternativeHeadline;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $exampleOfWork
+ * @param string $alternativeHeadline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExampleOfWork($exampleOfWork)
+ public function setAlternativeHeadline($alternativeHeadline)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $exampleOfWork = self::checkTypes($exampleOfWork, $types);
+ $alternativeHeadline = self::checkTypes($alternativeHeadline, $types);
- $this->exampleOfWork = $exampleOfWork;
+ $this->alternativeHeadline = $alternativeHeadline;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return int|null
*/
- public function getUsageInfo()
+ public function getCommentCount()
{
- return $this->usageInfo;
+ return $this->commentCount;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $usageInfo
+ * @param int|null $commentCount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUsageInfo($usageInfo)
+ public function setCommentCount($commentCount)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
- "string",
+ "int",
+ "null",
];
- $usageInfo = self::checkTypes($usageInfo, $types);
+ $commentCount = self::checkTypes($commentCount, $types);
- $this->usageInfo = $usageInfo;
+ $this->commentCount = $commentCount;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getProvider()
+ public function getDiscussionUrl()
{
- return $this->provider;
+ return $this->discussionUrl;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @param string $discussionUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProvider($provider)
+ public function setDiscussionUrl($discussionUrl)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $provider = self::checkTypes($provider, $types);
+ $discussionUrl = self::checkTypes($discussionUrl, $types);
- $this->provider = $provider;
+ $this->discussionUrl = $discussionUrl;
}
/**
* @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getSdPublisher()
+ public function getSponsor()
{
- return $this->sdPublisher;
+ return $this->sponsor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sdPublisher
+ * @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 setSdPublisher($sdPublisher)
+ public function setSponsor($sponsor)
{
$types = [
"\OpenActive\Models\SchemaOrg\Organization",
@@ -2181,1689 +2219,1686 @@ public function setSdPublisher($sdPublisher)
"string",
];
- $sdPublisher = self::checkTypes($sdPublisher, $types);
+ $sponsor = self::checkTypes($sponsor, $types);
- $this->sdPublisher = $sdPublisher;
+ $this->sponsor = $sponsor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Comment|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getComment()
+ public function getIsPartOf()
{
- return $this->comment;
+ return $this->isPartOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Comment|string $comment
+ * @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 setComment($comment)
+ public function setIsPartOf($isPartOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Comment",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $comment = self::checkTypes($comment, $types);
+ $isPartOf = self::checkTypes($isPartOf, $types);
- $this->comment = $comment;
+ $this->isPartOf = $isPartOf;
}
/**
* @return string
*/
- public function getAccessibilityFeature()
+ public function getTypicalAgeRange()
{
- return $this->accessibilityFeature;
+ return $this->typicalAgeRange;
}
/**
- * @param string $accessibilityFeature
+ * @param string $typicalAgeRange
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessibilityFeature($accessibilityFeature)
+ public function setTypicalAgeRange($typicalAgeRange)
{
$types = [
"string",
];
- $accessibilityFeature = self::checkTypes($accessibilityFeature, $types);
+ $typicalAgeRange = self::checkTypes($typicalAgeRange, $types);
- $this->accessibilityFeature = $accessibilityFeature;
+ $this->typicalAgeRange = $typicalAgeRange;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string
+ * @return string
*/
- public function getPublication()
+ public function getSchemaVersion()
{
- return $this->publication;
+ return $this->schemaVersion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PublicationEvent|string $publication
+ * @param string $schemaVersion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPublication($publication)
+ public function setSchemaVersion($schemaVersion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PublicationEvent",
"string",
];
- $publication = self::checkTypes($publication, $types);
+ $schemaVersion = self::checkTypes($schemaVersion, $types);
- $this->publication = $publication;
+ $this->schemaVersion = $schemaVersion;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getTranslationOfWork()
+ public function getSourceOrganization()
{
- return $this->translationOfWork;
+ return $this->sourceOrganization;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $translationOfWork
+ * @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 setTranslationOfWork($translationOfWork)
+ public function setSourceOrganization($sourceOrganization)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $translationOfWork = self::checkTypes($translationOfWork, $types);
+ $sourceOrganization = self::checkTypes($sourceOrganization, $types);
- $this->translationOfWork = $translationOfWork;
+ $this->sourceOrganization = $sourceOrganization;
}
/**
- * @return string
+ * @return string|Number|null
*/
- public function getInteractivityType()
+ public function getVersion()
{
- return $this->interactivityType;
+ return $this->version;
}
/**
- * @param string $interactivityType
+ * @param string|Number|null $version
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInteractivityType($interactivityType)
+ public function setVersion($version)
{
$types = [
"string",
+ "Number",
+ "null",
];
- $interactivityType = self::checkTypes($interactivityType, $types);
+ $version = self::checkTypes($version, $types);
- $this->interactivityType = $interactivityType;
+ $this->version = $version;
}
/**
- * @return int|null
+ * @return Date|DateTime|null
*/
- public function getCommentCount()
+ public function getDatePublished()
{
- return $this->commentCount;
+ return $this->datePublished;
}
/**
- * @param int|null $commentCount
+ * @param Date|DateTime|null $datePublished
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCommentCount($commentCount)
+ public function setDatePublished($datePublished)
{
$types = [
- "int",
+ "Date",
+ "DateTime",
"null",
];
- $commentCount = self::checkTypes($commentCount, $types);
+ $datePublished = self::checkTypes($datePublished, $types);
- $this->commentCount = $commentCount;
+ $this->datePublished = $datePublished;
}
/**
- * @return string
+ * @return Date|DateTime|null
*/
- public function getAccessMode()
+ public function getDateCreated()
{
- return $this->accessMode;
+ return $this->dateCreated;
}
/**
- * @param string $accessMode
+ * @param Date|DateTime|null $dateCreated
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessMode($accessMode)
+ public function setDateCreated($dateCreated)
{
$types = [
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $accessMode = self::checkTypes($accessMode, $types);
+ $dateCreated = self::checkTypes($dateCreated, $types);
- $this->accessMode = $accessMode;
+ $this->dateCreated = $dateCreated;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string
*/
- public function getAggregateRating()
+ public function getPublication()
{
- return $this->aggregateRating;
+ return $this->publication;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating
+ * @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 setAggregateRating($aggregateRating)
+ public function setPublication($publication)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AggregateRating",
+ "\OpenActive\Models\SchemaOrg\PublicationEvent",
"string",
];
- $aggregateRating = self::checkTypes($aggregateRating, $types);
+ $publication = self::checkTypes($publication, $types);
- $this->aggregateRating = $aggregateRating;
+ $this->publication = $publication;
}
/**
- * @return DateInterval|string|null
+ * @return string
*/
- public function getTimeRequired()
+ public function getAward()
{
- return $this->timeRequired;
+ return $this->award;
}
/**
- * @param DateInterval|string|null $timeRequired
+ * @param string $award
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTimeRequired($timeRequired)
+ public function setAward($award)
{
$types = [
- "DateInterval",
"string",
- "null",
];
- $timeRequired = self::checkTypes($timeRequired, $types);
+ $award = self::checkTypes($award, $types);
- $this->timeRequired = $timeRequired;
+ $this->award = $award;
}
/**
* @return string
*/
- public function getTypicalAgeRange()
+ public function getAccessibilityAPI()
{
- return $this->typicalAgeRange;
+ return $this->accessibilityAPI;
}
/**
- * @param string $typicalAgeRange
+ * @param string $accessibilityAPI
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTypicalAgeRange($typicalAgeRange)
+ public function setAccessibilityAPI($accessibilityAPI)
{
$types = [
"string",
];
- $typicalAgeRange = self::checkTypes($typicalAgeRange, $types);
+ $accessibilityAPI = self::checkTypes($accessibilityAPI, $types);
- $this->typicalAgeRange = $typicalAgeRange;
+ $this->accessibilityAPI = $accessibilityAPI;
}
/**
- * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getInteractionStatistic()
+ public function getExampleOfWork()
{
- return $this->interactionStatistic;
+ return $this->exampleOfWork;
}
/**
- * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic
+ * @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 setInteractionStatistic($interactionStatistic)
+ public function setExampleOfWork($exampleOfWork)
{
$types = [
- "\OpenActive\Models\SchemaOrg\InteractionCounter",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $interactionStatistic = self::checkTypes($interactionStatistic, $types);
+ $exampleOfWork = self::checkTypes($exampleOfWork, $types);
- $this->interactionStatistic = $interactionStatistic;
+ $this->exampleOfWork = $exampleOfWork;
}
/**
- * @return Number|null
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getCopyrightYear()
+ public function getTranslationOfWork()
{
- return $this->copyrightYear;
+ return $this->translationOfWork;
}
/**
- * @param Number|null $copyrightYear
+ * @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 setCopyrightYear($copyrightYear)
+ public function setTranslationOfWork($translationOfWork)
{
$types = [
- "Number",
- "null",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $copyrightYear = self::checkTypes($copyrightYear, $types);
+ $translationOfWork = self::checkTypes($translationOfWork, $types);
- $this->copyrightYear = $copyrightYear;
+ $this->translationOfWork = $translationOfWork;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\Product
+ * @return string
*/
- public function getIsBasedOn()
+ public function getAccessMode()
{
- return $this->isBasedOn;
+ return $this->accessMode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\Product $isBasedOn
+ * @param string $accessMode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsBasedOn($isBasedOn)
+ public function setAccessMode($accessMode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
- "\OpenActive\Models\SchemaOrg\Product",
];
- $isBasedOn = self::checkTypes($isBasedOn, $types);
+ $accessMode = self::checkTypes($accessMode, $types);
- $this->isBasedOn = $isBasedOn;
+ $this->accessMode = $accessMode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getWorkExample()
+ public function getAuthor()
{
- return $this->workExample;
+ return $this->author;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workExample
+ * @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 setWorkExample($workExample)
+ public function setAuthor($author)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $workExample = self::checkTypes($workExample, $types);
+ $author = self::checkTypes($author, $types);
- $this->workExample = $workExample;
+ $this->author = $author;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPublishingPrinciples()
+ public function getProducer()
{
- return $this->publishingPrinciples;
+ return $this->producer;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $publishingPrinciples
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $producer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPublishingPrinciples($publishingPrinciples)
+ public function setProducer($producer)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $publishingPrinciples = self::checkTypes($publishingPrinciples, $types);
+ $producer = self::checkTypes($producer, $types);
- $this->publishingPrinciples = $publishingPrinciples;
+ $this->producer = $producer;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDiscussionUrl()
+ public function getFunder()
{
- return $this->discussionUrl;
+ return $this->funder;
}
/**
- * @param string $discussionUrl
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDiscussionUrl($discussionUrl)
+ public function setFunder($funder)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $discussionUrl = self::checkTypes($discussionUrl, $types);
+ $funder = self::checkTypes($funder, $types);
- $this->discussionUrl = $discussionUrl;
+ $this->funder = $funder;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getReleasedEvent()
+ public function getAbout()
{
- return $this->releasedEvent;
+ return $this->about;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PublicationEvent|string $releasedEvent
+ * @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 setReleasedEvent($releasedEvent)
+ public function setAbout($about)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PublicationEvent",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $releasedEvent = self::checkTypes($releasedEvent, $types);
+ $about = self::checkTypes($about, $types);
- $this->releasedEvent = $releasedEvent;
+ $this->about = $about;
}
/**
- * @return Date|DateTime|null
+ * @return string
*/
- public function getDateCreated()
+ public function getAccessibilityFeature()
{
- return $this->dateCreated;
+ return $this->accessibilityFeature;
}
/**
- * @param Date|DateTime|null $dateCreated
+ * @param string $accessibilityFeature
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateCreated($dateCreated)
+ public function setAccessibilityFeature($accessibilityFeature)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
];
- $dateCreated = self::checkTypes($dateCreated, $types);
+ $accessibilityFeature = self::checkTypes($accessibilityFeature, $types);
- $this->dateCreated = $dateCreated;
+ $this->accessibilityFeature = $accessibilityFeature;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return bool|null
*/
- public function getWorkTranslation()
+ public function getIsFamilyFriendly()
{
- return $this->workTranslation;
+ return $this->isFamilyFriendly;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workTranslation
+ * @param bool|null $isFamilyFriendly
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWorkTranslation($workTranslation)
+ public function setIsFamilyFriendly($isFamilyFriendly)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
- "string",
+ "bool",
+ "null",
];
- $workTranslation = self::checkTypes($workTranslation, $types);
+ $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types);
- $this->workTranslation = $workTranslation;
+ $this->isFamilyFriendly = $isFamilyFriendly;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getEditor()
+ public function getCitation()
{
- return $this->editor;
+ return $this->citation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $editor
+ * @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 setEditor($editor)
+ public function setCitation($citation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $editor = self::checkTypes($editor, $types);
+ $citation = self::checkTypes($citation, $types);
- $this->editor = $editor;
+ $this->citation = $citation;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getCreditText()
+ public function getSdPublisher()
{
- return $this->creditText;
+ return $this->sdPublisher;
}
/**
- * @param string $creditText
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $sdPublisher
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCreditText($creditText)
+ public function setSdPublisher($sdPublisher)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $creditText = self::checkTypes($creditText, $types);
+ $sdPublisher = self::checkTypes($sdPublisher, $types);
- $this->creditText = $creditText;
+ $this->sdPublisher = $sdPublisher;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- public function getRecordedAt()
+ public function getAudio()
{
- return $this->recordedAt;
+ return $this->audio;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $recordedAt
+ * @param \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\MusicRecording|string $audio
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecordedAt($recordedAt)
+ public function setAudio($audio)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\AudioObject",
+ "\OpenActive\Models\SchemaOrg\Clip",
+ "\OpenActive\Models\SchemaOrg\MusicRecording",
"string",
];
- $recordedAt = self::checkTypes($recordedAt, $types);
+ $audio = self::checkTypes($audio, $types);
- $this->recordedAt = $recordedAt;
+ $this->audio = $audio;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getEditEIDR()
+ public function getMaterialExtent()
{
- return $this->editEIDR;
+ return $this->materialExtent;
}
/**
- * @param string $editEIDR
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $materialExtent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEditEIDR($editEIDR)
+ public function setMaterialExtent($materialExtent)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $editEIDR = self::checkTypes($editEIDR, $types);
+ $materialExtent = self::checkTypes($materialExtent, $types);
- $this->editEIDR = $editEIDR;
+ $this->materialExtent = $materialExtent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\ItemList|string
*/
- public function getAuthor()
+ public function getAccessModeSufficient()
{
- return $this->author;
+ return $this->accessModeSufficient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $author
+ * @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 setAuthor($author)
+ public function setAccessModeSufficient($accessModeSufficient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\ItemList",
"string",
];
- $author = self::checkTypes($author, $types);
+ $accessModeSufficient = self::checkTypes($accessModeSufficient, $types);
- $this->author = $author;
+ $this->accessModeSufficient = $accessModeSufficient;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Comment|string
*/
- public function getDateModified()
+ public function getComment()
{
- return $this->dateModified;
+ return $this->comment;
}
/**
- * @param Date|DateTime|null $dateModified
+ * @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 setDateModified($dateModified)
+ public function setComment($comment)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Comment",
+ "string",
];
- $dateModified = self::checkTypes($dateModified, $types);
+ $comment = self::checkTypes($comment, $types);
- $this->dateModified = $dateModified;
+ $this->comment = $comment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- public function getSponsor()
+ public function getAssociatedMedia()
{
- return $this->sponsor;
+ return $this->associatedMedia;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
+ * @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 setSponsor($sponsor)
+ public function setAssociatedMedia($associatedMedia)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
];
- $sponsor = self::checkTypes($sponsor, $types);
+ $associatedMedia = self::checkTypes($associatedMedia, $types);
- $this->sponsor = $sponsor;
+ $this->associatedMedia = $associatedMedia;
}
/**
* @return string
*/
- public function getAccessibilitySummary()
+ public function getText()
{
- return $this->accessibilitySummary;
+ return $this->text;
}
/**
- * @param string $accessibilitySummary
+ * @param string $text
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessibilitySummary($accessibilitySummary)
+ public function setText($text)
{
$types = [
"string",
];
- $accessibilitySummary = self::checkTypes($accessibilitySummary, $types);
+ $text = self::checkTypes($text, $types);
- $this->accessibilitySummary = $accessibilitySummary;
+ $this->text = $text;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getEncodingFormat()
+ public function getPublisherImprint()
{
- return $this->encodingFormat;
+ return $this->publisherImprint;
}
/**
- * @param string $encodingFormat
+ * @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 setEncodingFormat($encodingFormat)
+ public function setPublisherImprint($publisherImprint)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $encodingFormat = self::checkTypes($encodingFormat, $types);
+ $publisherImprint = self::checkTypes($publisherImprint, $types);
- $this->encodingFormat = $encodingFormat;
+ $this->publisherImprint = $publisherImprint;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getMaintainer()
+ public function getCharacter()
{
- return $this->maintainer;
+ return $this->character;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $maintainer
+ * @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 setMaintainer($maintainer)
+ public function setCharacter($character)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $maintainer = self::checkTypes($maintainer, $types);
+ $character = self::checkTypes($character, $types);
- $this->maintainer = $maintainer;
+ $this->character = $character;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getEducationalAlignment()
+ public function getSpatialCoverage()
{
- return $this->educationalAlignment;
+ return $this->spatialCoverage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AlignmentObject|string $educationalAlignment
+ * @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 setEducationalAlignment($educationalAlignment)
+ public function setSpatialCoverage($spatialCoverage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AlignmentObject",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $educationalAlignment = self::checkTypes($educationalAlignment, $types);
+ $spatialCoverage = self::checkTypes($spatialCoverage, $types);
- $this->educationalAlignment = $educationalAlignment;
+ $this->spatialCoverage = $spatialCoverage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string
*/
- public function getAcquireLicensePage()
+ public function getAbstract()
{
- return $this->acquireLicensePage;
+ return $this->abstract;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $acquireLicensePage
+ * @param string $abstract
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAcquireLicensePage($acquireLicensePage)
+ public function setAbstract($abstract)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $acquireLicensePage = self::checkTypes($acquireLicensePage, $types);
+ $abstract = self::checkTypes($abstract, $types);
- $this->acquireLicensePage = $acquireLicensePage;
+ $this->abstract = $abstract;
}
/**
- * @return bool|null
+ * @return DateTime|string|null
*/
- public function getIsAccessibleForFree()
+ public function getTemporalCoverage()
{
- return $this->isAccessibleForFree;
+ return $this->temporalCoverage;
}
/**
- * @param bool|null $isAccessibleForFree
+ * @param DateTime|string|null $temporalCoverage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsAccessibleForFree($isAccessibleForFree)
+ public function setTemporalCoverage($temporalCoverage)
{
$types = [
- "bool",
+ "DateTime",
+ "string",
"null",
];
- $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types);
+ $temporalCoverage = self::checkTypes($temporalCoverage, $types);
- $this->isAccessibleForFree = $isAccessibleForFree;
+ $this->temporalCoverage = $temporalCoverage;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Grant|string
*/
- public function getDatePublished()
+ public function getFunding()
{
- return $this->datePublished;
+ return $this->funding;
}
/**
- * @param Date|DateTime|null $datePublished
+ * @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 setDatePublished($datePublished)
+ public function setFunding($funding)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Grant",
+ "string",
];
- $datePublished = self::checkTypes($datePublished, $types);
+ $funding = self::checkTypes($funding, $types);
- $this->datePublished = $datePublished;
+ $this->funding = $funding;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getSpatialCoverage()
+ public function getAssesses()
{
- return $this->spatialCoverage;
+ return $this->assesses;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $spatialCoverage
+ * @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 setSpatialCoverage($spatialCoverage)
+ public function setAssesses($assesses)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $spatialCoverage = self::checkTypes($spatialCoverage, $types);
+ $assesses = self::checkTypes($assesses, $types);
- $this->spatialCoverage = $spatialCoverage;
+ $this->assesses = $assesses;
}
/**
* @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getSdLicense()
+ public function getWorkExample()
{
- return $this->sdLicense;
+ return $this->workExample;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $sdLicense
+ * @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 setSdLicense($sdLicense)
+ public function setWorkExample($workExample)
{
$types = [
"\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $sdLicense = self::checkTypes($sdLicense, $types);
+ $workExample = self::checkTypes($workExample, $types);
- $this->sdLicense = $sdLicense;
+ $this->workExample = $workExample;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getConditionsOfAccess()
+ public function getLocationCreated()
{
- return $this->conditionsOfAccess;
+ return $this->locationCreated;
}
/**
- * @param string $conditionsOfAccess
+ * @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 setConditionsOfAccess($conditionsOfAccess)
+ public function setLocationCreated($locationCreated)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $conditionsOfAccess = self::checkTypes($conditionsOfAccess, $types);
+ $locationCreated = self::checkTypes($locationCreated, $types);
- $this->conditionsOfAccess = $conditionsOfAccess;
+ $this->locationCreated = $locationCreated;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CorrectionComment
+ * @return \OpenActive\Models\SchemaOrg\Audience|string
*/
- public function getCorrection()
+ public function getAudience()
{
- return $this->correction;
+ return $this->audience;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CorrectionComment $correction
+ * @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 setCorrection($correction)
+ public function setAudience($audience)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Audience",
"string",
- "\OpenActive\Models\SchemaOrg\CorrectionComment",
];
- $correction = self::checkTypes($correction, $types);
+ $audience = self::checkTypes($audience, $types);
- $this->correction = $correction;
+ $this->audience = $audience;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Rating
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getContentRating()
+ public function getCreator()
{
- return $this->contentRating;
+ return $this->creator;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Rating $contentRating
+ * @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 setContentRating($contentRating)
+ public function setCreator($creator)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "\OpenActive\Models\SchemaOrg\Rating",
];
- $contentRating = self::checkTypes($contentRating, $types);
+ $creator = self::checkTypes($creator, $types);
- $this->contentRating = $contentRating;
+ $this->creator = $creator;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getSize()
+ public function getLearningResourceType()
{
- return $this->size;
+ return $this->learningResourceType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification $size
+ * @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 setSize($size)
+ public function setLearningResourceType($learningResourceType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
- "\OpenActive\Models\SchemaOrg\SizeSpecification",
];
- $size = self::checkTypes($size, $types);
+ $learningResourceType = self::checkTypes($learningResourceType, $types);
- $this->size = $size;
+ $this->learningResourceType = $learningResourceType;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return string
*/
- public function getIsPartOf()
+ public function getCreditText()
{
- return $this->isPartOf;
+ return $this->creditText;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $isPartOf
+ * @param string $creditText
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsPartOf($isPartOf)
+ public function setCreditText($creditText)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $isPartOf = self::checkTypes($isPartOf, $types);
+ $creditText = self::checkTypes($creditText, $types);
- $this->isPartOf = $isPartOf;
+ $this->creditText = $creditText;
}
/**
- * @return DateTime|string|null
+ * @return Number|null
*/
- public function getTemporal()
+ public function getCopyrightYear()
{
- return $this->temporal;
+ return $this->copyrightYear;
}
/**
- * @param DateTime|string|null $temporal
+ * @param Number|null $copyrightYear
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTemporal($temporal)
+ public function setCopyrightYear($copyrightYear)
{
$types = [
- "DateTime",
- "string",
+ "Number",
"null",
];
- $temporal = self::checkTypes($temporal, $types);
+ $copyrightYear = self::checkTypes($copyrightYear, $types);
- $this->temporal = $temporal;
+ $this->copyrightYear = $copyrightYear;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getThumbnailUrl()
+ public function getWorkTranslation()
{
- return $this->thumbnailUrl;
+ return $this->workTranslation;
}
/**
- * @param string $thumbnailUrl
+ * @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 setThumbnailUrl($thumbnailUrl)
+ public function setWorkTranslation($workTranslation)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $thumbnailUrl = self::checkTypes($thumbnailUrl, $types);
+ $workTranslation = self::checkTypes($workTranslation, $types);
- $this->thumbnailUrl = $thumbnailUrl;
+ $this->workTranslation = $workTranslation;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getInLanguage()
+ public function getReviews()
{
- return $this->inLanguage;
+ return $this->reviews;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
+ * @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 setInLanguage($inLanguage)
+ public function setReviews($reviews)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
- "\OpenActive\Models\SchemaOrg\Language",
];
- $inLanguage = self::checkTypes($inLanguage, $types);
+ $reviews = self::checkTypes($reviews, $types);
- $this->inLanguage = $inLanguage;
+ $this->reviews = $reviews;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string
*/
- public function getLicense()
+ public function getVideo()
{
- return $this->license;
+ return $this->video;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $license
+ * @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 setLicense($license)
+ public function setVideo($video)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Clip",
+ "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $license = self::checkTypes($license, $types);
+ $video = self::checkTypes($video, $types);
- $this->license = $license;
+ $this->video = $video;
}
/**
- * @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 string
*/
- public function getReviews()
+ public function getAccessibilityControl()
{
- return $this->reviews;
+ return $this->accessibilityControl;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $reviews
+ * @param string $accessibilityControl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReviews($reviews)
+ public function setAccessibilityControl($accessibilityControl)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $reviews = self::checkTypes($reviews, $types);
+ $accessibilityControl = self::checkTypes($accessibilityControl, $types);
- $this->reviews = $reviews;
+ $this->accessibilityControl = $accessibilityControl;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getAbout()
+ public function getPattern()
{
- return $this->about;
+ return $this->pattern;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $about
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $pattern
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAbout($about)
+ public function setPattern($pattern)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $about = self::checkTypes($about, $types);
+ $pattern = self::checkTypes($pattern, $types);
- $this->about = $about;
+ $this->pattern = $pattern;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getIsFamilyFriendly()
+ public function getMentions()
{
- return $this->isFamilyFriendly;
+ return $this->mentions;
}
/**
- * @param bool|null $isFamilyFriendly
+ * @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 setIsFamilyFriendly($isFamilyFriendly)
+ public function setMentions($mentions)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "string",
];
- $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types);
+ $mentions = self::checkTypes($mentions, $types);
- $this->isFamilyFriendly = $isFamilyFriendly;
+ $this->mentions = $mentions;
}
/**
* @return string
*/
- public function getHeadline()
+ public function getEditEIDR()
{
- return $this->headline;
+ return $this->editEIDR;
}
/**
- * @param string $headline
+ * @param string $editEIDR
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHeadline($headline)
+ public function setEditEIDR($editEIDR)
{
$types = [
"string",
];
- $headline = self::checkTypes($headline, $types);
+ $editEIDR = self::checkTypes($editEIDR, $types);
- $this->headline = $headline;
+ $this->editEIDR = $editEIDR;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getAccessibilityAPI()
+ public function getTeaches()
{
- return $this->accessibilityAPI;
+ return $this->teaches;
}
/**
- * @param string $accessibilityAPI
+ * @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 setAccessibilityAPI($accessibilityAPI)
+ public function setTeaches($teaches)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $accessibilityAPI = self::checkTypes($accessibilityAPI, $types);
+ $teaches = self::checkTypes($teaches, $types);
- $this->accessibilityAPI = $accessibilityAPI;
+ $this->teaches = $teaches;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return DateInterval|string|null
*/
- public function getPublisherImprint()
+ public function getTimeRequired()
{
- return $this->publisherImprint;
+ return $this->timeRequired;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $publisherImprint
+ * @param DateInterval|string|null $timeRequired
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPublisherImprint($publisherImprint)
+ public function setTimeRequired($timeRequired)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "DateInterval",
"string",
+ "null",
];
- $publisherImprint = self::checkTypes($publisherImprint, $types);
+ $timeRequired = self::checkTypes($timeRequired, $types);
- $this->publisherImprint = $publisherImprint;
+ $this->timeRequired = $timeRequired;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product
+ * @return \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- public function getIsBasedOnUrl()
+ public function getThumbnail()
{
- return $this->isBasedOnUrl;
+ return $this->thumbnail;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product $isBasedOnUrl
+ * @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 setIsBasedOnUrl($isBasedOnUrl)
+ public function setThumbnail($thumbnail)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
- "\OpenActive\Models\SchemaOrg\Product",
];
- $isBasedOnUrl = self::checkTypes($isBasedOnUrl, $types);
+ $thumbnail = self::checkTypes($thumbnail, $types);
- $this->isBasedOnUrl = $isBasedOnUrl;
+ $this->thumbnail = $thumbnail;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @return string
*/
- public function getEncodings()
+ public function getGenre()
{
- return $this->encodings;
+ return $this->genre;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaObject|string $encodings
+ * @param string $genre
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEncodings($encodings)
+ public function setGenre($genre)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
];
- $encodings = self::checkTypes($encodings, $types);
+ $genre = self::checkTypes($genre, $types);
- $this->encodings = $encodings;
+ $this->genre = $genre;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Claim|string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getInterpretedAsClaim()
+ public function getCreativeWorkStatus()
{
- return $this->interpretedAsClaim;
+ return $this->creativeWorkStatus;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Claim|string $interpretedAsClaim
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $creativeWorkStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInterpretedAsClaim($interpretedAsClaim)
+ public function setCreativeWorkStatus($creativeWorkStatus)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Claim",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types);
+ $creativeWorkStatus = self::checkTypes($creativeWorkStatus, $types);
- $this->interpretedAsClaim = $interpretedAsClaim;
+ $this->creativeWorkStatus = $creativeWorkStatus;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getAccessibilityControl()
+ public function getProvider()
{
- return $this->accessibilityControl;
+ return $this->provider;
}
/**
- * @param string $accessibilityControl
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $provider
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessibilityControl($accessibilityControl)
+ public function setProvider($provider)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $accessibilityControl = self::checkTypes($accessibilityControl, $types);
+ $provider = self::checkTypes($provider, $types);
- $this->accessibilityControl = $accessibilityControl;
+ $this->provider = $provider;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getCitation()
+ public function getReview()
{
- return $this->citation;
+ return $this->review;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $citation
+ * @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 setCitation($citation)
+ public function setReview($review)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $citation = self::checkTypes($citation, $types);
+ $review = self::checkTypes($review, $types);
- $this->citation = $citation;
+ $this->review = $review;
}
/**
- * @return string|Number|null
+ * @return string|\OpenActive\Models\SchemaOrg\CorrectionComment
*/
- public function getVersion()
+ public function getCorrection()
{
- return $this->version;
+ return $this->correction;
}
/**
- * @param string|Number|null $version
+ * @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 setVersion($version)
+ public function setCorrection($correction)
{
$types = [
"string",
- "Number",
- "null",
+ "\OpenActive\Models\SchemaOrg\CorrectionComment",
];
- $version = self::checkTypes($version, $types);
+ $correction = self::checkTypes($correction, $types);
- $this->version = $version;
+ $this->correction = $correction;
}
/**
- * @return \OpenActive\Models\SchemaOrg\WebPage|string
+ * @return \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- public function getArchivedAt()
+ public function getEncodings()
{
- return $this->archivedAt;
+ return $this->encodings;
}
/**
- * @param \OpenActive\Models\SchemaOrg\WebPage|string $archivedAt
+ * @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 setArchivedAt($archivedAt)
+ public function setEncodings($encodings)
{
$types = [
- "\OpenActive\Models\SchemaOrg\WebPage",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
];
- $archivedAt = self::checkTypes($archivedAt, $types);
+ $encodings = self::checkTypes($encodings, $types);
- $this->archivedAt = $archivedAt;
+ $this->encodings = $encodings;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\Claim|string
*/
- public function getLearningResourceType()
+ public function getInterpretedAsClaim()
{
- return $this->learningResourceType;
+ return $this->interpretedAsClaim;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType
+ * @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 setLearningResourceType($learningResourceType)
+ public function setInterpretedAsClaim($interpretedAsClaim)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\Claim",
"string",
];
- $learningResourceType = self::checkTypes($learningResourceType, $types);
+ $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types);
- $this->learningResourceType = $learningResourceType;
+ $this->interpretedAsClaim = $interpretedAsClaim;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @return string
*/
- public function getEncoding()
+ public function getThumbnailUrl()
{
- return $this->encoding;
+ return $this->thumbnailUrl;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaObject|string $encoding
+ * @param string $thumbnailUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEncoding($encoding)
+ public function setThumbnailUrl($thumbnailUrl)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
];
- $encoding = self::checkTypes($encoding, $types);
+ $thumbnailUrl = self::checkTypes($thumbnailUrl, $types);
- $this->encoding = $encoding;
+ $this->thumbnailUrl = $thumbnailUrl;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getAudio()
+ public function getPublisher()
{
- return $this->audio;
+ return $this->publisher;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|string $audio
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $publisher
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAudio($audio)
+ public function setPublisher($publisher)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AudioObject",
- "\OpenActive\Models\SchemaOrg\MusicRecording",
- "\OpenActive\Models\SchemaOrg\Clip",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $audio = self::checkTypes($audio, $types);
+ $publisher = self::checkTypes($publisher, $types);
- $this->audio = $audio;
+ $this->publisher = $publisher;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return string
*/
- public function getMentions()
+ public function getAccessibilitySummary()
{
- return $this->mentions;
+ return $this->accessibilitySummary;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $mentions
+ * @param string $accessibilitySummary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMentions($mentions)
+ public function setAccessibilitySummary($accessibilitySummary)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $mentions = self::checkTypes($mentions, $types);
+ $accessibilitySummary = self::checkTypes($accessibilitySummary, $types);
- $this->mentions = $mentions;
+ $this->accessibilitySummary = $accessibilitySummary;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ItemList|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getAccessModeSufficient()
+ public function getContentLocation()
{
- return $this->accessModeSufficient;
+ return $this->contentLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ItemList|string $accessModeSufficient
+ * @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 setAccessModeSufficient($accessModeSufficient)
+ public function setContentLocation($contentLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ItemList",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $accessModeSufficient = self::checkTypes($accessModeSufficient, $types);
+ $contentLocation = self::checkTypes($contentLocation, $types);
- $this->accessModeSufficient = $accessModeSufficient;
+ $this->contentLocation = $contentLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string
*/
- public function getHasPart()
+ public function getConditionsOfAccess()
{
- return $this->hasPart;
+ return $this->conditionsOfAccess;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $hasPart
+ * @param string $conditionsOfAccess
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasPart($hasPart)
+ public function setConditionsOfAccess($conditionsOfAccess)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $hasPart = self::checkTypes($hasPart, $types);
+ $conditionsOfAccess = self::checkTypes($conditionsOfAccess, $types);
- $this->hasPart = $hasPart;
+ $this->conditionsOfAccess = $conditionsOfAccess;
}
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getTemporalCoverage()
+ public function getAccountablePerson()
{
- return $this->temporalCoverage;
+ return $this->accountablePerson;
}
/**
- * @param DateTime|string|null $temporalCoverage
+ * @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 setTemporalCoverage($temporalCoverage)
+ public function setAccountablePerson($accountablePerson)
{
$types = [
- "DateTime",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "null",
];
- $temporalCoverage = self::checkTypes($temporalCoverage, $types);
+ $accountablePerson = self::checkTypes($accountablePerson, $types);
- $this->temporalCoverage = $temporalCoverage;
+ $this->accountablePerson = $accountablePerson;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string
*/
- public function getContributor()
+ public function getReleasedEvent()
{
- return $this->contributor;
+ return $this->releasedEvent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $contributor
+ * @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 setContributor($contributor)
+ public function setReleasedEvent($releasedEvent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\PublicationEvent",
"string",
];
- $contributor = self::checkTypes($contributor, $types);
+ $releasedEvent = self::checkTypes($releasedEvent, $types);
- $this->contributor = $contributor;
+ $this->releasedEvent = $releasedEvent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string
+ * @return string|\OpenActive\Models\SchemaOrg\SizeSpecification|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getVideo()
+ public function getSize()
{
- return $this->video;
+ return $this->size;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string $video
+ * @param string|\OpenActive\Models\SchemaOrg\SizeSpecification|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm $size
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVideo($video)
+ public function setSize($size)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Clip",
- "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
+ "\OpenActive\Models\SchemaOrg\SizeSpecification",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $video = self::checkTypes($video, $types);
+ $size = self::checkTypes($size, $types);
- $this->video = $video;
+ $this->size = $size;
}
}
diff --git a/src/Models/SchemaOrg/CreativeWorkSeason.php b/src/Models/SchemaOrg/CreativeWorkSeason.php
index e094eb1e..9f4b835e 100644
--- a/src/Models/SchemaOrg/CreativeWorkSeason.php
+++ b/src/Models/SchemaOrg/CreativeWorkSeason.php
@@ -17,386 +17,386 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "partOfSeries" => "partOfSeries",
+ "episodes" => "episodes",
"startDate" => "startDate",
- "director" => "director",
- "actor" => "actor",
+ "seasonNumber" => "seasonNumber",
"trailer" => "trailer",
- "endDate" => "endDate",
- "episodes" => "episodes",
- "numberOfEpisodes" => "numberOfEpisodes",
- "partOfSeries" => "partOfSeries",
"productionCompany" => "productionCompany",
- "seasonNumber" => "seasonNumber",
"episode" => "episode",
+ "director" => "director",
+ "numberOfEpisodes" => "numberOfEpisodes",
+ "actor" => "actor",
+ "endDate" => "endDate",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * The series to which this episode or season belongs.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- protected $startDate;
+ protected $partOfSeries;
/**
- * 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 episode of a TV/radio series or season.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Episode|string
*/
- protected $director;
+ protected $episodes;
/**
- * 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 start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var Date|DateTime|null
*/
- protected $actor;
+ protected $startDate;
/**
- * The trailer of a movie or tv/radio series, season, episode, etc.
+ * Position of the season within an ordered group of seasons.
*
*
- * @var \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @var string|int|null
*/
- protected $trailer;
+ protected $seasonNumber;
/**
- * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * The trailer of a movie or TV/radio series, season, episode, etc.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- protected $endDate;
+ protected $trailer;
/**
- * 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.
+ * An episode of a TV, radio or game media within a series or season.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\Episode|string
*/
- protected $numberOfEpisodes;
+ protected $episode;
/**
- * The series to which this episode or season belongs.
+ * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $partOfSeries;
+ protected $director;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * The number of episodes in this season or series.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var int|null
*/
- protected $productionCompany;
+ protected $numberOfEpisodes;
/**
- * Position of the season within an ordered group of seasons.
+ * 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|int|null
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $seasonNumber;
+ protected $actor;
/**
- * An episode of a tv, radio or game media within a series or season.
+ * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var \OpenActive\Models\SchemaOrg\Episode|string
+ * @var Date|DateTime|null
*/
- protected $episode;
+ protected $endDate;
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- public function getStartDate()
+ public function getPartOfSeries()
{
- return $this->startDate;
+ return $this->partOfSeries;
}
/**
- * @param Date|DateTime|null $startDate
+ * @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 setStartDate($startDate)
+ public function setPartOfSeries($partOfSeries)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeries",
+ "string",
];
- $startDate = self::checkTypes($startDate, $types);
+ $partOfSeries = self::checkTypes($partOfSeries, $types);
- $this->startDate = $startDate;
+ $this->partOfSeries = $partOfSeries;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Episode|string
*/
- public function getDirector()
+ public function getEpisodes()
{
- return $this->director;
+ return $this->episodes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @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 setDirector($director)
+ public function setEpisodes($episodes)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Episode",
"string",
];
- $director = self::checkTypes($director, $types);
+ $episodes = self::checkTypes($episodes, $types);
- $this->director = $director;
+ $this->episodes = $episodes;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return Date|DateTime|null
*/
- public function getActor()
+ public function getStartDate()
{
- return $this->actor;
+ return $this->startDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @param Date|DateTime|null $startDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActor($actor)
+ public function setStartDate($startDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $actor = self::checkTypes($actor, $types);
+ $startDate = self::checkTypes($startDate, $types);
- $this->actor = $actor;
+ $this->startDate = $startDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @return string|int|null
*/
- public function getTrailer()
+ public function getSeasonNumber()
{
- return $this->trailer;
+ return $this->seasonNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
+ * @param string|int|null $seasonNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTrailer($trailer)
+ public function setSeasonNumber($seasonNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
+ "int",
+ "null",
];
- $trailer = self::checkTypes($trailer, $types);
+ $seasonNumber = self::checkTypes($seasonNumber, $types);
- $this->trailer = $trailer;
+ $this->seasonNumber = $seasonNumber;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- public function getEndDate()
+ public function getTrailer()
{
- return $this->endDate;
+ return $this->trailer;
}
/**
- * @param Date|DateTime|null $endDate
+ * @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 setEndDate($endDate)
+ public function setTrailer($trailer)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\VideoObject",
+ "string",
];
- $endDate = self::checkTypes($endDate, $types);
+ $trailer = self::checkTypes($trailer, $types);
- $this->endDate = $endDate;
+ $this->trailer = $trailer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Episode|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getEpisodes()
+ public function getProductionCompany()
{
- return $this->episodes;
+ return $this->productionCompany;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEpisodes($episodes)
+ public function setProductionCompany($productionCompany)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Episode",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $episodes = self::checkTypes($episodes, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->episodes = $episodes;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Episode|string
*/
- public function getNumberOfEpisodes()
+ public function getEpisode()
{
- return $this->numberOfEpisodes;
+ return $this->episode;
}
/**
- * @param int|null $numberOfEpisodes
+ * @param \OpenActive\Models\SchemaOrg\Episode|string $episode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfEpisodes($numberOfEpisodes)
+ public function setEpisode($episode)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Episode",
+ "string",
];
- $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types);
+ $episode = self::checkTypes($episode, $types);
- $this->numberOfEpisodes = $numberOfEpisodes;
+ $this->episode = $episode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPartOfSeries()
+ public function getDirector()
{
- return $this->partOfSeries;
+ return $this->director;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries
+ * @param \OpenActive\Models\SchemaOrg\Person|string $director
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPartOfSeries($partOfSeries)
+ public function setDirector($director)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeries",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $partOfSeries = self::checkTypes($partOfSeries, $types);
+ $director = self::checkTypes($director, $types);
- $this->partOfSeries = $partOfSeries;
+ $this->director = $director;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return int|null
*/
- public function getProductionCompany()
+ public function getNumberOfEpisodes()
{
- return $this->productionCompany;
+ return $this->numberOfEpisodes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @param int|null $numberOfEpisodes
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionCompany($productionCompany)
+ public function setNumberOfEpisodes($numberOfEpisodes)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "int",
+ "null",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types);
- $this->productionCompany = $productionCompany;
+ $this->numberOfEpisodes = $numberOfEpisodes;
}
/**
- * @return string|int|null
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getSeasonNumber()
+ public function getActor()
{
- return $this->seasonNumber;
+ return $this->actor;
}
/**
- * @param string|int|null $seasonNumber
+ * @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 setSeasonNumber($seasonNumber)
+ public function setActor($actor)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "int",
- "null",
];
- $seasonNumber = self::checkTypes($seasonNumber, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->seasonNumber = $seasonNumber;
+ $this->actor = $actor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Episode|string
+ * @return Date|DateTime|null
*/
- public function getEpisode()
+ public function getEndDate()
{
- return $this->episode;
+ return $this->endDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Episode|string $episode
+ * @param Date|DateTime|null $endDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEpisode($episode)
+ public function setEndDate($endDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Episode",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $episode = self::checkTypes($episode, $types);
+ $endDate = self::checkTypes($endDate, $types);
- $this->episode = $episode;
+ $this->endDate = $endDate;
}
}
diff --git a/src/Models/SchemaOrg/CreativeWorkSeries.php b/src/Models/SchemaOrg/CreativeWorkSeries.php
index 42570c15..3d946200 100644
--- a/src/Models/SchemaOrg/CreativeWorkSeries.php
+++ b/src/Models/SchemaOrg/CreativeWorkSeries.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"startDate" => "startDate",
- "endDate" => "endDate",
"issn" => "issn",
+ "endDate" => "endDate",
];
return array_merge(parent::fieldList(), $fields);
@@ -34,20 +34,20 @@ public static function fieldList() {
protected $startDate;
/**
- * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * 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 Date|DateTime|null
+ * @var string
*/
- protected $endDate;
+ protected $issn;
/**
- * The International Standard Serial Number (ISSN) that identifies this serial publication. You can repeat this property to identify different formats of, or the linking ISSN (ISSN-L) for, this serial publication.
+ * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var string
+ * @var Date|DateTime|null
*/
- protected $issn;
+ protected $endDate;
/**
* @return Date|DateTime|null
@@ -76,53 +76,53 @@ public function setStartDate($startDate)
}
/**
- * @return Date|DateTime|null
+ * @return string
*/
- public function getEndDate()
+ public function getIssn()
{
- return $this->endDate;
+ return $this->issn;
}
/**
- * @param Date|DateTime|null $endDate
+ * @param string $issn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndDate($endDate)
+ public function setIssn($issn)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
];
- $endDate = self::checkTypes($endDate, $types);
+ $issn = self::checkTypes($issn, $types);
- $this->endDate = $endDate;
+ $this->issn = $issn;
}
/**
- * @return string
+ * @return Date|DateTime|null
*/
- public function getIssn()
+ public function getEndDate()
{
- return $this->issn;
+ return $this->endDate;
}
/**
- * @param string $issn
+ * @param Date|DateTime|null $endDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIssn($issn)
+ public function setEndDate($endDate)
{
$types = [
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $issn = self::checkTypes($issn, $types);
+ $endDate = self::checkTypes($endDate, $types);
- $this->issn = $issn;
+ $this->endDate = $endDate;
}
}
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..723d6d3b 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 \OpenActive\Models\SchemaOrg\DefinedTerm|string|\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 \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ protected $measurementMethod;
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
public function getMeasurementTechnique()
{
@@ -57,14 +64,17 @@ public function getMeasurementTechnique()
}
/**
- * @param string $measurementTechnique
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string|\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 = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
];
$measurementTechnique = self::checkTypes($measurementTechnique, $types);
@@ -97,4 +107,31 @@ public function setDataset($dataset)
$this->dataset = $dataset;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ public function getMeasurementMethod()
+ {
+ return $this->measurementMethod;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementMethod
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMeasurementMethod($measurementMethod)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "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..886e5e2e 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 \OpenActive\Models\SchemaOrg\DefinedTerm|string|\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 \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ protected $measurementMethod;
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
public function getMeasurementTechnique()
{
@@ -48,14 +55,17 @@ public function getMeasurementTechnique()
}
/**
- * @param string $measurementTechnique
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string|\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 = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
];
$measurementTechnique = self::checkTypes($measurementTechnique, $types);
@@ -63,4 +73,31 @@ public function setMeasurementTechnique($measurementTechnique)
$this->measurementTechnique = $measurementTechnique;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ public function getMeasurementMethod()
+ {
+ return $this->measurementMethod;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementMethod
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMeasurementMethod($measurementMethod)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "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..8427ce5f 100644
--- a/src/Models/SchemaOrg/DataFeed.php
+++ b/src/Models/SchemaOrg/DataFeed.php
@@ -24,7 +24,7 @@ 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
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..9d3d65ff 100644
--- a/src/Models/SchemaOrg/Dataset.php
+++ b/src/Models/SchemaOrg/Dataset.php
@@ -17,13 +17,14 @@ public static function getType()
public static function fieldList() {
$fields = [
- "catalog" => "catalog",
+ "datasetTimeInterval" => "datasetTimeInterval",
"includedDataCatalog" => "includedDataCatalog",
"variableMeasured" => "variableMeasured",
"measurementTechnique" => "measurementTechnique",
- "datasetTimeInterval" => "datasetTimeInterval",
- "distribution" => "distribution",
+ "catalog" => "catalog",
"issn" => "issn",
+ "measurementMethod" => "measurementMethod",
+ "distribution" => "distribution",
"includedInDataCatalog" => "includedInDataCatalog",
];
@@ -31,12 +32,12 @@ public static function fieldList() {
}
/**
- * A data catalog which contains this dataset.
+ * The range of temporal applicability of a dataset, e.g. for a 2011 census dataset, the year 2011 (in ISO 8601 time interval format).
*
*
- * @var \OpenActive\Models\SchemaOrg\DataCatalog|string
+ * @var DateTime|null
*/
- protected $catalog;
+ protected $datasetTimeInterval;
/**
* A data catalog which contains this dataset (this property was previously 'catalog', preferred name is now 'includedInDataCatalog').
@@ -47,52 +48,58 @@ public static function fieldList() {
protected $includedDataCatalog;
/**
- * 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.
+ * 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|string
+ * @var \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Models\SchemaOrg\PropertyValue|null
*/
protected $variableMeasured;
/**
- * A technique or technology used in a [[Dataset]] (or [[DataDownload]], [[DataCatalog]]),
- * corresponding to the method used for measuring the corresponding variable(s) (described using [[variableMeasured]]). This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but rather as a high level summary for dataset discovery.
+ * 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 \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
protected $measurementTechnique;
/**
- * The range of temporal applicability of a dataset, e.g. for a 2011 census dataset, the year 2011 (in ISO 8601 time interval format).
+ * A data catalog which contains this dataset.
*
*
- * @var DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\DataCatalog|string
*/
- protected $datasetTimeInterval;
+ protected $catalog;
/**
- * A downloadable form of this dataset, at a specific location, in a specific format.
+ * The International Standard Serial Number (ISSN) that identifies this serial publication. You can repeat this property to identify different formats of, or the linking ISSN (ISSN-L) for, this serial publication.
*
*
- * @var \OpenActive\Models\SchemaOrg\DataDownload|string
+ * @var string
*/
- protected $distribution;
+ protected $issn;
/**
- * The International Standard Serial Number (ISSN) that identifies this serial publication. You can repeat this property to identify different formats of, or the linking ISSN (ISSN-L) for, this serial publication.
+ * A subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]].
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
- protected $issn;
+ protected $measurementMethod;
+
+ /**
+ * A downloadable form of this dataset, at a specific location, in a specific format. This property can be repeated if different variations are available. There is no expectation that different downloadable distributions must contain exactly equivalent information (see also [DCAT](https://www.w3.org/TR/vocab-dcat-3/#Class:Distribution) on this point). Different distributions might include or exclude different subsets of the entire dataset, for example.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\DataDownload|string
+ */
+ protected $distribution;
/**
* A data catalog which contains this dataset.
@@ -103,28 +110,28 @@ public static function fieldList() {
protected $includedInDataCatalog;
/**
- * @return \OpenActive\Models\SchemaOrg\DataCatalog|string
+ * @return DateTime|null
*/
- public function getCatalog()
+ public function getDatasetTimeInterval()
{
- return $this->catalog;
+ return $this->datasetTimeInterval;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DataCatalog|string $catalog
+ * @param DateTime|null $datasetTimeInterval
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCatalog($catalog)
+ public function setDatasetTimeInterval($datasetTimeInterval)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DataCatalog",
- "string",
+ "DateTime",
+ "null",
];
- $catalog = self::checkTypes($catalog, $types);
+ $datasetTimeInterval = self::checkTypes($datasetTimeInterval, $types);
- $this->catalog = $catalog;
+ $this->datasetTimeInterval = $datasetTimeInterval;
}
/**
@@ -153,7 +160,7 @@ public function setIncludedDataCatalog($includedDataCatalog)
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @return \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Models\SchemaOrg\PropertyValue|null
*/
public function getVariableMeasured()
{
@@ -161,15 +168,18 @@ public function getVariableMeasured()
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $variableMeasured
+ * @param \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Models\SchemaOrg\PropertyValue|null $variableMeasured
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setVariableMeasured($variableMeasured)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "\OpenActive\Enums\PropertyEnumeration",
+ "\OpenActive\Models\SchemaOrg\StatisticalVariable",
"string",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "null",
];
$variableMeasured = self::checkTypes($variableMeasured, $types);
@@ -178,7 +188,7 @@ public function setVariableMeasured($variableMeasured)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
public function getMeasurementTechnique()
{
@@ -186,14 +196,17 @@ public function getMeasurementTechnique()
}
/**
- * @param string $measurementTechnique
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string|\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 = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
];
$measurementTechnique = self::checkTypes($measurementTechnique, $types);
@@ -202,77 +215,104 @@ public function setMeasurementTechnique($measurementTechnique)
}
/**
- * @return DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\DataCatalog|string
*/
- public function getDatasetTimeInterval()
+ public function getCatalog()
{
- return $this->datasetTimeInterval;
+ return $this->catalog;
}
/**
- * @param DateTime|null $datasetTimeInterval
+ * @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 setDatasetTimeInterval($datasetTimeInterval)
+ public function setCatalog($catalog)
{
$types = [
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\DataCatalog",
+ "string",
];
- $datasetTimeInterval = self::checkTypes($datasetTimeInterval, $types);
+ $catalog = self::checkTypes($catalog, $types);
- $this->datasetTimeInterval = $datasetTimeInterval;
+ $this->catalog = $catalog;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DataDownload|string
+ * @return string
*/
- public function getDistribution()
+ public function getIssn()
{
- return $this->distribution;
+ return $this->issn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DataDownload|string $distribution
+ * @param string $issn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDistribution($distribution)
+ public function setIssn($issn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DataDownload",
"string",
];
- $distribution = self::checkTypes($distribution, $types);
+ $issn = self::checkTypes($issn, $types);
- $this->distribution = $distribution;
+ $this->issn = $issn;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
- public function getIssn()
+ public function getMeasurementMethod()
{
- return $this->issn;
+ return $this->measurementMethod;
}
/**
- * @param string $issn
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIssn($issn)
+ public function setMeasurementMethod($measurementMethod)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
];
- $issn = self::checkTypes($issn, $types);
+ $measurementMethod = self::checkTypes($measurementMethod, $types);
- $this->issn = $issn;
+ $this->measurementMethod = $measurementMethod;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\DataDownload|string
+ */
+ public function getDistribution()
+ {
+ return $this->distribution;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\DataDownload|string $distribution
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setDistribution($distribution)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\DataDownload",
+ "string",
+ ];
+
+ $distribution = self::checkTypes($distribution, $types);
+
+ $this->distribution = $distribution;
}
/**
diff --git a/src/Models/SchemaOrg/DatedMoneySpecification.php b/src/Models/SchemaOrg/DatedMoneySpecification.php
index 4c29ff17..562a29d8 100644
--- a/src/Models/SchemaOrg/DatedMoneySpecification.php
+++ b/src/Models/SchemaOrg/DatedMoneySpecification.php
@@ -17,87 +17,85 @@ public static function getType()
public static function fieldList() {
$fields = [
- "startDate" => "startDate",
- "endDate" => "endDate",
"currency" => "currency",
+ "startDate" => "startDate",
"amount" => "amount",
+ "endDate" => "endDate",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".
*
*
- * @var Date|DateTime|null
+ * @var string
*/
- protected $startDate;
+ protected $currency;
/**
- * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
* @var Date|DateTime|null
*/
- protected $endDate;
+ protected $startDate;
/**
- * 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.
+ * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var Date|DateTime|null
*/
- protected $amount;
+ protected $endDate;
/**
- * @return Date|DateTime|null
+ * @return string
*/
- public function getStartDate()
+ public function getCurrency()
{
- return $this->startDate;
+ return $this->currency;
}
/**
- * @param Date|DateTime|null $startDate
+ * @param string $currency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartDate($startDate)
+ public function setCurrency($currency)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
];
- $startDate = self::checkTypes($startDate, $types);
+ $currency = self::checkTypes($currency, $types);
- $this->startDate = $startDate;
+ $this->currency = $currency;
}
/**
* @return Date|DateTime|null
*/
- public function getEndDate()
+ public function getStartDate()
{
- return $this->endDate;
+ return $this->startDate;
}
/**
- * @param Date|DateTime|null $endDate
+ * @param Date|DateTime|null $startDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndDate($endDate)
+ public function setStartDate($startDate)
{
$types = [
"Date",
@@ -105,60 +103,62 @@ public function setEndDate($endDate)
"null",
];
- $endDate = self::checkTypes($endDate, $types);
+ $startDate = self::checkTypes($startDate, $types);
- $this->endDate = $endDate;
+ $this->startDate = $startDate;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- public function getCurrency()
+ public function getAmount()
{
- return $this->currency;
+ return $this->amount;
}
/**
- * @param string $currency
+ * @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 setCurrency($currency)
+ public function setAmount($amount)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
+ "null",
];
- $currency = self::checkTypes($currency, $types);
+ $amount = self::checkTypes($amount, $types);
- $this->currency = $currency;
+ $this->amount = $amount;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return Date|DateTime|null
*/
- public function getAmount()
+ public function getEndDate()
{
- return $this->amount;
+ return $this->endDate;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount
+ * @param Date|DateTime|null $endDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAmount($amount)
+ public function setEndDate($endDate)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
+ "Date",
+ "DateTime",
"null",
];
- $amount = self::checkTypes($amount, $types);
+ $endDate = self::checkTypes($endDate, $types);
- $this->amount = $amount;
+ $this->endDate = $endDate;
}
}
diff --git a/src/Models/SchemaOrg/DefinedRegion.php b/src/Models/SchemaOrg/DefinedRegion.php
index ffbf2a32..6f6791e6 100644
--- a/src/Models/SchemaOrg/DefinedRegion.php
+++ b/src/Models/SchemaOrg/DefinedRegion.php
@@ -18,10 +18,10 @@ public static function getType()
public static function fieldList() {
$fields = [
"addressCountry" => "addressCountry",
- "addressRegion" => "addressRegion",
- "postalCodeRange" => "postalCodeRange",
- "postalCodePrefix" => "postalCodePrefix",
"postalCode" => "postalCode",
+ "postalCodePrefix" => "postalCodePrefix",
+ "postalCodeRange" => "postalCodeRange",
+ "addressRegion" => "addressRegion",
];
return array_merge(parent::fieldList(), $fields);
@@ -36,36 +36,36 @@ public static function fieldList() {
protected $addressCountry;
/**
- * The region in which the locality is, and which is in the country. For example, California or another appropriate first-level [Administrative division](https://en.wikipedia.org/wiki/List_of_administrative_divisions_by_country)
+ * The postal code. For example, 94043.
*
*
* @var string
*/
- protected $addressRegion;
+ protected $postalCode;
/**
- * A defined range of postal codes.
+ * A defined range of postal codes indicated by a common textual prefix. Used for non-numeric systems such as UK.
*
*
- * @var \OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification|string
+ * @var string
*/
- protected $postalCodeRange;
+ protected $postalCodePrefix;
/**
- * A defined range of postal codes indicated by a common textual prefix. Used for non-numeric systems such as UK.
+ * A defined range of postal codes.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification|string
*/
- protected $postalCodePrefix;
+ protected $postalCodeRange;
/**
- * 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
@@ -95,98 +95,98 @@ public function setAddressCountry($addressCountry)
/**
* @return string
*/
- public function getAddressRegion()
+ public function getPostalCode()
{
- return $this->addressRegion;
+ return $this->postalCode;
}
/**
- * @param string $addressRegion
+ * @param string $postalCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAddressRegion($addressRegion)
+ public function setPostalCode($postalCode)
{
$types = [
"string",
];
- $addressRegion = self::checkTypes($addressRegion, $types);
+ $postalCode = self::checkTypes($postalCode, $types);
- $this->addressRegion = $addressRegion;
+ $this->postalCode = $postalCode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification|string
+ * @return string
*/
- public function getPostalCodeRange()
+ public function getPostalCodePrefix()
{
- return $this->postalCodeRange;
+ return $this->postalCodePrefix;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification|string $postalCodeRange
+ * @param string $postalCodePrefix
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostalCodeRange($postalCodeRange)
+ public function setPostalCodePrefix($postalCodePrefix)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification",
"string",
];
- $postalCodeRange = self::checkTypes($postalCodeRange, $types);
+ $postalCodePrefix = self::checkTypes($postalCodePrefix, $types);
- $this->postalCodeRange = $postalCodeRange;
+ $this->postalCodePrefix = $postalCodePrefix;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification|string
*/
- public function getPostalCodePrefix()
+ public function getPostalCodeRange()
{
- return $this->postalCodePrefix;
+ return $this->postalCodeRange;
}
/**
- * @param string $postalCodePrefix
+ * @param \OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification|string $postalCodeRange
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostalCodePrefix($postalCodePrefix)
+ public function setPostalCodeRange($postalCodeRange)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification",
"string",
];
- $postalCodePrefix = self::checkTypes($postalCodePrefix, $types);
+ $postalCodeRange = self::checkTypes($postalCodeRange, $types);
- $this->postalCodePrefix = $postalCodePrefix;
+ $this->postalCodeRange = $postalCodeRange;
}
/**
* @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..6105057b 100644
--- a/src/Models/SchemaOrg/DefinedTerm.php
+++ b/src/Models/SchemaOrg/DefinedTerm.php
@@ -17,76 +17,76 @@ public static function getType()
public static function fieldList() {
$fields = [
- "termCode" => "termCode",
"inDefinedTermSet" => "inDefinedTermSet",
+ "termCode" => "termCode",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A code that identifies this [[DefinedTerm]] within a [[DefinedTermSet]]
+ * A [[DefinedTermSet]] that contains this term.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTermSet|string
*/
- protected $termCode;
+ protected $inDefinedTermSet;
/**
- * A [[DefinedTermSet]] that contains this term.
+ * A code that identifies this [[DefinedTerm]] within a [[DefinedTermSet]]
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTermSet
+ * @var string
*/
- protected $inDefinedTermSet;
+ protected $termCode;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTermSet|string
*/
- public function getTermCode()
+ public function getInDefinedTermSet()
{
- return $this->termCode;
+ return $this->inDefinedTermSet;
}
/**
- * @param string $termCode
+ * @param \OpenActive\Models\SchemaOrg\DefinedTermSet|string $inDefinedTermSet
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTermCode($termCode)
+ public function setInDefinedTermSet($inDefinedTermSet)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTermSet",
"string",
];
- $termCode = self::checkTypes($termCode, $types);
+ $inDefinedTermSet = self::checkTypes($inDefinedTermSet, $types);
- $this->termCode = $termCode;
+ $this->inDefinedTermSet = $inDefinedTermSet;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTermSet
+ * @return string
*/
- public function getInDefinedTermSet()
+ public function getTermCode()
{
- return $this->inDefinedTermSet;
+ return $this->termCode;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTermSet $inDefinedTermSet
+ * @param string $termCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInDefinedTermSet($inDefinedTermSet)
+ public function setTermCode($termCode)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTermSet",
];
- $inDefinedTermSet = self::checkTypes($inDefinedTermSet, $types);
+ $termCode = self::checkTypes($termCode, $types);
- $this->inDefinedTermSet = $inDefinedTermSet;
+ $this->termCode = $termCode;
}
}
diff --git a/src/Models/SchemaOrg/DeliveryChargeSpecification.php b/src/Models/SchemaOrg/DeliveryChargeSpecification.php
index fa5ca7f7..8b221312 100644
--- a/src/Models/SchemaOrg/DeliveryChargeSpecification.php
+++ b/src/Models/SchemaOrg/DeliveryChargeSpecification.php
@@ -17,21 +17,29 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "appliesToDeliveryMethod" => "appliesToDeliveryMethod",
"ineligibleRegion" => "ineligibleRegion",
"eligibleRegion" => "eligibleRegion",
"areaServed" => "areaServed",
- "appliesToDeliveryMethod" => "appliesToDeliveryMethod",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The delivery method(s) to which the delivery charge or payment charge specification applies.
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ */
+ protected $appliesToDeliveryMethod;
+
/**
* The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is 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
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
protected $ineligibleRegion;
@@ -48,20 +56,37 @@ public static function fieldList() {
* 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 string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
protected $areaServed;
/**
- * The delivery method(s) to which the delivery charge or payment charge specification applies.
- *
- *
- * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
*/
- protected $appliesToDeliveryMethod;
+ public function getAppliesToDeliveryMethod()
+ {
+ return $this->appliesToDeliveryMethod;
+ }
+
+ /**
+ * @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 setAppliesToDeliveryMethod($appliesToDeliveryMethod)
+ {
+ $types = [
+ "\OpenActive\Enums\SchemaOrg\DeliveryMethod",
+ "null",
+ ];
+
+ $appliesToDeliveryMethod = self::checkTypes($appliesToDeliveryMethod, $types);
+
+ $this->appliesToDeliveryMethod = $appliesToDeliveryMethod;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
public function getIneligibleRegion()
{
@@ -69,15 +94,15 @@ public function getIneligibleRegion()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
+ * @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 setIneligibleRegion($ineligibleRegion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
+ "\OpenActive\Models\SchemaOrg\Place",
"\OpenActive\Models\SchemaOrg\GeoShape",
];
@@ -113,7 +138,7 @@ 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|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
public function getAreaServed()
{
@@ -121,17 +146,17 @@ public function getAreaServed()
}
/**
- * @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|\OpenActive\Models\SchemaOrg\AdministrativeArea $areaServed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAreaServed($areaServed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "\OpenActive\Models\SchemaOrg\GeoShape",
"string",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
];
$areaServed = self::checkTypes($areaServed, $types);
@@ -139,29 +164,4 @@ public function setAreaServed($areaServed)
$this->areaServed = $areaServed;
}
- /**
- * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
- */
- public function getAppliesToDeliveryMethod()
- {
- return $this->appliesToDeliveryMethod;
- }
-
- /**
- * @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 setAppliesToDeliveryMethod($appliesToDeliveryMethod)
- {
- $types = [
- "\OpenActive\Enums\SchemaOrg\DeliveryMethod",
- "null",
- ];
-
- $appliesToDeliveryMethod = self::checkTypes($appliesToDeliveryMethod, $types);
-
- $this->appliesToDeliveryMethod = $appliesToDeliveryMethod;
- }
-
}
diff --git a/src/Models/SchemaOrg/DeliveryEvent.php b/src/Models/SchemaOrg/DeliveryEvent.php
index 2bb6ddc0..7a53ca85 100644
--- a/src/Models/SchemaOrg/DeliveryEvent.php
+++ b/src/Models/SchemaOrg/DeliveryEvent.php
@@ -18,9 +18,9 @@ public static function getType()
public static function fieldList() {
$fields = [
"accessCode" => "accessCode",
- "availableThrough" => "availableThrough",
- "hasDeliveryMethod" => "hasDeliveryMethod",
"availableFrom" => "availableFrom",
+ "hasDeliveryMethod" => "hasDeliveryMethod",
+ "availableThrough" => "availableThrough",
];
return array_merge(parent::fieldList(), $fields);
@@ -35,12 +35,12 @@ public static function fieldList() {
protected $accessCode;
/**
- * After this date, the item will no longer be available for pickup.
+ * When the item is available for pickup from the store, locker, etc.
*
*
* @var DateTime|null
*/
- protected $availableThrough;
+ protected $availableFrom;
/**
* Method used for delivery or shipping.
@@ -51,12 +51,12 @@ public static function fieldList() {
protected $hasDeliveryMethod;
/**
- * When the item is available for pickup from the store, locker, etc.
+ * After this date, the item will no longer be available for pickup.
*
*
* @var DateTime|null
*/
- protected $availableFrom;
+ protected $availableThrough;
/**
* @return string
@@ -85,26 +85,26 @@ public function setAccessCode($accessCode)
/**
* @return DateTime|null
*/
- public function getAvailableThrough()
+ public function getAvailableFrom()
{
- return $this->availableThrough;
+ return $this->availableFrom;
}
/**
- * @param DateTime|null $availableThrough
+ * @param DateTime|null $availableFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableThrough($availableThrough)
+ public function setAvailableFrom($availableFrom)
{
$types = [
"DateTime",
"null",
];
- $availableThrough = self::checkTypes($availableThrough, $types);
+ $availableFrom = self::checkTypes($availableFrom, $types);
- $this->availableThrough = $availableThrough;
+ $this->availableFrom = $availableFrom;
}
/**
@@ -135,26 +135,26 @@ public function setHasDeliveryMethod($hasDeliveryMethod)
/**
* @return DateTime|null
*/
- public function getAvailableFrom()
+ public function getAvailableThrough()
{
- return $this->availableFrom;
+ return $this->availableThrough;
}
/**
- * @param DateTime|null $availableFrom
+ * @param DateTime|null $availableThrough
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableFrom($availableFrom)
+ public function setAvailableThrough($availableThrough)
{
$types = [
"DateTime",
"null",
];
- $availableFrom = self::checkTypes($availableFrom, $types);
+ $availableThrough = self::checkTypes($availableThrough, $types);
- $this->availableFrom = $availableFrom;
+ $this->availableThrough = $availableThrough;
}
}
diff --git a/src/Models/SchemaOrg/DeliveryTimeSettings.php b/src/Models/SchemaOrg/DeliveryTimeSettings.php
index 3347721e..9d48f806 100644
--- a/src/Models/SchemaOrg/DeliveryTimeSettings.php
+++ b/src/Models/SchemaOrg/DeliveryTimeSettings.php
@@ -27,7 +27,7 @@ public static function fieldList() {
}
/**
- * indicates (possibly multiple) shipping destinations. These can be defined in several ways e.g. postalCode ranges.
+ * indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges.
*
*
* @var \OpenActive\Models\SchemaOrg\DefinedRegion|string
diff --git a/src/Models/SchemaOrg/Demand.php b/src/Models/SchemaOrg/Demand.php
index 81f794fd..c1b1e120 100644
--- a/src/Models/SchemaOrg/Demand.php
+++ b/src/Models/SchemaOrg/Demand.php
@@ -17,214 +17,216 @@ public static function getType()
public static function fieldList() {
$fields = [
- "gtin12" => "gtin12",
- "itemOffered" => "itemOffered",
- "mpn" => "mpn",
- "includesObject" => "includesObject",
- "businessFunction" => "businessFunction",
+ "eligibleDuration" => "eligibleDuration",
"itemCondition" => "itemCondition",
- "gtin" => "gtin",
- "eligibleQuantity" => "eligibleQuantity",
- "acceptedPaymentMethod" => "acceptedPaymentMethod",
- "warranty" => "warranty",
+ "gtin12" => "gtin12",
+ "validFrom" => "validFrom",
+ "availableAtOrFrom" => "availableAtOrFrom",
"seller" => "seller",
- "ineligibleRegion" => "ineligibleRegion",
- "deliveryLeadTime" => "deliveryLeadTime",
+ "priceSpecification" => "priceSpecification",
"availableDeliveryMethod" => "availableDeliveryMethod",
- "validFrom" => "validFrom",
+ "includesObject" => "includesObject",
+ "businessFunction" => "businessFunction",
"availabilityEnds" => "availabilityEnds",
- "eligibleRegion" => "eligibleRegion",
- "gtin8" => "gtin8",
- "inventoryLevel" => "inventoryLevel",
+ "availability" => "availability",
"sku" => "sku",
- "advanceBookingRequirement" => "advanceBookingRequirement",
+ "validThrough" => "validThrough",
+ "warranty" => "warranty",
+ "availabilityStarts" => "availabilityStarts",
+ "gtin8" => "gtin8",
+ "gtin13" => "gtin13",
+ "acceptedPaymentMethod" => "acceptedPaymentMethod",
+ "asin" => "asin",
+ "ineligibleRegion" => "ineligibleRegion",
"gtin14" => "gtin14",
+ "eligibleRegion" => "eligibleRegion",
+ "eligibleCustomerType" => "eligibleCustomerType",
+ "itemOffered" => "itemOffered",
"eligibleTransactionVolume" => "eligibleTransactionVolume",
+ "gtin" => "gtin",
+ "deliveryLeadTime" => "deliveryLeadTime",
+ "advanceBookingRequirement" => "advanceBookingRequirement",
+ "mpn" => "mpn",
"areaServed" => "areaServed",
- "eligibleCustomerType" => "eligibleCustomerType",
- "availability" => "availability",
- "gtin13" => "gtin13",
- "validThrough" => "validThrough",
- "priceSpecification" => "priceSpecification",
- "availabilityStarts" => "availabilityStarts",
- "eligibleDuration" => "eligibleDuration",
- "availableAtOrFrom" => "availableAtOrFrom",
+ "inventoryLevel" => "inventoryLevel",
"serialNumber" => "serialNumber",
+ "eligibleQuantity" => "eligibleQuantity",
];
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 duration for which the given offer is valid.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $gtin12;
+ protected $eligibleDuration;
/**
- * An item being offered (or demanded). The transactional nature of the offer or demand is documented using [[businessFunction]], e.g. sell, lease etc. While several common expected types are listed explicitly in this definition, others can be used. Using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
+ * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns.
*
*
- * @var \OpenActive\Models\SchemaOrg\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\OfferItemCondition|null
*/
- protected $itemOffered;
+ protected $itemCondition;
/**
- * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.
+ * 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 $mpn;
+ protected $gtin12;
/**
- * This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]].
+ * The date when the item becomes valid.
*
*
- * @var \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
+ * @var Date|DateTime|null
*/
- protected $includesObject;
+ protected $validFrom;
/**
- * 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 place(s) from which the offer can be obtained (e.g. store locations).
*
*
- * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $businessFunction;
+ protected $availableAtOrFrom;
/**
- * 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.
+ * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
*
*
- * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $itemCondition;
+ protected $seller;
/**
- * 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.
- *
+ * One or more detailed price specifications, indicating the unit price and delivery or payment charges.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $gtin;
+ protected $priceSpecification;
/**
- * 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 delivery method(s) available for this offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
*/
- protected $eligibleQuantity;
+ protected $availableDeliveryMethod;
/**
- * The payment method(s) accepted by seller for this offer.
+ * This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]].
*
*
- * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null
+ * @var \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
*/
- protected $acceptedPaymentMethod;
+ protected $includesObject;
/**
- * The warranty promise(s) included in the offer.
+ * The business function (e.g. sell, lease, repair, dispose) of the offer or component of a bundle (TypeAndQuantityNode). The default is http://purl.org/goodrelations/v1#Sell.
*
*
- * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string
+ * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null
*/
- protected $warranty;
+ protected $businessFunction;
/**
- * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
+ * The end of the availability of the product or service included in the offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var Date|DateTime|string|null
*/
- protected $seller;
+ protected $availabilityEnds;
/**
- * 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 availability of this item—for example In stock, Out of stock, Pre-order, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @var \OpenActive\Enums\SchemaOrg\ItemAvailability|null
*/
- protected $ineligibleRegion;
+ protected $availability;
/**
- * 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 Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string
*/
- protected $deliveryLeadTime;
+ protected $sku;
/**
- * The delivery method(s) available for this offer.
+ * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
*
*
- * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ * @var Date|DateTime|null
*/
- protected $availableDeliveryMethod;
+ protected $validThrough;
/**
- * The date when the item becomes valid.
+ * The warranty promise(s) included in the offer.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string
*/
- protected $validFrom;
+ protected $warranty;
/**
- * The end of the availability of the product or service included in the offer.
+ * The beginning of the availability of the product or service included in the offer.
*
*
* @var Date|DateTime|string|null
*/
- protected $availabilityEnds;
+ protected $availabilityStarts;
/**
- * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]].
- *
+ * 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\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var string
*/
- protected $eligibleRegion;
+ protected $gtin8;
/**
- * The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
+ * The GTIN-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 $gtin8;
+ protected $gtin13;
/**
- * The current approximate inventory level for the item or items.
+ * The payment method(s) accepted by seller for this offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Enums\SchemaOrg\PaymentMethod|\OpenActive\Models\SchemaOrg\LoanOrCredit|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.
+ * 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 $sku;
+ protected $asin;
/**
- * The amount of time that is required between accepting the offer and the actual usage of the resource or service.
+ * 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|string
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- protected $advanceBookingRequirement;
+ protected $ineligibleRegion;
/**
* The GTIN-14 code of the product, or the product to which the offer refers. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
@@ -235,84 +237,89 @@ public static function fieldList() {
protected $gtin14;
/**
- * The transaction volume, in a monetary unit, for which the offer or price specification is valid, e.g. for indicating a minimal purchasing volume, to express free shipping above a certain order volume, or to limit the acceptance of credit cards to purchases to a certain minimal amount.
+ * The 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\PriceSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
*/
- protected $eligibleTransactionVolume;
+ protected $eligibleRegion;
/**
- * The geographic area where a service or offered item is provided.
+ * The type(s) of customers for which the given offer is valid.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null
*/
- protected $areaServed;
+ protected $eligibleCustomerType;
/**
- * The type(s) of customers for which the given offer is valid.
+ * An item being offered (or demanded). The transactional nature of the offer or demand is documented using [[businessFunction]], e.g. sell, lease etc. While several common expected types are listed explicitly in this definition, others can be used. Using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
*
*
- * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
*/
- protected $eligibleCustomerType;
+ protected $itemOffered;
/**
- * The availability of this item—for example In stock, Out of stock, Pre-order, etc.
+ * The transaction volume, in a monetary unit, for which the offer or price specification is valid, e.g. for indicating a minimal purchasing volume, to express free shipping above a certain order volume, or to limit the acceptance of credit cards to purchases to a certain minimal amount.
*
*
- * @var \OpenActive\Enums\SchemaOrg\ItemAvailability|null
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $availability;
+ protected $eligibleTransactionVolume;
/**
- * 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 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 GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) express GTINs as URLs (URIs, IRIs, etc.). Details including regular expression examples can be found in, Section 6 of the GS1 URI Syntax specification; see also [schema.org tracking issue](https://github.com/schemaorg/schemaorg/issues/3156#issuecomment-1209522809) for schema.org-specific discussion. 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.
+ *
+ * Note also that this is a definition for how to include GTINs in Schema.org data, and not a definition of GTINs in general - see the GS1 documentation for authoritative details.
*
*
* @var string
*/
- protected $gtin13;
+ protected $gtin;
/**
- * 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 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 Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $validThrough;
+ protected $deliveryLeadTime;
/**
- * 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 beginning of the availability of the product or service included in the offer.
+ * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.
*
*
- * @var Date|DateTime|string|null
+ * @var string
*/
- protected $availabilityStarts;
+ protected $mpn;
/**
- * The duration for which the given offer is valid.
+ * The geographic area where a service or offered item is provided.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- protected $eligibleDuration;
+ protected $areaServed;
/**
- * The place(s) from which the offer can be obtained (e.g. store locations).
+ * The current approximate inventory level for the item or items.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $availableAtOrFrom;
+ protected $inventoryLevel;
/**
* 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.
@@ -323,376 +330,354 @@ public static function fieldList() {
protected $serialNumber;
/**
- * @return string
- */
- public function getGtin12()
- {
- return $this->gtin12;
- }
-
- /**
- * @param string $gtin12
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * 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
*/
- public function setGtin12($gtin12)
- {
- $types = [
- "string",
- ];
-
- $gtin12 = self::checkTypes($gtin12, $types);
-
- $this->gtin12 = $gtin12;
- }
+ protected $eligibleQuantity;
/**
- * @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 getEligibleDuration()
{
- return $this->itemOffered;
+ return $this->eligibleDuration;
}
/**
- * @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 $eligibleDuration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItemOffered($itemOffered)
+ public function setEligibleDuration($eligibleDuration)
{
$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);
+ $eligibleDuration = self::checkTypes($eligibleDuration, $types);
- $this->itemOffered = $itemOffered;
+ $this->eligibleDuration = $eligibleDuration;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
*/
- public function getMpn()
+ public function getItemCondition()
{
- return $this->mpn;
+ return $this->itemCondition;
}
/**
- * @param string $mpn
+ * @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 setMpn($mpn)
+ public function setItemCondition($itemCondition)
{
$types = [
- "string",
+ "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
+ "null",
];
- $mpn = self::checkTypes($mpn, $types);
+ $itemCondition = self::checkTypes($itemCondition, $types);
- $this->mpn = $mpn;
+ $this->itemCondition = $itemCondition;
}
/**
- * @return \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
+ * @return string
*/
- public function getIncludesObject()
+ public function getGtin12()
{
- return $this->includesObject;
+ return $this->gtin12;
}
/**
- * @param \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string $includesObject
+ * @param string $gtin12
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncludesObject($includesObject)
+ public function setGtin12($gtin12)
{
$types = [
- "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode",
"string",
];
- $includesObject = self::checkTypes($includesObject, $types);
+ $gtin12 = self::checkTypes($gtin12, $types);
- $this->includesObject = $includesObject;
+ $this->gtin12 = $gtin12;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null
+ * @return Date|DateTime|null
*/
- public function getBusinessFunction()
+ public function getValidFrom()
{
- return $this->businessFunction;
+ return $this->validFrom;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\BusinessFunction|null $businessFunction
+ * @param Date|DateTime|null $validFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBusinessFunction($businessFunction)
+ public function setValidFrom($validFrom)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\BusinessFunction",
+ "Date",
+ "DateTime",
"null",
];
- $businessFunction = self::checkTypes($businessFunction, $types);
+ $validFrom = self::checkTypes($validFrom, $types);
- $this->businessFunction = $businessFunction;
+ $this->validFrom = $validFrom;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getItemCondition()
+ public function getAvailableAtOrFrom()
{
- return $this->itemCondition;
+ return $this->availableAtOrFrom;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition
+ * @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 setItemCondition($itemCondition)
+ public function setAvailableAtOrFrom($availableAtOrFrom)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
- "null",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "string",
];
- $itemCondition = self::checkTypes($itemCondition, $types);
+ $availableAtOrFrom = self::checkTypes($availableAtOrFrom, $types);
- $this->itemCondition = $itemCondition;
+ $this->availableAtOrFrom = $availableAtOrFrom;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getGtin()
+ public function getSeller()
{
- return $this->gtin;
+ return $this->seller;
}
/**
- * @param string $gtin
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGtin($gtin)
+ public function setSeller($seller)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $gtin = self::checkTypes($gtin, $types);
+ $seller = self::checkTypes($seller, $types);
- $this->gtin = $gtin;
+ $this->seller = $seller;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- public function getEligibleQuantity()
+ public function getPriceSpecification()
{
- return $this->eligibleQuantity;
+ return $this->priceSpecification;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleQuantity
+ * @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 setEligibleQuantity($eligibleQuantity)
+ public function setPriceSpecification($priceSpecification)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
];
- $eligibleQuantity = self::checkTypes($eligibleQuantity, $types);
+ $priceSpecification = self::checkTypes($priceSpecification, $types);
- $this->eligibleQuantity = $eligibleQuantity;
+ $this->priceSpecification = $priceSpecification;
}
/**
- * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null
+ * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
*/
- public function getAcceptedPaymentMethod()
+ public function getAvailableDeliveryMethod()
{
- return $this->acceptedPaymentMethod;
+ return $this->availableDeliveryMethod;
}
/**
- * @param \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null $acceptedPaymentMethod
+ * @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 setAcceptedPaymentMethod($acceptedPaymentMethod)
+ public function setAvailableDeliveryMethod($availableDeliveryMethod)
{
$types = [
- "\OpenActive\Models\SchemaOrg\LoanOrCredit",
- "\OpenActive\Enums\SchemaOrg\PaymentMethod",
- "string",
+ "\OpenActive\Enums\SchemaOrg\DeliveryMethod",
"null",
];
- $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types);
+ $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types);
- $this->acceptedPaymentMethod = $acceptedPaymentMethod;
+ $this->availableDeliveryMethod = $availableDeliveryMethod;
}
/**
- * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string
+ * @return \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
*/
- public function getWarranty()
+ public function getIncludesObject()
{
- return $this->warranty;
+ return $this->includesObject;
}
/**
- * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warranty
+ * @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 setWarranty($warranty)
+ public function setIncludesObject($includesObject)
{
$types = [
- "\OpenActive\Models\SchemaOrg\WarrantyPromise",
+ "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode",
"string",
];
- $warranty = self::checkTypes($warranty, $types);
+ $includesObject = self::checkTypes($includesObject, $types);
- $this->warranty = $warranty;
+ $this->includesObject = $includesObject;
}
/**
- * @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",
+ "\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|DateTime|string|null
*/
- public function getIneligibleRegion()
+ public function getAvailabilityEnds()
{
- return $this->ineligibleRegion;
+ return $this->availabilityEnds;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
+ * @param Date|DateTime|string|null $availabilityEnds
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIneligibleRegion($ineligibleRegion)
+ public function setAvailabilityEnds($availabilityEnds)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "string",
- "\OpenActive\Models\SchemaOrg\GeoShape",
+ "Date",
+ "DateTime",
+ "Time",
+ "null",
];
- $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
+ $availabilityEnds = self::checkTypes($availabilityEnds, $types);
- $this->ineligibleRegion = $ineligibleRegion;
+ $this->availabilityEnds = $availabilityEnds;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null
*/
- public function getDeliveryLeadTime()
+ public function getAvailability()
{
- return $this->deliveryLeadTime;
+ return $this->availability;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $deliveryLeadTime
+ * @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 setDeliveryLeadTime($deliveryLeadTime)
+ public function setAvailability($availability)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
+ "\OpenActive\Enums\SchemaOrg\ItemAvailability",
+ "null",
];
- $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types);
+ $availability = self::checkTypes($availability, $types);
- $this->deliveryLeadTime = $deliveryLeadTime;
+ $this->availability = $availability;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ * @return string
*/
- public function getAvailableDeliveryMethod()
+ public function getSku()
{
- return $this->availableDeliveryMethod;
+ return $this->sku;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $availableDeliveryMethod
+ * @param string $sku
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableDeliveryMethod($availableDeliveryMethod)
+ public function setSku($sku)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\DeliveryMethod",
- "null",
+ "string",
];
- $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types);
+ $sku = self::checkTypes($sku, $types);
- $this->availableDeliveryMethod = $availableDeliveryMethod;
+ $this->sku = $sku;
}
/**
* @return Date|DateTime|null
*/
- public function getValidFrom()
+ public function getValidThrough()
{
- return $this->validFrom;
+ return $this->validThrough;
}
/**
- * @param Date|DateTime|null $validFrom
+ * @param Date|DateTime|null $validThrough
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidFrom($validFrom)
+ public function setValidThrough($validThrough)
{
$types = [
"Date",
@@ -700,62 +685,61 @@ public function setValidFrom($validFrom)
"null",
];
- $validFrom = self::checkTypes($validFrom, $types);
+ $validThrough = self::checkTypes($validThrough, $types);
- $this->validFrom = $validFrom;
+ $this->validThrough = $validThrough;
}
/**
- * @return Date|DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string
*/
- public function getAvailabilityEnds()
+ public function getWarranty()
{
- return $this->availabilityEnds;
+ return $this->warranty;
}
/**
- * @param Date|DateTime|string|null $availabilityEnds
+ * @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 setAvailabilityEnds($availabilityEnds)
+ public function setWarranty($warranty)
{
$types = [
- "Date",
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\WarrantyPromise",
+ "string",
];
- $availabilityEnds = self::checkTypes($availabilityEnds, $types);
+ $warranty = self::checkTypes($warranty, $types);
- $this->availabilityEnds = $availabilityEnds;
+ $this->warranty = $warranty;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return Date|DateTime|string|null
*/
- public function getEligibleRegion()
+ public function getAvailabilityStarts()
{
- return $this->eligibleRegion;
+ return $this->availabilityStarts;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion
+ * @param Date|DateTime|string|null $availabilityStarts
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibleRegion($eligibleRegion)
+ public function setAvailabilityStarts($availabilityStarts)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeoShape",
- "string",
- "\OpenActive\Models\SchemaOrg\Place",
+ "Date",
+ "DateTime",
+ "Time",
+ "null",
];
- $eligibleRegion = self::checkTypes($eligibleRegion, $types);
+ $availabilityStarts = self::checkTypes($availabilityStarts, $types);
- $this->eligibleRegion = $eligibleRegion;
+ $this->availabilityStarts = $availabilityStarts;
}
/**
@@ -783,153 +767,154 @@ public function setGtin8($gtin8)
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getInventoryLevel()
+ public function getGtin13()
{
- return $this->inventoryLevel;
+ return $this->gtin13;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $inventoryLevel
+ * @param string $gtin13
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInventoryLevel($inventoryLevel)
+ public function setGtin13($gtin13)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $inventoryLevel = self::checkTypes($inventoryLevel, $types);
+ $gtin13 = self::checkTypes($gtin13, $types);
- $this->inventoryLevel = $inventoryLevel;
+ $this->gtin13 = $gtin13;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|\OpenActive\Models\SchemaOrg\LoanOrCredit|string|null
*/
- public function getSku()
+ public function getAcceptedPaymentMethod()
{
- return $this->sku;
+ return $this->acceptedPaymentMethod;
}
/**
- * @param string $sku
+ * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|\OpenActive\Models\SchemaOrg\LoanOrCredit|string|null $acceptedPaymentMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSku($sku)
+ public function setAcceptedPaymentMethod($acceptedPaymentMethod)
{
$types = [
+ "\OpenActive\Enums\SchemaOrg\PaymentMethod",
+ "\OpenActive\Models\SchemaOrg\LoanOrCredit",
"string",
+ "null",
];
- $sku = self::checkTypes($sku, $types);
+ $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types);
- $this->sku = $sku;
+ $this->acceptedPaymentMethod = $acceptedPaymentMethod;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getAdvanceBookingRequirement()
+ public function getAsin()
{
- return $this->advanceBookingRequirement;
+ return $this->asin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $advanceBookingRequirement
+ * @param string $asin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdvanceBookingRequirement($advanceBookingRequirement)
+ public function setAsin($asin)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $advanceBookingRequirement = self::checkTypes($advanceBookingRequirement, $types);
+ $asin = self::checkTypes($asin, $types);
- $this->advanceBookingRequirement = $advanceBookingRequirement;
+ $this->asin = $asin;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- public function getGtin14()
+ public function getIneligibleRegion()
{
- return $this->gtin14;
+ return $this->ineligibleRegion;
}
/**
- * @param string $gtin14
+ * @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 setGtin14($gtin14)
+ public function setIneligibleRegion($ineligibleRegion)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
];
- $gtin14 = self::checkTypes($gtin14, $types);
+ $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
- $this->gtin14 = $gtin14;
+ $this->ineligibleRegion = $ineligibleRegion;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @return string
*/
- public function getEligibleTransactionVolume()
+ public function getGtin14()
{
- return $this->eligibleTransactionVolume;
+ return $this->gtin14;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $eligibleTransactionVolume
+ * @param string $gtin14
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibleTransactionVolume($eligibleTransactionVolume)
+ public function setGtin14($gtin14)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
];
- $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types);
+ $gtin14 = self::checkTypes($gtin14, $types);
- $this->eligibleTransactionVolume = $eligibleTransactionVolume;
+ $this->gtin14 = $gtin14;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
*/
- public function getAreaServed()
+ public function getEligibleRegion()
{
- return $this->areaServed;
+ return $this->eligibleRegion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed
+ * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAreaServed($areaServed)
+ public function setEligibleRegion($eligibleRegion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"\OpenActive\Models\SchemaOrg\GeoShape",
"string",
"\OpenActive\Models\SchemaOrg\Place",
];
- $areaServed = self::checkTypes($areaServed, $types);
+ $eligibleRegion = self::checkTypes($eligibleRegion, $types);
- $this->areaServed = $areaServed;
+ $this->eligibleRegion = $eligibleRegion;
}
/**
@@ -958,180 +943,209 @@ public function setEligibleCustomerType($eligibleCustomerType)
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
*/
- public function getAvailability()
+ public function getItemOffered()
{
- return $this->availability;
+ return $this->itemOffered;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ItemAvailability|null $availability
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $itemOffered
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailability($availability)
+ public function setItemOffered($itemOffered)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ItemAvailability",
- "null",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\AggregateOffer",
+ "\OpenActive\Models\SchemaOrg\MenuItem",
+ "\OpenActive\Models\SchemaOrg\Trip",
+ "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\Service",
+ "\OpenActive\Models\SchemaOrg\Product",
+ "string",
];
- $availability = self::checkTypes($availability, $types);
+ $itemOffered = self::checkTypes($itemOffered, $types);
- $this->availability = $availability;
+ $this->itemOffered = $itemOffered;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- public function getGtin13()
+ public function getEligibleTransactionVolume()
{
- return $this->gtin13;
+ return $this->eligibleTransactionVolume;
}
/**
- * @param string $gtin13
+ * @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 setGtin13($gtin13)
+ public function setEligibleTransactionVolume($eligibleTransactionVolume)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
];
- $gtin13 = self::checkTypes($gtin13, $types);
+ $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types);
- $this->gtin13 = $gtin13;
+ $this->eligibleTransactionVolume = $eligibleTransactionVolume;
}
/**
- * @return Date|DateTime|null
+ * @return string
*/
- public function getValidThrough()
+ public function getGtin()
{
- return $this->validThrough;
+ return $this->gtin;
}
/**
- * @param Date|DateTime|null $validThrough
+ * @param string $gtin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidThrough($validThrough)
+ public function setGtin($gtin)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
];
- $validThrough = self::checkTypes($validThrough, $types);
+ $gtin = self::checkTypes($gtin, $types);
- $this->validThrough = $validThrough;
+ $this->gtin = $gtin;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getPriceSpecification()
+ public function getDeliveryLeadTime()
{
- return $this->priceSpecification;
+ return $this->deliveryLeadTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $priceSpecification
+ * @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 setPriceSpecification($priceSpecification)
+ public function setDeliveryLeadTime($deliveryLeadTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $priceSpecification = self::checkTypes($priceSpecification, $types);
+ $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types);
- $this->priceSpecification = $priceSpecification;
+ $this->deliveryLeadTime = $deliveryLeadTime;
}
/**
- * @return Date|DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getAvailabilityStarts()
+ public function getAdvanceBookingRequirement()
{
- return $this->availabilityStarts;
+ return $this->advanceBookingRequirement;
}
/**
- * @param Date|DateTime|string|null $availabilityStarts
+ * @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 setAvailabilityStarts($availabilityStarts)
+ public function setAdvanceBookingRequirement($advanceBookingRequirement)
{
$types = [
- "Date",
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
];
- $availabilityStarts = self::checkTypes($availabilityStarts, $types);
+ $advanceBookingRequirement = self::checkTypes($advanceBookingRequirement, $types);
- $this->availabilityStarts = $availabilityStarts;
+ $this->advanceBookingRequirement = $advanceBookingRequirement;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getEligibleDuration()
+ public function getMpn()
{
- return $this->eligibleDuration;
+ return $this->mpn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleDuration
+ * @param string $mpn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibleDuration($eligibleDuration)
+ public function setMpn($mpn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $eligibleDuration = self::checkTypes($eligibleDuration, $types);
+ $mpn = self::checkTypes($mpn, $types);
- $this->eligibleDuration = $eligibleDuration;
+ $this->mpn = $mpn;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- public function getAvailableAtOrFrom()
+ public function getAreaServed()
{
- return $this->availableAtOrFrom;
+ return $this->areaServed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $availableAtOrFrom
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea $areaServed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableAtOrFrom($availableAtOrFrom)
+ public function setAreaServed($areaServed)
{
$types = [
+ "string",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ ];
+
+ $areaServed = self::checkTypes($areaServed, $types);
+
+ $this->areaServed = $areaServed;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ public function getInventoryLevel()
+ {
+ return $this->inventoryLevel;
+ }
+
+ /**
+ * @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 setInventoryLevel($inventoryLevel)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $availableAtOrFrom = self::checkTypes($availableAtOrFrom, $types);
+ $inventoryLevel = self::checkTypes($inventoryLevel, $types);
- $this->availableAtOrFrom = $availableAtOrFrom;
+ $this->inventoryLevel = $inventoryLevel;
}
/**
@@ -1158,4 +1172,29 @@ public function setSerialNumber($serialNumber)
$this->serialNumber = $serialNumber;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ public function getEligibleQuantity()
+ {
+ return $this->eligibleQuantity;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleQuantity
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setEligibleQuantity($eligibleQuantity)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
+ ];
+
+ $eligibleQuantity = self::checkTypes($eligibleQuantity, $types);
+
+ $this->eligibleQuantity = $eligibleQuantity;
+ }
+
}
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..2143b0b6 100644
--- a/src/Models/SchemaOrg/Diet.php
+++ b/src/Models/SchemaOrg/Diet.php
@@ -17,10 +17,10 @@ public static function getType()
public static function fieldList() {
$fields = [
- "expertConsiderations" => "expertConsiderations",
- "risks" => "risks",
"physiologicalBenefits" => "physiologicalBenefits",
+ "risks" => "risks",
"endorsers" => "endorsers",
+ "expertConsiderations" => "expertConsiderations",
"dietFeatures" => "dietFeatures",
];
@@ -28,12 +28,12 @@ public static function fieldList() {
}
/**
- * Medical expert advice related to the plan.
+ * Specific physiologic benefits associated to the plan.
*
*
* @var string
*/
- protected $expertConsiderations;
+ protected $physiologicalBenefits;
/**
* Specific physiologic risks associated to the diet plan.
@@ -44,20 +44,20 @@ public static function fieldList() {
protected $risks;
/**
- * Specific physiologic benefits associated to the plan.
+ * People or organizations that endorse the plan.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $physiologicalBenefits;
+ protected $endorsers;
/**
- * People or organizations that endorse the plan.
+ * Medical expert advice related to the plan.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $endorsers;
+ protected $expertConsiderations;
/**
* 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.
@@ -70,25 +70,25 @@ public static function fieldList() {
/**
* @return string
*/
- public function getExpertConsiderations()
+ public function getPhysiologicalBenefits()
{
- return $this->expertConsiderations;
+ return $this->physiologicalBenefits;
}
/**
- * @param string $expertConsiderations
+ * @param string $physiologicalBenefits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExpertConsiderations($expertConsiderations)
+ public function setPhysiologicalBenefits($physiologicalBenefits)
{
$types = [
"string",
];
- $expertConsiderations = self::checkTypes($expertConsiderations, $types);
+ $physiologicalBenefits = self::checkTypes($physiologicalBenefits, $types);
- $this->expertConsiderations = $expertConsiderations;
+ $this->physiologicalBenefits = $physiologicalBenefits;
}
/**
@@ -116,53 +116,53 @@ public function setRisks($risks)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getPhysiologicalBenefits()
+ public function getEndorsers()
{
- return $this->physiologicalBenefits;
+ return $this->endorsers;
}
/**
- * @param string $physiologicalBenefits
+ * @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 setPhysiologicalBenefits($physiologicalBenefits)
+ public function setEndorsers($endorsers)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $physiologicalBenefits = self::checkTypes($physiologicalBenefits, $types);
+ $endorsers = self::checkTypes($endorsers, $types);
- $this->physiologicalBenefits = $physiologicalBenefits;
+ $this->endorsers = $endorsers;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getEndorsers()
+ public function getExpertConsiderations()
{
- return $this->endorsers;
+ return $this->expertConsiderations;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $endorsers
+ * @param string $expertConsiderations
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndorsers($endorsers)
+ public function setExpertConsiderations($expertConsiderations)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $endorsers = self::checkTypes($endorsers, $types);
+ $expertConsiderations = self::checkTypes($expertConsiderations, $types);
- $this->endorsers = $endorsers;
+ $this->expertConsiderations = $expertConsiderations;
}
/**
diff --git a/src/Models/SchemaOrg/DietarySupplement.php b/src/Models/SchemaOrg/DietarySupplement.php
index c611c6e1..5c8408c4 100644
--- a/src/Models/SchemaOrg/DietarySupplement.php
+++ b/src/Models/SchemaOrg/DietarySupplement.php
@@ -5,7 +5,7 @@
/**
*
*/
-class DietarySupplement extends \OpenActive\Models\SchemaOrg\Substance
+class DietarySupplement extends \OpenActive\Models\SchemaOrg\Product
{
/**
* @return string[]|null
@@ -17,53 +17,52 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "activeIngredient" => "activeIngredient",
"targetPopulation" => "targetPopulation",
- "recommendedIntake" => "recommendedIntake",
- "legalStatus" => "legalStatus",
"mechanismOfAction" => "mechanismOfAction",
- "maximumIntake" => "maximumIntake",
- "activeIngredient" => "activeIngredient",
- "proprietaryName" => "proprietaryName",
- "nonProprietaryName" => "nonProprietaryName",
- "manufacturer" => "manufacturer",
"isProprietary" => "isProprietary",
+ "maximumIntake" => "maximumIntake",
+ "recommendedIntake" => "recommendedIntake",
"safetyConsideration" => "safetyConsideration",
+ "nonProprietaryName" => "nonProprietaryName",
+ "proprietaryName" => "proprietaryName",
+ "legalStatus" => "legalStatus",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'.
+ * An active ingredient, typically chemical compounds and/or biologic substances.
*
*
* @var string
*/
- protected $targetPopulation;
+ protected $activeIngredient;
/**
- * Recommended intake of this supplement for a given population as defined by a specific recommending authority.
+ * Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'.
*
*
- * @var \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string
+ * @var string
*/
- protected $recommendedIntake;
+ protected $targetPopulation;
/**
- * The drug or supplement's legal status, including any controlled substance schedules that apply.
+ * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect.
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @var string
*/
- protected $legalStatus;
+ protected $mechanismOfAction;
/**
- * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect.
+ * True if this item's name is a proprietary/brand name (vs. generic name).
*
*
- * @var string
+ * @var bool|null
*/
- protected $mechanismOfAction;
+ protected $isProprietary;
/**
* Recommended intake of this supplement for a given population as defined by a specific recommending authority.
@@ -74,20 +73,20 @@ public static function fieldList() {
protected $maximumIntake;
/**
- * 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\RecommendedDoseSchedule|string
*/
- protected $activeIngredient;
+ protected $recommendedIntake;
/**
- * Proprietary name given to the diet plan, typically by its originator or creator.
+ * Any potential safety concern associated with the supplement. May include interactions with other drugs and foods, pregnancy, breastfeeding, known adverse reactions, and documented efficacy of the supplement.
*
*
* @var string
*/
- protected $proprietaryName;
+ protected $safetyConsideration;
/**
* The generic name of this drug or supplement.
@@ -98,127 +97,116 @@ public static function fieldList() {
protected $nonProprietaryName;
/**
- * The manufacturer of the product.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Organization|string
- */
- protected $manufacturer;
-
- /**
- * True if this item's name is a proprietary/brand name (vs. generic name).
+ * Proprietary name given to the diet plan, typically by its originator or creator.
*
*
- * @var bool|null
+ * @var string
*/
- protected $isProprietary;
+ protected $proprietaryName;
/**
- * Any potential safety concern associated with the supplement. May include interactions with other drugs and foods, pregnancy, breastfeeding, known adverse reactions, and documented efficacy of the supplement.
+ * The drug or supplement's legal status, including any controlled substance schedules that apply.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- protected $safetyConsideration;
+ protected $legalStatus;
/**
* @return string
*/
- public function getTargetPopulation()
+ public function getActiveIngredient()
{
- return $this->targetPopulation;
+ return $this->activeIngredient;
}
/**
- * @param string $targetPopulation
+ * @param string $activeIngredient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTargetPopulation($targetPopulation)
+ public function setActiveIngredient($activeIngredient)
{
$types = [
"string",
];
- $targetPopulation = self::checkTypes($targetPopulation, $types);
+ $activeIngredient = self::checkTypes($activeIngredient, $types);
- $this->targetPopulation = $targetPopulation;
+ $this->activeIngredient = $activeIngredient;
}
/**
- * @return \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string
+ * @return string
*/
- public function getRecommendedIntake()
+ public function getTargetPopulation()
{
- return $this->recommendedIntake;
+ return $this->targetPopulation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string $recommendedIntake
+ * @param string $targetPopulation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecommendedIntake($recommendedIntake)
+ public function setTargetPopulation($targetPopulation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\RecommendedDoseSchedule",
"string",
];
- $recommendedIntake = self::checkTypes($recommendedIntake, $types);
+ $targetPopulation = self::checkTypes($targetPopulation, $types);
- $this->recommendedIntake = $recommendedIntake;
+ $this->targetPopulation = $targetPopulation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @return string
*/
- public function getLegalStatus()
+ public function getMechanismOfAction()
{
- return $this->legalStatus;
+ return $this->mechanismOfAction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $legalStatus
+ * @param string $mechanismOfAction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegalStatus($legalStatus)
+ public function setMechanismOfAction($mechanismOfAction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
"string",
- "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
- "null",
];
- $legalStatus = self::checkTypes($legalStatus, $types);
+ $mechanismOfAction = self::checkTypes($mechanismOfAction, $types);
- $this->legalStatus = $legalStatus;
+ $this->mechanismOfAction = $mechanismOfAction;
}
/**
- * @return string
+ * @return bool|null
*/
- public function getMechanismOfAction()
+ public function getIsProprietary()
{
- return $this->mechanismOfAction;
+ return $this->isProprietary;
}
/**
- * @param string $mechanismOfAction
+ * @param bool|null $isProprietary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMechanismOfAction($mechanismOfAction)
+ public function setIsProprietary($isProprietary)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $mechanismOfAction = self::checkTypes($mechanismOfAction, $types);
+ $isProprietary = self::checkTypes($isProprietary, $types);
- $this->mechanismOfAction = $mechanismOfAction;
+ $this->isProprietary = $isProprietary;
}
/**
@@ -247,51 +235,52 @@ public function setMaximumIntake($maximumIntake)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string
*/
- public function getActiveIngredient()
+ public function getRecommendedIntake()
{
- return $this->activeIngredient;
+ return $this->recommendedIntake;
}
/**
- * @param string $activeIngredient
+ * @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 setActiveIngredient($activeIngredient)
+ public function setRecommendedIntake($recommendedIntake)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\RecommendedDoseSchedule",
"string",
];
- $activeIngredient = self::checkTypes($activeIngredient, $types);
+ $recommendedIntake = self::checkTypes($recommendedIntake, $types);
- $this->activeIngredient = $activeIngredient;
+ $this->recommendedIntake = $recommendedIntake;
}
/**
* @return string
*/
- public function getProprietaryName()
+ public function getSafetyConsideration()
{
- return $this->proprietaryName;
+ return $this->safetyConsideration;
}
/**
- * @param string $proprietaryName
+ * @param string $safetyConsideration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProprietaryName($proprietaryName)
+ public function setSafetyConsideration($safetyConsideration)
{
$types = [
"string",
];
- $proprietaryName = self::checkTypes($proprietaryName, $types);
+ $safetyConsideration = self::checkTypes($safetyConsideration, $types);
- $this->proprietaryName = $proprietaryName;
+ $this->safetyConsideration = $safetyConsideration;
}
/**
@@ -319,77 +308,54 @@ public function setNonProprietaryName($nonProprietaryName)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getManufacturer()
+ public function getProprietaryName()
{
- return $this->manufacturer;
+ return $this->proprietaryName;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer
+ * @param string $proprietaryName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setManufacturer($manufacturer)
+ public function setProprietaryName($proprietaryName)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $manufacturer = self::checkTypes($manufacturer, $types);
-
- $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);
+ $proprietaryName = self::checkTypes($proprietaryName, $types);
- $this->isProprietary = $isProprietary;
+ $this->proprietaryName = $proprietaryName;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- public function getSafetyConsideration()
+ public function getLegalStatus()
{
- return $this->safetyConsideration;
+ return $this->legalStatus;
}
/**
- * @param string $safetyConsideration
+ * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null $legalStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSafetyConsideration($safetyConsideration)
+ public function setLegalStatus($legalStatus)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
+ "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
"string",
+ "null",
];
- $safetyConsideration = self::checkTypes($safetyConsideration, $types);
+ $legalStatus = self::checkTypes($legalStatus, $types);
- $this->safetyConsideration = $safetyConsideration;
+ $this->legalStatus = $legalStatus;
}
}
diff --git a/src/Models/SchemaOrg/DigitalDocumentPermission.php b/src/Models/SchemaOrg/DigitalDocumentPermission.php
index 894e5b04..c7451f92 100644
--- a/src/Models/SchemaOrg/DigitalDocumentPermission.php
+++ b/src/Models/SchemaOrg/DigitalDocumentPermission.php
@@ -17,80 +17,80 @@ public static function getType()
public static function fieldList() {
$fields = [
- "grantee" => "grantee",
"permissionType" => "permissionType",
+ "grantee" => "grantee",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The person, organization, contact point, or audience that has been granted this permission.
+ * The type of permission granted the person, organization, or audience.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType|null
*/
- protected $grantee;
+ protected $permissionType;
/**
- * The type of permission granted the person, organization, or audience.
+ * The person, organization, contact point, or audience that has been granted this permission.
*
*
- * @var \OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType|null
+ * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $permissionType;
+ protected $grantee;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType|null
*/
- public function getGrantee()
+ public function getPermissionType()
{
- return $this->grantee;
+ return $this->permissionType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $grantee
+ * @param \OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType|null $permissionType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGrantee($grantee)
+ public function setPermissionType($permissionType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
- "\OpenActive\Models\SchemaOrg\ContactPoint",
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "\OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType",
+ "null",
];
- $grantee = self::checkTypes($grantee, $types);
+ $permissionType = self::checkTypes($permissionType, $types);
- $this->grantee = $grantee;
+ $this->permissionType = $permissionType;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType|null
+ * @return \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getPermissionType()
+ public function getGrantee()
{
- return $this->permissionType;
+ return $this->grantee;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType|null $permissionType
+ * @param \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $grantee
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPermissionType($permissionType)
+ public function setGrantee($grantee)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType",
- "null",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $permissionType = self::checkTypes($permissionType, $types);
+ $grantee = self::checkTypes($grantee, $types);
- $this->permissionType = $permissionType;
+ $this->grantee = $grantee;
}
}
diff --git a/src/Models/SchemaOrg/DonateAction.php b/src/Models/SchemaOrg/DonateAction.php
index b95e3cae..2c395b0c 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\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
protected $recipient;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
public function getRecipient()
{
@@ -40,17 +40,17 @@ public function getRecipient()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setRecipient($recipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
diff --git a/src/Models/SchemaOrg/DoseSchedule.php b/src/Models/SchemaOrg/DoseSchedule.php
index cd5742d8..65148595 100644
--- a/src/Models/SchemaOrg/DoseSchedule.php
+++ b/src/Models/SchemaOrg/DoseSchedule.php
@@ -17,22 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
- "targetPopulation" => "targetPopulation",
+ "doseValue" => "doseValue",
"frequency" => "frequency",
+ "targetPopulation" => "targetPopulation",
"doseUnit" => "doseUnit",
- "doseValue" => "doseValue",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'.
+ * The value of the dose, e.g. 500.
*
*
- * @var string
+ * @var Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- protected $targetPopulation;
+ protected $doseValue;
/**
* How often the dose is taken, e.g. 'daily'.
@@ -43,43 +43,45 @@ public static function fieldList() {
protected $frequency;
/**
- * The unit of the dose, e.g. 'mg'.
+ * Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'.
*
*
* @var string
*/
- protected $doseUnit;
+ protected $targetPopulation;
/**
- * The value of the dose, e.g. 500.
+ * The unit of the dose, e.g. 'mg'.
*
*
- * @var Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ * @var string
*/
- protected $doseValue;
+ protected $doseUnit;
/**
- * @return string
+ * @return Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- public function getTargetPopulation()
+ public function getDoseValue()
{
- return $this->targetPopulation;
+ return $this->doseValue;
}
/**
- * @param string $targetPopulation
+ * @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 setTargetPopulation($targetPopulation)
+ public function setDoseValue($doseValue)
{
$types = [
- "string",
+ "Number",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
+ "null",
];
- $targetPopulation = self::checkTypes($targetPopulation, $types);
+ $doseValue = self::checkTypes($doseValue, $types);
- $this->targetPopulation = $targetPopulation;
+ $this->doseValue = $doseValue;
}
/**
@@ -109,51 +111,49 @@ public function setFrequency($frequency)
/**
* @return string
*/
- public function getDoseUnit()
+ public function getTargetPopulation()
{
- return $this->doseUnit;
+ return $this->targetPopulation;
}
/**
- * @param string $doseUnit
+ * @param string $targetPopulation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDoseUnit($doseUnit)
+ public function setTargetPopulation($targetPopulation)
{
$types = [
"string",
];
- $doseUnit = self::checkTypes($doseUnit, $types);
+ $targetPopulation = self::checkTypes($targetPopulation, $types);
- $this->doseUnit = $doseUnit;
+ $this->targetPopulation = $targetPopulation;
}
/**
- * @return Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ * @return string
*/
- public function getDoseValue()
+ public function getDoseUnit()
{
- return $this->doseValue;
+ return $this->doseUnit;
}
/**
- * @param Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $doseValue
+ * @param string $doseUnit
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDoseValue($doseValue)
+ public function setDoseUnit($doseUnit)
{
$types = [
- "Number",
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
- "null",
+ "string",
];
- $doseValue = self::checkTypes($doseValue, $types);
+ $doseUnit = self::checkTypes($doseUnit, $types);
- $this->doseValue = $doseValue;
+ $this->doseUnit = $doseUnit;
}
}
diff --git a/src/Models/SchemaOrg/Drug.php b/src/Models/SchemaOrg/Drug.php
index b48cecd6..2a8c90c9 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,193 +17,176 @@ public static function getType()
public static function fieldList() {
$fields = [
- "pregnancyCategory" => "pregnancyCategory",
- "overdosage" => "overdosage",
- "legalStatus" => "legalStatus",
- "mechanismOfAction" => "mechanismOfAction",
"clinicalPharmacology" => "clinicalPharmacology",
- "rxcui" => "rxcui",
+ "doseSchedule" => "doseSchedule",
+ "activeIngredient" => "activeIngredient",
"interactingDrug" => "interactingDrug",
- "dosageForm" => "dosageForm",
+ "overdosage" => "overdosage",
+ "availableStrength" => "availableStrength",
+ "prescriptionStatus" => "prescriptionStatus",
+ "administrationRoute" => "administrationRoute",
+ "alcoholWarning" => "alcoholWarning",
+ "drugClass" => "drugClass",
+ "pregnancyCategory" => "pregnancyCategory",
+ "mechanismOfAction" => "mechanismOfAction",
+ "isProprietary" => "isProprietary",
"labelDetails" => "labelDetails",
"maximumIntake" => "maximumIntake",
- "activeIngredient" => "activeIngredient",
- "relatedDrug" => "relatedDrug",
- "administrationRoute" => "administrationRoute",
- "drugUnit" => "drugUnit",
- "foodWarning" => "foodWarning",
"warning" => "warning",
- "prescriptionStatus" => "prescriptionStatus",
- "proprietaryName" => "proprietaryName",
- "drugClass" => "drugClass",
+ "drugUnit" => "drugUnit",
"prescribingInfo" => "prescribingInfo",
- "includedInHealthInsurancePlan" => "includedInHealthInsurancePlan",
+ "dosageForm" => "dosageForm",
+ "pregnancyWarning" => "pregnancyWarning",
"nonProprietaryName" => "nonProprietaryName",
- "manufacturer" => "manufacturer",
- "isProprietary" => "isProprietary",
"clincalPharmacology" => "clincalPharmacology",
+ "proprietaryName" => "proprietaryName",
+ "relatedDrug" => "relatedDrug",
+ "foodWarning" => "foodWarning",
+ "legalStatus" => "legalStatus",
+ "rxcui" => "rxcui",
+ "includedInHealthInsurancePlan" => "includedInHealthInsurancePlan",
"isAvailableGenerically" => "isAvailableGenerically",
"breastfeedingWarning" => "breastfeedingWarning",
- "pregnancyWarning" => "pregnancyWarning",
- "alcoholWarning" => "alcoholWarning",
- "doseSchedule" => "doseSchedule",
- "availableStrength" => "availableStrength",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Pregnancy category of this drug.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string
- */
- protected $pregnancyCategory;
-
- /**
- * Any information related to overdose on a drug, including signs or symptoms, treatments, contact information for emergency response.
+ * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD).
*
*
* @var string
*/
- protected $overdosage;
+ protected $clinicalPharmacology;
/**
- * The drug or supplement's legal status, including any controlled substance schedules that apply.
+ * 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\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\DoseSchedule|string
*/
- protected $legalStatus;
+ protected $doseSchedule;
/**
- * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect.
+ * An active ingredient, typically chemical compounds and/or biologic substances.
*
*
* @var string
*/
- protected $mechanismOfAction;
+ protected $activeIngredient;
/**
- * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD).
+ * 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 $clinicalPharmacology;
+ protected $interactingDrug;
/**
- * The RxCUI drug identifier from RXNORM.
+ * Any information related to overdose on a drug, including signs or symptoms, treatments, contact information for emergency response.
*
*
* @var string
*/
- protected $rxcui;
+ protected $overdosage;
/**
- * 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.
+ * An available dosage strength for the drug.
*
*
- * @var \OpenActive\Models\SchemaOrg\Drug|string
+ * @var \OpenActive\Models\SchemaOrg\DrugStrength|string
*/
- protected $interactingDrug;
+ protected $availableStrength;
/**
- * A dosage form in which this drug/supplement is available, e.g. 'tablet', 'suspension', 'injection'.
+ * Indicates the status of drug prescription, e.g. local catalogs classifications or whether the drug is available by prescription or over-the-counter, etc.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string
*/
- protected $dosageForm;
+ protected $prescriptionStatus;
/**
- * Link to the drug's label details.
+ * A route by which this drug may be administered, e.g. 'oral'.
*
*
* @var string
*/
- protected $labelDetails;
-
- /**
- * Recommended intake of this supplement for a given population as defined by a specific recommending authority.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
- */
- protected $maximumIntake;
+ protected $administrationRoute;
/**
- * An active ingredient, typically chemical compounds and/or biologic substances.
+ * Any precaution, guidance, contraindication, etc. related to consumption of alcohol while taking this drug.
*
*
* @var string
*/
- protected $activeIngredient;
+ protected $alcoholWarning;
/**
- * Any other drug related to this one, for example commonly-prescribed alternatives.
+ * The class of drug this belongs to (e.g., statins).
*
*
- * @var \OpenActive\Models\SchemaOrg\Drug|string
+ * @var \OpenActive\Models\SchemaOrg\DrugClass|string
*/
- protected $relatedDrug;
+ protected $drugClass;
/**
- * A route by which this drug may be administered, e.g. 'oral'.
+ * Pregnancy category of this drug.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string
*/
- protected $administrationRoute;
+ protected $pregnancyCategory;
/**
- * The unit in which the drug is measured, e.g. '5 mg tablet'.
+ * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect.
*
*
* @var string
*/
- protected $drugUnit;
+ protected $mechanismOfAction;
/**
- * Any precaution, guidance, contraindication, etc. related to consumption of specific foods while taking this drug.
+ * True if this item's name is a proprietary/brand name (vs. generic name).
*
*
- * @var string
+ * @var bool|null
*/
- protected $foodWarning;
+ protected $isProprietary;
/**
- * Any FDA or other warnings about the drug (text or URL).
+ * Link to the drug's label details.
*
*
* @var string
*/
- protected $warning;
+ protected $labelDetails;
/**
- * Indicates the status of drug prescription eg. local catalogs classifications or whether the drug is available by prescription or over-the-counter, etc.
+ * Recommended intake of this supplement for a given population as defined by a specific recommending authority.
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string
+ * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
*/
- protected $prescriptionStatus;
+ protected $maximumIntake;
/**
- * Proprietary name given to the diet plan, typically by its originator or creator.
+ * Any FDA or other warnings about the drug (text or URL).
*
*
* @var string
*/
- protected $proprietaryName;
+ protected $warning;
/**
- * The class of drug this belongs to (e.g., statins).
+ * The unit in which the drug is measured, e.g. '5 mg tablet'.
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugClass|string
+ * @var string
*/
- protected $drugClass;
+ protected $drugUnit;
/**
* Link to prescribing information for the drug.
@@ -214,605 +197,587 @@ public static function fieldList() {
protected $prescribingInfo;
/**
- * The insurance plans that cover this drug.
+ * A dosage form in which this drug/supplement is available, e.g. 'tablet', 'suspension', 'injection'.
*
*
- * @var \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string
+ * @var string
*/
- protected $includedInHealthInsurancePlan;
+ protected $dosageForm;
/**
- * The generic name of this drug or supplement.
+ * Any precaution, guidance, contraindication, etc. related to this drug's use during pregnancy.
*
*
* @var string
*/
- protected $nonProprietaryName;
+ protected $pregnancyWarning;
/**
- * The manufacturer of the product.
+ * The generic name of this drug or supplement.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $manufacturer;
+ protected $nonProprietaryName;
/**
- * True if this item's name is a proprietary/brand name (vs. generic name).
+ * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD).
*
*
- * @var bool|null
+ * @var string
*/
- protected $isProprietary;
+ protected $clincalPharmacology;
/**
- * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD).
+ * Proprietary name given to the diet plan, typically by its originator or creator.
*
*
* @var string
*/
- protected $clincalPharmacology;
+ protected $proprietaryName;
/**
- * 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.
+ * Any precaution, guidance, contraindication, etc. related to consumption of specific foods while taking this drug.
*
*
* @var string
*/
- protected $breastfeedingWarning;
+ protected $foodWarning;
/**
- * Any precaution, guidance, contraindication, etc. related to this drug's use during pregnancy.
+ * The drug or supplement's legal status, including any controlled substance schedules that apply.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- protected $pregnancyWarning;
+ protected $legalStatus;
/**
- * Any precaution, guidance, contraindication, etc. related to consumption of alcohol while taking this drug.
+ * The RxCUI drug identifier from RXNORM.
*
*
* @var string
*/
- protected $alcoholWarning;
+ protected $rxcui;
/**
- * A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.
+ * The insurance plans that cover this drug.
*
*
- * @var \OpenActive\Models\SchemaOrg\DoseSchedule|string
+ * @var \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string
*/
- protected $doseSchedule;
+ protected $includedInHealthInsurancePlan;
/**
- * An available dosage strength for the drug.
+ * True if the drug is available in a generic form (regardless of name).
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugStrength|string
- */
- protected $availableStrength;
-
- /**
- * @return \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string
+ * @var bool|null
*/
- public function getPregnancyCategory()
- {
- return $this->pregnancyCategory;
- }
+ protected $isAvailableGenerically;
/**
- * @param \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string $pregnancyCategory
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * Any precaution, guidance, contraindication, etc. related to this drug's use by breastfeeding mothers.
+ *
+ *
+ * @var string
*/
- public function setPregnancyCategory($pregnancyCategory)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\DrugPregnancyCategory",
- "string",
- ];
-
- $pregnancyCategory = self::checkTypes($pregnancyCategory, $types);
-
- $this->pregnancyCategory = $pregnancyCategory;
- }
+ protected $breastfeedingWarning;
/**
* @return string
*/
- public function getOverdosage()
+ public function getClinicalPharmacology()
{
- return $this->overdosage;
+ return $this->clinicalPharmacology;
}
/**
- * @param string $overdosage
+ * @param string $clinicalPharmacology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOverdosage($overdosage)
+ public function setClinicalPharmacology($clinicalPharmacology)
{
$types = [
"string",
];
- $overdosage = self::checkTypes($overdosage, $types);
+ $clinicalPharmacology = self::checkTypes($clinicalPharmacology, $types);
- $this->overdosage = $overdosage;
+ $this->clinicalPharmacology = $clinicalPharmacology;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\DoseSchedule|string
*/
- public function getLegalStatus()
+ public function getDoseSchedule()
{
- return $this->legalStatus;
+ return $this->doseSchedule;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $legalStatus
+ * @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 setLegalStatus($legalStatus)
+ public function setDoseSchedule($doseSchedule)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
+ "\OpenActive\Models\SchemaOrg\DoseSchedule",
"string",
- "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
- "null",
];
- $legalStatus = self::checkTypes($legalStatus, $types);
+ $doseSchedule = self::checkTypes($doseSchedule, $types);
- $this->legalStatus = $legalStatus;
+ $this->doseSchedule = $doseSchedule;
}
/**
* @return string
*/
- public function getMechanismOfAction()
+ public function getActiveIngredient()
{
- return $this->mechanismOfAction;
+ return $this->activeIngredient;
}
/**
- * @param string $mechanismOfAction
+ * @param string $activeIngredient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMechanismOfAction($mechanismOfAction)
+ public function setActiveIngredient($activeIngredient)
{
$types = [
"string",
];
- $mechanismOfAction = self::checkTypes($mechanismOfAction, $types);
+ $activeIngredient = self::checkTypes($activeIngredient, $types);
- $this->mechanismOfAction = $mechanismOfAction;
+ $this->activeIngredient = $activeIngredient;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Drug|string
*/
- public function getClinicalPharmacology()
+ public function getInteractingDrug()
{
- return $this->clinicalPharmacology;
+ return $this->interactingDrug;
}
/**
- * @param string $clinicalPharmacology
+ * @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 setClinicalPharmacology($clinicalPharmacology)
+ public function setInteractingDrug($interactingDrug)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Drug",
"string",
];
- $clinicalPharmacology = self::checkTypes($clinicalPharmacology, $types);
+ $interactingDrug = self::checkTypes($interactingDrug, $types);
- $this->clinicalPharmacology = $clinicalPharmacology;
+ $this->interactingDrug = $interactingDrug;
}
/**
* @return string
*/
- public function getRxcui()
+ public function getOverdosage()
{
- return $this->rxcui;
+ return $this->overdosage;
}
/**
- * @param string $rxcui
+ * @param string $overdosage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRxcui($rxcui)
+ public function setOverdosage($overdosage)
{
$types = [
"string",
];
- $rxcui = self::checkTypes($rxcui, $types);
+ $overdosage = self::checkTypes($overdosage, $types);
- $this->rxcui = $rxcui;
+ $this->overdosage = $overdosage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Drug|string
+ * @return \OpenActive\Models\SchemaOrg\DrugStrength|string
*/
- public function getInteractingDrug()
+ public function getAvailableStrength()
{
- return $this->interactingDrug;
+ return $this->availableStrength;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Drug|string $interactingDrug
+ * @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 setInteractingDrug($interactingDrug)
+ public function setAvailableStrength($availableStrength)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Drug",
+ "\OpenActive\Models\SchemaOrg\DrugStrength",
"string",
];
- $interactingDrug = self::checkTypes($interactingDrug, $types);
+ $availableStrength = self::checkTypes($availableStrength, $types);
- $this->interactingDrug = $interactingDrug;
+ $this->availableStrength = $availableStrength;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string
*/
- public function getDosageForm()
+ public function getPrescriptionStatus()
{
- return $this->dosageForm;
+ return $this->prescriptionStatus;
}
/**
- * @param string $dosageForm
+ * @param \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string $prescriptionStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDosageForm($dosageForm)
+ public function setPrescriptionStatus($prescriptionStatus)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus",
"string",
];
- $dosageForm = self::checkTypes($dosageForm, $types);
+ $prescriptionStatus = self::checkTypes($prescriptionStatus, $types);
- $this->dosageForm = $dosageForm;
+ $this->prescriptionStatus = $prescriptionStatus;
}
/**
* @return string
*/
- public function getLabelDetails()
+ public function getAdministrationRoute()
{
- return $this->labelDetails;
+ return $this->administrationRoute;
}
/**
- * @param string $labelDetails
+ * @param string $administrationRoute
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLabelDetails($labelDetails)
+ public function setAdministrationRoute($administrationRoute)
{
$types = [
"string",
];
- $labelDetails = self::checkTypes($labelDetails, $types);
+ $administrationRoute = self::checkTypes($administrationRoute, $types);
- $this->labelDetails = $labelDetails;
+ $this->administrationRoute = $administrationRoute;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
+ * @return string
*/
- public function getMaximumIntake()
+ public function getAlcoholWarning()
{
- return $this->maximumIntake;
+ return $this->alcoholWarning;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string $maximumIntake
+ * @param string $alcoholWarning
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumIntake($maximumIntake)
+ public function setAlcoholWarning($alcoholWarning)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule",
"string",
];
- $maximumIntake = self::checkTypes($maximumIntake, $types);
+ $alcoholWarning = self::checkTypes($alcoholWarning, $types);
- $this->maximumIntake = $maximumIntake;
+ $this->alcoholWarning = $alcoholWarning;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DrugClass|string
*/
- public function getActiveIngredient()
+ public function getDrugClass()
{
- return $this->activeIngredient;
+ return $this->drugClass;
}
/**
- * @param string $activeIngredient
+ * @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 setActiveIngredient($activeIngredient)
+ public function setDrugClass($drugClass)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DrugClass",
"string",
];
- $activeIngredient = self::checkTypes($activeIngredient, $types);
+ $drugClass = self::checkTypes($drugClass, $types);
- $this->activeIngredient = $activeIngredient;
+ $this->drugClass = $drugClass;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Drug|string
+ * @return \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string
*/
- public function getRelatedDrug()
+ public function getPregnancyCategory()
{
- return $this->relatedDrug;
+ return $this->pregnancyCategory;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Drug|string $relatedDrug
+ * @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 setRelatedDrug($relatedDrug)
+ public function setPregnancyCategory($pregnancyCategory)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Drug",
+ "\OpenActive\Models\SchemaOrg\DrugPregnancyCategory",
"string",
];
- $relatedDrug = self::checkTypes($relatedDrug, $types);
+ $pregnancyCategory = self::checkTypes($pregnancyCategory, $types);
- $this->relatedDrug = $relatedDrug;
+ $this->pregnancyCategory = $pregnancyCategory;
}
/**
* @return string
*/
- public function getAdministrationRoute()
+ public function getMechanismOfAction()
{
- return $this->administrationRoute;
+ return $this->mechanismOfAction;
}
/**
- * @param string $administrationRoute
+ * @param string $mechanismOfAction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdministrationRoute($administrationRoute)
+ public function setMechanismOfAction($mechanismOfAction)
{
$types = [
"string",
];
- $administrationRoute = self::checkTypes($administrationRoute, $types);
+ $mechanismOfAction = self::checkTypes($mechanismOfAction, $types);
- $this->administrationRoute = $administrationRoute;
+ $this->mechanismOfAction = $mechanismOfAction;
}
/**
- * @return string
+ * @return bool|null
*/
- public function getDrugUnit()
+ public function getIsProprietary()
{
- return $this->drugUnit;
+ return $this->isProprietary;
}
/**
- * @param string $drugUnit
+ * @param bool|null $isProprietary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDrugUnit($drugUnit)
+ public function setIsProprietary($isProprietary)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $drugUnit = self::checkTypes($drugUnit, $types);
+ $isProprietary = self::checkTypes($isProprietary, $types);
- $this->drugUnit = $drugUnit;
+ $this->isProprietary = $isProprietary;
}
/**
* @return string
*/
- public function getFoodWarning()
+ public function getLabelDetails()
{
- return $this->foodWarning;
+ return $this->labelDetails;
}
/**
- * @param string $foodWarning
+ * @param string $labelDetails
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFoodWarning($foodWarning)
+ public function setLabelDetails($labelDetails)
{
$types = [
"string",
];
- $foodWarning = self::checkTypes($foodWarning, $types);
+ $labelDetails = self::checkTypes($labelDetails, $types);
- $this->foodWarning = $foodWarning;
+ $this->labelDetails = $labelDetails;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
*/
- public function getWarning()
+ public function getMaximumIntake()
{
- return $this->warning;
+ return $this->maximumIntake;
}
/**
- * @param string $warning
+ * @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 setWarning($warning)
+ public function setMaximumIntake($maximumIntake)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule",
"string",
];
- $warning = self::checkTypes($warning, $types);
+ $maximumIntake = self::checkTypes($maximumIntake, $types);
- $this->warning = $warning;
+ $this->maximumIntake = $maximumIntake;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string
+ * @return string
*/
- public function getPrescriptionStatus()
+ public function getWarning()
{
- return $this->prescriptionStatus;
+ return $this->warning;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string $prescriptionStatus
+ * @param string $warning
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrescriptionStatus($prescriptionStatus)
+ public function setWarning($warning)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus",
"string",
];
- $prescriptionStatus = self::checkTypes($prescriptionStatus, $types);
+ $warning = self::checkTypes($warning, $types);
- $this->prescriptionStatus = $prescriptionStatus;
+ $this->warning = $warning;
}
/**
* @return string
*/
- public function getProprietaryName()
+ public function getDrugUnit()
{
- return $this->proprietaryName;
+ return $this->drugUnit;
}
/**
- * @param string $proprietaryName
+ * @param string $drugUnit
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProprietaryName($proprietaryName)
+ public function setDrugUnit($drugUnit)
{
$types = [
"string",
];
- $proprietaryName = self::checkTypes($proprietaryName, $types);
+ $drugUnit = self::checkTypes($drugUnit, $types);
- $this->proprietaryName = $proprietaryName;
+ $this->drugUnit = $drugUnit;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugClass|string
+ * @return string
*/
- public function getDrugClass()
+ public function getPrescribingInfo()
{
- return $this->drugClass;
+ return $this->prescribingInfo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugClass|string $drugClass
+ * @param string $prescribingInfo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDrugClass($drugClass)
+ public function setPrescribingInfo($prescribingInfo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugClass",
"string",
];
- $drugClass = self::checkTypes($drugClass, $types);
+ $prescribingInfo = self::checkTypes($prescribingInfo, $types);
- $this->drugClass = $drugClass;
+ $this->prescribingInfo = $prescribingInfo;
}
/**
* @return string
*/
- public function getPrescribingInfo()
+ public function getDosageForm()
{
- return $this->prescribingInfo;
+ return $this->dosageForm;
}
/**
- * @param string $prescribingInfo
+ * @param string $dosageForm
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrescribingInfo($prescribingInfo)
+ public function setDosageForm($dosageForm)
{
$types = [
"string",
];
- $prescribingInfo = self::checkTypes($prescribingInfo, $types);
+ $dosageForm = self::checkTypes($dosageForm, $types);
- $this->prescribingInfo = $prescribingInfo;
+ $this->dosageForm = $dosageForm;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string
+ * @return string
*/
- public function getIncludedInHealthInsurancePlan()
+ public function getPregnancyWarning()
{
- return $this->includedInHealthInsurancePlan;
+ return $this->pregnancyWarning;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string $includedInHealthInsurancePlan
+ * @param string $pregnancyWarning
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncludedInHealthInsurancePlan($includedInHealthInsurancePlan)
+ public function setPregnancyWarning($pregnancyWarning)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HealthInsurancePlan",
"string",
];
- $includedInHealthInsurancePlan = self::checkTypes($includedInHealthInsurancePlan, $types);
+ $pregnancyWarning = self::checkTypes($pregnancyWarning, $types);
- $this->includedInHealthInsurancePlan = $includedInHealthInsurancePlan;
+ $this->pregnancyWarning = $pregnancyWarning;
}
/**
@@ -840,224 +805,225 @@ public function setNonProprietaryName($nonProprietaryName)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getManufacturer()
+ public function getClincalPharmacology()
{
- return $this->manufacturer;
+ return $this->clincalPharmacology;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer
+ * @param string $clincalPharmacology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setManufacturer($manufacturer)
+ public function setClincalPharmacology($clincalPharmacology)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $manufacturer = self::checkTypes($manufacturer, $types);
+ $clincalPharmacology = self::checkTypes($clincalPharmacology, $types);
- $this->manufacturer = $manufacturer;
+ $this->clincalPharmacology = $clincalPharmacology;
}
/**
- * @return bool|null
+ * @return string
*/
- public function getIsProprietary()
+ public function getProprietaryName()
{
- return $this->isProprietary;
+ return $this->proprietaryName;
}
/**
- * @param bool|null $isProprietary
+ * @param string $proprietaryName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsProprietary($isProprietary)
+ public function setProprietaryName($proprietaryName)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $isProprietary = self::checkTypes($isProprietary, $types);
+ $proprietaryName = self::checkTypes($proprietaryName, $types);
- $this->isProprietary = $isProprietary;
+ $this->proprietaryName = $proprietaryName;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Drug|string
*/
- public function getClincalPharmacology()
+ public function getRelatedDrug()
{
- return $this->clincalPharmacology;
+ return $this->relatedDrug;
}
/**
- * @param string $clincalPharmacology
+ * @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 setClincalPharmacology($clincalPharmacology)
+ public function setRelatedDrug($relatedDrug)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Drug",
"string",
];
- $clincalPharmacology = self::checkTypes($clincalPharmacology, $types);
+ $relatedDrug = self::checkTypes($relatedDrug, $types);
- $this->clincalPharmacology = $clincalPharmacology;
+ $this->relatedDrug = $relatedDrug;
}
/**
- * @return bool|null
+ * @return string
*/
- public function getIsAvailableGenerically()
+ public function getFoodWarning()
{
- return $this->isAvailableGenerically;
+ return $this->foodWarning;
}
/**
- * @param bool|null $isAvailableGenerically
+ * @param string $foodWarning
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsAvailableGenerically($isAvailableGenerically)
+ public function setFoodWarning($foodWarning)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $isAvailableGenerically = self::checkTypes($isAvailableGenerically, $types);
+ $foodWarning = self::checkTypes($foodWarning, $types);
- $this->isAvailableGenerically = $isAvailableGenerically;
+ $this->foodWarning = $foodWarning;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- public function getBreastfeedingWarning()
+ public function getLegalStatus()
{
- return $this->breastfeedingWarning;
+ return $this->legalStatus;
}
/**
- * @param string $breastfeedingWarning
+ * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null $legalStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBreastfeedingWarning($breastfeedingWarning)
+ public function setLegalStatus($legalStatus)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
+ "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
"string",
+ "null",
];
- $breastfeedingWarning = self::checkTypes($breastfeedingWarning, $types);
+ $legalStatus = self::checkTypes($legalStatus, $types);
- $this->breastfeedingWarning = $breastfeedingWarning;
+ $this->legalStatus = $legalStatus;
}
/**
* @return string
*/
- public function getPregnancyWarning()
+ public function getRxcui()
{
- return $this->pregnancyWarning;
+ return $this->rxcui;
}
/**
- * @param string $pregnancyWarning
+ * @param string $rxcui
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPregnancyWarning($pregnancyWarning)
+ public function setRxcui($rxcui)
{
$types = [
"string",
];
- $pregnancyWarning = self::checkTypes($pregnancyWarning, $types);
+ $rxcui = self::checkTypes($rxcui, $types);
- $this->pregnancyWarning = $pregnancyWarning;
+ $this->rxcui = $rxcui;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string
*/
- public function getAlcoholWarning()
+ public function getIncludedInHealthInsurancePlan()
{
- return $this->alcoholWarning;
+ return $this->includedInHealthInsurancePlan;
}
/**
- * @param string $alcoholWarning
+ * @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 setAlcoholWarning($alcoholWarning)
+ public function setIncludedInHealthInsurancePlan($includedInHealthInsurancePlan)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\HealthInsurancePlan",
"string",
];
- $alcoholWarning = self::checkTypes($alcoholWarning, $types);
+ $includedInHealthInsurancePlan = self::checkTypes($includedInHealthInsurancePlan, $types);
- $this->alcoholWarning = $alcoholWarning;
+ $this->includedInHealthInsurancePlan = $includedInHealthInsurancePlan;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DoseSchedule|string
+ * @return bool|null
*/
- public function getDoseSchedule()
+ public function getIsAvailableGenerically()
{
- return $this->doseSchedule;
+ return $this->isAvailableGenerically;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DoseSchedule|string $doseSchedule
+ * @param bool|null $isAvailableGenerically
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDoseSchedule($doseSchedule)
+ public function setIsAvailableGenerically($isAvailableGenerically)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DoseSchedule",
- "string",
+ "bool",
+ "null",
];
- $doseSchedule = self::checkTypes($doseSchedule, $types);
+ $isAvailableGenerically = self::checkTypes($isAvailableGenerically, $types);
- $this->doseSchedule = $doseSchedule;
+ $this->isAvailableGenerically = $isAvailableGenerically;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugStrength|string
+ * @return string
*/
- public function getAvailableStrength()
+ public function getBreastfeedingWarning()
{
- return $this->availableStrength;
+ return $this->breastfeedingWarning;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugStrength|string $availableStrength
+ * @param string $breastfeedingWarning
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableStrength($availableStrength)
+ public function setBreastfeedingWarning($breastfeedingWarning)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugStrength",
"string",
];
- $availableStrength = self::checkTypes($availableStrength, $types);
+ $breastfeedingWarning = self::checkTypes($breastfeedingWarning, $types);
- $this->availableStrength = $availableStrength;
+ $this->breastfeedingWarning = $breastfeedingWarning;
}
}
diff --git a/src/Models/SchemaOrg/DrugCost.php b/src/Models/SchemaOrg/DrugCost.php
index 2db962a3..fa4574b1 100644
--- a/src/Models/SchemaOrg/DrugCost.php
+++ b/src/Models/SchemaOrg/DrugCost.php
@@ -17,24 +17,24 @@ public static function getType()
public static function fieldList() {
$fields = [
- "applicableLocation" => "applicableLocation",
- "costPerUnit" => "costPerUnit",
- "costCategory" => "costCategory",
- "drugUnit" => "drugUnit",
"costCurrency" => "costCurrency",
+ "costPerUnit" => "costPerUnit",
"costOrigin" => "costOrigin",
+ "drugUnit" => "drugUnit",
+ "applicableLocation" => "applicableLocation",
+ "costCategory" => "costCategory",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The location in which the status applies.
+ * The currency (in 3-letter) of the drug cost. See: http://en.wikipedia.org/wiki/ISO_4217.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @var string
*/
- protected $applicableLocation;
+ protected $costCurrency;
/**
* The cost per unit of the drug.
@@ -45,12 +45,12 @@ public static function fieldList() {
protected $costPerUnit;
/**
- * The category of cost, such as wholesale, retail, reimbursement cap, etc.
+ * Additional details to capture the origin of the cost data. For example, 'Medicare Part B'.
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugCostCategory|string
+ * @var string
*/
- protected $costCategory;
+ protected $costOrigin;
/**
* The unit in which the drug is measured, e.g. '5 mg tablet'.
@@ -61,44 +61,43 @@ public static function fieldList() {
protected $drugUnit;
/**
- * The currency (in 3-letter of the drug cost. See: http://en.wikipedia.org/wiki/ISO_4217.
+ * The location in which the status applies.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $costCurrency;
+ protected $applicableLocation;
/**
- * Additional details to capture the origin of the cost data. For example, 'Medicare Part B'.
+ * The category of cost, such as wholesale, retail, reimbursement cap, etc.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DrugCostCategory|string
*/
- protected $costOrigin;
+ protected $costCategory;
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return string
*/
- public function getApplicableLocation()
+ public function getCostCurrency()
{
- return $this->applicableLocation;
+ return $this->costCurrency;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $applicableLocation
+ * @param string $costCurrency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicableLocation($applicableLocation)
+ public function setCostCurrency($costCurrency)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $applicableLocation = self::checkTypes($applicableLocation, $types);
+ $costCurrency = self::checkTypes($costCurrency, $types);
- $this->applicableLocation = $applicableLocation;
+ $this->costCurrency = $costCurrency;
}
/**
@@ -129,28 +128,27 @@ public function setCostPerUnit($costPerUnit)
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugCostCategory|string
+ * @return string
*/
- public function getCostCategory()
+ public function getCostOrigin()
{
- return $this->costCategory;
+ return $this->costOrigin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugCostCategory|string $costCategory
+ * @param string $costOrigin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCostCategory($costCategory)
+ public function setCostOrigin($costOrigin)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugCostCategory",
"string",
];
- $costCategory = self::checkTypes($costCategory, $types);
+ $costOrigin = self::checkTypes($costOrigin, $types);
- $this->costCategory = $costCategory;
+ $this->costOrigin = $costOrigin;
}
/**
@@ -178,51 +176,53 @@ public function setDrugUnit($drugUnit)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getCostCurrency()
+ public function getApplicableLocation()
{
- return $this->costCurrency;
+ return $this->applicableLocation;
}
/**
- * @param string $costCurrency
+ * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $applicableLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCostCurrency($costCurrency)
+ public function setApplicableLocation($applicableLocation)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $costCurrency = self::checkTypes($costCurrency, $types);
+ $applicableLocation = self::checkTypes($applicableLocation, $types);
- $this->costCurrency = $costCurrency;
+ $this->applicableLocation = $applicableLocation;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DrugCostCategory|string
*/
- public function getCostOrigin()
+ public function getCostCategory()
{
- return $this->costOrigin;
+ return $this->costCategory;
}
/**
- * @param string $costOrigin
+ * @param \OpenActive\Models\SchemaOrg\DrugCostCategory|string $costCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCostOrigin($costOrigin)
+ public function setCostCategory($costCategory)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DrugCostCategory",
"string",
];
- $costOrigin = self::checkTypes($costOrigin, $types);
+ $costCategory = self::checkTypes($costCategory, $types);
- $this->costOrigin = $costOrigin;
+ $this->costCategory = $costCategory;
}
}
diff --git a/src/Models/SchemaOrg/DrugStrength.php b/src/Models/SchemaOrg/DrugStrength.php
index a5eaf983..c19742fc 100644
--- a/src/Models/SchemaOrg/DrugStrength.php
+++ b/src/Models/SchemaOrg/DrugStrength.php
@@ -17,177 +17,177 @@ public static function getType()
public static function fieldList() {
$fields = [
- "availableIn" => "availableIn",
"strengthUnit" => "strengthUnit",
- "maximumIntake" => "maximumIntake",
"activeIngredient" => "activeIngredient",
"strengthValue" => "strengthValue",
+ "maximumIntake" => "maximumIntake",
+ "availableIn" => "availableIn",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The location in which the strength is available.
+ * The units of an active ingredient's strength, e.g. mg.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @var string
*/
- protected $availableIn;
+ protected $strengthUnit;
/**
- * The units of an active ingredient's strength, e.g. mg.
+ * An active ingredient, typically chemical compounds and/or biologic substances.
*
*
* @var string
*/
- protected $strengthUnit;
+ protected $activeIngredient;
/**
- * Recommended intake of this supplement for a given population as defined by a specific recommending authority.
+ * The value of an active ingredient's strength, e.g. 325.
*
*
- * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
+ * @var Number|null
*/
- protected $maximumIntake;
+ protected $strengthValue;
/**
- * 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;
/**
- * The value of an active ingredient's strength, e.g. 325.
+ * The location in which the strength is available.
*
*
- * @var Number|null
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $strengthValue;
+ protected $availableIn;
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return string
*/
- public function getAvailableIn()
+ public function getStrengthUnit()
{
- return $this->availableIn;
+ return $this->strengthUnit;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $availableIn
+ * @param string $strengthUnit
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableIn($availableIn)
+ public function setStrengthUnit($strengthUnit)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $availableIn = self::checkTypes($availableIn, $types);
+ $strengthUnit = self::checkTypes($strengthUnit, $types);
- $this->availableIn = $availableIn;
+ $this->strengthUnit = $strengthUnit;
}
/**
* @return string
*/
- public function getStrengthUnit()
+ public function getActiveIngredient()
{
- return $this->strengthUnit;
+ return $this->activeIngredient;
}
/**
- * @param string $strengthUnit
+ * @param string $activeIngredient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStrengthUnit($strengthUnit)
+ public function setActiveIngredient($activeIngredient)
{
$types = [
"string",
];
- $strengthUnit = self::checkTypes($strengthUnit, $types);
+ $activeIngredient = self::checkTypes($activeIngredient, $types);
- $this->strengthUnit = $strengthUnit;
+ $this->activeIngredient = $activeIngredient;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
+ * @return Number|null
*/
- public function getMaximumIntake()
+ public function getStrengthValue()
{
- return $this->maximumIntake;
+ return $this->strengthValue;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string $maximumIntake
+ * @param Number|null $strengthValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumIntake($maximumIntake)
+ public function setStrengthValue($strengthValue)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule",
- "string",
+ "Number",
+ "null",
];
- $maximumIntake = self::checkTypes($maximumIntake, $types);
+ $strengthValue = self::checkTypes($strengthValue, $types);
- $this->maximumIntake = $maximumIntake;
+ $this->strengthValue = $strengthValue;
}
/**
- * @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 Number|null
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getStrengthValue()
+ public function getAvailableIn()
{
- return $this->strengthValue;
+ return $this->availableIn;
}
/**
- * @param Number|null $strengthValue
+ * @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 setStrengthValue($strengthValue)
+ public function setAvailableIn($availableIn)
{
$types = [
- "Number",
- "null",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "string",
];
- $strengthValue = self::checkTypes($strengthValue, $types);
+ $availableIn = self::checkTypes($availableIn, $types);
- $this->strengthValue = $strengthValue;
+ $this->availableIn = $availableIn;
}
}
diff --git a/src/Models/SchemaOrg/EducationEvent.php b/src/Models/SchemaOrg/EducationEvent.php
index 5c799d1e..be9e1671 100644
--- a/src/Models/SchemaOrg/EducationEvent.php
+++ b/src/Models/SchemaOrg/EducationEvent.php
@@ -17,22 +17,14 @@ public static function getType()
public static function fieldList() {
$fields = [
- "teaches" => "teaches",
"educationalLevel" => "educationalLevel",
"assesses" => "assesses",
+ "teaches" => "teaches",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.
- *
- *
- * @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.
*
@@ -50,29 +42,12 @@ public static function fieldList() {
protected $assesses;
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
- */
- public function getTeaches()
- {
- return $this->teaches;
- }
-
- /**
- * @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
@@ -124,4 +99,29 @@ public function setAssesses($assesses)
$this->assesses = $assesses;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ */
+ public function getTeaches()
+ {
+ return $this->teaches;
+ }
+
+ /**
+ * @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 setTeaches($teaches)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "string",
+ ];
+
+ $teaches = self::checkTypes($teaches, $types);
+
+ $this->teaches = $teaches;
+ }
+
}
diff --git a/src/Models/SchemaOrg/EducationalOccupationalCredential.php b/src/Models/SchemaOrg/EducationalOccupationalCredential.php
index fc10910a..dbb157ff 100644
--- a/src/Models/SchemaOrg/EducationalOccupationalCredential.php
+++ b/src/Models/SchemaOrg/EducationalOccupationalCredential.php
@@ -17,32 +17,40 @@ public static function getType()
public static function fieldList() {
$fields = [
- "validFor" => "validFor",
"educationalLevel" => "educationalLevel",
- "credentialCategory" => "credentialCategory",
"recognizedBy" => "recognizedBy",
- "competencyRequired" => "competencyRequired",
"validIn" => "validIn",
+ "credentialCategory" => "credentialCategory",
+ "validFor" => "validFor",
+ "competencyRequired" => "competencyRequired",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The duration of validity of a permit or similar thing.
+ * 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 DateInterval|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $validFor;
+ protected $educationalLevel;
/**
- * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators.
+ * 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 $educationalLevel;
+ protected $recognizedBy;
+
+ /**
+ * The geographic area where a permit or similar thing is valid.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ */
+ protected $validIn;
/**
* The category or type of credential being described, for example "degree”, “certificate”, “badge”, or more specific term.
@@ -53,12 +61,12 @@ public static function fieldList() {
protected $credentialCategory;
/**
- * An organization that acknowledges the validity, value or utility of a credential. Note: recognition may include a process of quality assurance or accreditation.
+ * The duration of validity of a permit or similar thing.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var DateInterval|string|null
*/
- protected $recognizedBy;
+ protected $validFor;
/**
* Knowledge, skill, ability or personal attribute that must be demonstrated by a person or other entity in order to do something such as earn an Educational Occupational Credential or understand a LearningResource.
@@ -69,62 +77,78 @@ public static function fieldList() {
protected $competencyRequired;
/**
- * The geographic area where a permit or similar thing is valid.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $validIn;
+ public function getEducationalLevel()
+ {
+ return $this->educationalLevel;
+ }
/**
- * @return DateInterval|string|null
+ * @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 getValidFor()
+ public function setEducationalLevel($educationalLevel)
{
- return $this->validFor;
+ $types = [
+ "string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ ];
+
+ $educationalLevel = self::checkTypes($educationalLevel, $types);
+
+ $this->educationalLevel = $educationalLevel;
}
/**
- * @param DateInterval|string|null $validFor
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
+ */
+ public function getRecognizedBy()
+ {
+ return $this->recognizedBy;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $recognizedBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidFor($validFor)
+ public function setRecognizedBy($recognizedBy)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "null",
];
- $validFor = self::checkTypes($validFor, $types);
+ $recognizedBy = self::checkTypes($recognizedBy, $types);
- $this->validFor = $validFor;
+ $this->recognizedBy = $recognizedBy;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getEducationalLevel()
+ public function getValidIn()
{
- return $this->educationalLevel;
+ return $this->validIn;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel
+ * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $validIn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalLevel($educationalLevel)
+ public function setValidIn($validIn)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $educationalLevel = self::checkTypes($educationalLevel, $types);
+ $validIn = self::checkTypes($validIn, $types);
- $this->educationalLevel = $educationalLevel;
+ $this->validIn = $validIn;
}
/**
@@ -153,28 +177,29 @@ public function setCredentialCategory($credentialCategory)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return DateInterval|string|null
*/
- public function getRecognizedBy()
+ public function getValidFor()
{
- return $this->recognizedBy;
+ return $this->validFor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $recognizedBy
+ * @param DateInterval|string|null $validFor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecognizedBy($recognizedBy)
+ public function setValidFor($validFor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "DateInterval",
"string",
+ "null",
];
- $recognizedBy = self::checkTypes($recognizedBy, $types);
+ $validFor = self::checkTypes($validFor, $types);
- $this->recognizedBy = $recognizedBy;
+ $this->validFor = $validFor;
}
/**
@@ -202,29 +227,4 @@ public function setCompetencyRequired($competencyRequired)
$this->competencyRequired = $competencyRequired;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
- */
- public function getValidIn()
- {
- return $this->validIn;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $validIn
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setValidIn($validIn)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "string",
- ];
-
- $validIn = self::checkTypes($validIn, $types);
-
- $this->validIn = $validIn;
- }
-
}
diff --git a/src/Models/SchemaOrg/EducationalOccupationalProgram.php b/src/Models/SchemaOrg/EducationalOccupationalProgram.php
index 56cf7a09..ea841ab0 100644
--- a/src/Models/SchemaOrg/EducationalOccupationalProgram.php
+++ b/src/Models/SchemaOrg/EducationalOccupationalProgram.php
@@ -17,66 +17,76 @@ public static function getType()
public static function fieldList() {
$fields = [
- "programPrerequisites" => "programPrerequisites",
- "hasCourse" => "hasCourse",
- "startDate" => "startDate",
- "salaryUponCompletion" => "salaryUponCompletion",
- "termsPerYear" => "termsPerYear",
- "dayOfWeek" => "dayOfWeek",
+ "applicationStartDate" => "applicationStartDate",
+ "occupationalCategory" => "occupationalCategory",
"offers" => "offers",
+ "educationalProgramMode" => "educationalProgramMode",
"typicalCreditsPerTerm" => "typicalCreditsPerTerm",
- "applicationStartDate" => "applicationStartDate",
- "timeOfDay" => "timeOfDay",
- "endDate" => "endDate",
- "provider" => "provider",
+ "termsPerYear" => "termsPerYear",
+ "maximumEnrollment" => "maximumEnrollment",
+ "hasCourse" => "hasCourse",
+ "startDate" => "startDate",
"trainingSalary" => "trainingSalary",
- "educationalCredentialAwarded" => "educationalCredentialAwarded",
"numberOfCredits" => "numberOfCredits",
+ "salaryUponCompletion" => "salaryUponCompletion",
+ "timeOfDay" => "timeOfDay",
+ "applicationDeadline" => "applicationDeadline",
+ "programType" => "programType",
+ "dayOfWeek" => "dayOfWeek",
"timeToComplete" => "timeToComplete",
- "occupationalCredentialAwarded" => "occupationalCredentialAwarded",
"termDuration" => "termDuration",
- "educationalProgramMode" => "educationalProgramMode",
- "programType" => "programType",
- "maximumEnrollment" => "maximumEnrollment",
"financialAidEligible" => "financialAidEligible",
- "applicationDeadline" => "applicationDeadline",
- "occupationalCategory" => "occupationalCategory",
+ "occupationalCredentialAwarded" => "occupationalCredentialAwarded",
+ "provider" => "provider",
+ "educationalCredentialAwarded" => "educationalCredentialAwarded",
+ "endDate" => "endDate",
+ "programPrerequisites" => "programPrerequisites",
];
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.
+ * 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\Course|string
+ * @var string|\OpenActive\Models\SchemaOrg\CategoryCode
*/
- protected $hasCourse;
+ protected $occupationalCategory;
/**
- * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * 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 Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $startDate;
+ protected $offers;
/**
- * The expected salary upon completing the training.
+ * Similar to courseMode, the medium or means of delivery of the program as a whole. The value may either be a text label (e.g. "online", "onsite" or "blended"; "synchronous" or "asynchronous"; "full-time" or "part-time") or a URL reference to a term from a controlled vocabulary (e.g. https://ceds.ed.gov/element/001311#Asynchronous ).
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
+ * @var string
*/
- protected $salaryUponCompletion;
+ protected $educationalProgramMode;
+
+ /**
+ * 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
+ */
+ protected $typicalCreditsPerTerm;
/**
* 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.
@@ -87,85 +97,84 @@ public static function fieldList() {
protected $termsPerYear;
/**
- * The day of the week for which these opening hours are valid.
+ * The maximum number of students who may be enrolled in the program.
*
*
- * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|null
+ * @var int|null
*/
- protected $dayOfWeek;
+ protected $maximumEnrollment;
/**
- * 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 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 \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var \OpenActive\Models\SchemaOrg\Course|string
*/
- protected $offers;
+ protected $hasCourse;
/**
- * 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 start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
+ * @var Date|DateTime|null
*/
- protected $typicalCreditsPerTerm;
+ protected $startDate;
/**
- * The date at which the program begins collecting applications for the next enrollment cycle.
+ * The estimated salary earned while in the program.
*
*
- * @var Date|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
*/
- protected $applicationStartDate;
+ protected $trainingSalary;
/**
- * The time of day the program normally runs. For example, "evenings".
+ * The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram.
*
*
- * @var string
+ * @var int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
*/
- protected $timeOfDay;
+ protected $numberOfCredits;
/**
- * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * 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.
+ * The time of day the program normally runs. For example, "evenings".
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $provider;
+ protected $timeOfDay;
/**
- * The estimated salary earned while in the program.
+ * The date at which the program stops collecting applications for the next enrollment cycle.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
+ * @var Date|null
*/
- protected $trainingSalary;
+ protected $applicationDeadline;
/**
- * 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 type of educational or occupational program. For example, classroom, internship, alternance, etc.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $educationalCredentialAwarded;
+ protected $programType;
/**
- * The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram.
+ * The day of the week for which these opening hours are valid.
*
*
- * @var int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
+ * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|null
*/
- protected $numberOfCredits;
+ protected $dayOfWeek;
/**
* The expected length of time to complete the program if attending full-time.
@@ -175,14 +184,6 @@ public static function fieldList() {
*/
protected $timeToComplete;
- /**
- * A description of the qualification, award, certificate, diploma or other occupational credential awarded as a consequence of successful completion of this course or program.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
- */
- protected $occupationalCredentialAwarded;
-
/**
* 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.
*
@@ -192,487 +193,481 @@ public static function fieldList() {
protected $termDuration;
/**
- * 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 ).
+ * A financial aid type or program which students may use to pay for tuition or fees associated with the program.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $educationalProgramMode;
+ protected $financialAidEligible;
/**
- * The type of educational or occupational program. For example, classroom, internship, alternance, etc..
+ * 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\DefinedTerm
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $programType;
+ protected $occupationalCredentialAwarded;
/**
- * The maximum number of students who may be enrolled in the program.
+ * 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 int|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $maximumEnrollment;
+ protected $provider;
/**
- * A financial aid type or program which students may use to pay for tuition or fees associated with the program.
+ * A description of the qualification, award, certificate, diploma or other educational credential awarded as a consequence of successful completion of this course or program.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
*/
- protected $financialAidEligible;
+ protected $educationalCredentialAwarded;
/**
- * The date at which the program stops collecting applications for the next enrollment cycle.
+ * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var Date|null
+ * @var Date|DateTime|null
*/
- protected $applicationDeadline;
+ protected $endDate;
/**
- * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n
- * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC.
+ * Prerequisites for enrolling in the program.
*
*
- * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course
*/
- protected $occupationalCategory;
+ protected $programPrerequisites;
/**
- * @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 string|\OpenActive\Models\SchemaOrg\CategoryCode
*/
- public function getHasCourse()
+ public function getOccupationalCategory()
{
- return $this->hasCourse;
+ return $this->occupationalCategory;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Course|string $hasCourse
+ * @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 setHasCourse($hasCourse)
+ public function setOccupationalCategory($occupationalCategory)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Course",
"string",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
];
- $hasCourse = self::checkTypes($hasCourse, $types);
+ $occupationalCategory = self::checkTypes($occupationalCategory, $types);
- $this->hasCourse = $hasCourse;
+ $this->occupationalCategory = $occupationalCategory;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
- public function getStartDate()
+ public function getOffers()
{
- return $this->startDate;
+ return $this->offers;
}
/**
- * @param Date|DateTime|null $startDate
+ * @param \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string $offers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartDate($startDate)
+ public function setOffers($offers)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\Offer",
+ "string",
];
- $startDate = self::checkTypes($startDate, $types);
+ $offers = self::checkTypes($offers, $types);
- $this->startDate = $startDate;
+ $this->offers = $offers;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
+ * @return string
*/
- public function getSalaryUponCompletion()
+ public function getEducationalProgramMode()
{
- return $this->salaryUponCompletion;
+ return $this->educationalProgramMode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $salaryUponCompletion
+ * @param string $educationalProgramMode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSalaryUponCompletion($salaryUponCompletion)
+ public function setEducationalProgramMode($educationalProgramMode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"string",
];
- $salaryUponCompletion = self::checkTypes($salaryUponCompletion, $types);
+ $educationalProgramMode = self::checkTypes($educationalProgramMode, $types);
- $this->salaryUponCompletion = $salaryUponCompletion;
+ $this->educationalProgramMode = $educationalProgramMode;
}
/**
- * @return Number|null
+ * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
*/
- public function getTermsPerYear()
+ public function getTypicalCreditsPerTerm()
{
- return $this->termsPerYear;
+ return $this->typicalCreditsPerTerm;
}
/**
- * @param Number|null $termsPerYear
+ * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $typicalCreditsPerTerm
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTermsPerYear($termsPerYear)
+ public function setTypicalCreditsPerTerm($typicalCreditsPerTerm)
{
$types = [
- "Number",
+ "int",
+ "\OpenActive\Models\SchemaOrg\StructuredValue",
+ "string",
"null",
];
- $termsPerYear = self::checkTypes($termsPerYear, $types);
+ $typicalCreditsPerTerm = self::checkTypes($typicalCreditsPerTerm, $types);
- $this->termsPerYear = $termsPerYear;
+ $this->typicalCreditsPerTerm = $typicalCreditsPerTerm;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|null
+ * @return Number|null
*/
- public function getDayOfWeek()
+ public function getTermsPerYear()
{
- return $this->dayOfWeek;
+ return $this->termsPerYear;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|null $dayOfWeek
+ * @param Number|null $termsPerYear
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDayOfWeek($dayOfWeek)
+ public function setTermsPerYear($termsPerYear)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\DayOfWeek",
+ "Number",
"null",
];
- $dayOfWeek = self::checkTypes($dayOfWeek, $types);
+ $termsPerYear = self::checkTypes($termsPerYear, $types);
- $this->dayOfWeek = $dayOfWeek;
+ $this->termsPerYear = $termsPerYear;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return int|null
*/
- public function getOffers()
+ public function getMaximumEnrollment()
{
- return $this->offers;
+ return $this->maximumEnrollment;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @param int|null $maximumEnrollment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOffers($offers)
+ public function setMaximumEnrollment($maximumEnrollment)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
- "string",
+ "int",
+ "null",
];
- $offers = self::checkTypes($offers, $types);
+ $maximumEnrollment = self::checkTypes($maximumEnrollment, $types);
- $this->offers = $offers;
+ $this->maximumEnrollment = $maximumEnrollment;
}
/**
- * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\Course|string
*/
- public function getTypicalCreditsPerTerm()
+ public function getHasCourse()
{
- return $this->typicalCreditsPerTerm;
+ return $this->hasCourse;
}
/**
- * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $typicalCreditsPerTerm
+ * @param \OpenActive\Models\SchemaOrg\Course|string $hasCourse
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTypicalCreditsPerTerm($typicalCreditsPerTerm)
+ public function setHasCourse($hasCourse)
{
$types = [
- "int",
- "\OpenActive\Models\SchemaOrg\StructuredValue",
+ "\OpenActive\Models\SchemaOrg\Course",
"string",
- "null",
];
- $typicalCreditsPerTerm = self::checkTypes($typicalCreditsPerTerm, $types);
+ $hasCourse = self::checkTypes($hasCourse, $types);
- $this->typicalCreditsPerTerm = $typicalCreditsPerTerm;
+ $this->hasCourse = $hasCourse;
}
/**
- * @return Date|null
+ * @return Date|DateTime|null
*/
- public function getApplicationStartDate()
+ public function getStartDate()
{
- return $this->applicationStartDate;
+ return $this->startDate;
}
/**
- * @param Date|null $applicationStartDate
+ * @param Date|DateTime|null $startDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicationStartDate($applicationStartDate)
+ public function setStartDate($startDate)
{
$types = [
"Date",
+ "DateTime",
"null",
];
- $applicationStartDate = self::checkTypes($applicationStartDate, $types);
+ $startDate = self::checkTypes($startDate, $types);
- $this->applicationStartDate = $applicationStartDate;
+ $this->startDate = $startDate;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
*/
- public function getTimeOfDay()
+ public function getTrainingSalary()
{
- return $this->timeOfDay;
+ return $this->trainingSalary;
}
/**
- * @param string $timeOfDay
+ * @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 setTimeOfDay($timeOfDay)
+ public function setTrainingSalary($trainingSalary)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"string",
];
- $timeOfDay = self::checkTypes($timeOfDay, $types);
+ $trainingSalary = self::checkTypes($trainingSalary, $types);
- $this->timeOfDay = $timeOfDay;
+ $this->trainingSalary = $trainingSalary;
}
/**
- * @return Date|DateTime|null
+ * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
*/
- public function getEndDate()
+ public function getNumberOfCredits()
{
- return $this->endDate;
+ return $this->numberOfCredits;
}
/**
- * @param Date|DateTime|null $endDate
+ * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $numberOfCredits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndDate($endDate)
+ public function setNumberOfCredits($numberOfCredits)
{
$types = [
- "Date",
- "DateTime",
+ "int",
+ "\OpenActive\Models\SchemaOrg\StructuredValue",
+ "string",
"null",
];
- $endDate = self::checkTypes($endDate, $types);
+ $numberOfCredits = self::checkTypes($numberOfCredits, $types);
- $this->endDate = $endDate;
+ $this->numberOfCredits = $numberOfCredits;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
*/
- public function getProvider()
+ public function getSalaryUponCompletion()
{
- return $this->provider;
+ return $this->salaryUponCompletion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @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 setProvider($provider)
+ public function setSalaryUponCompletion($salaryUponCompletion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"string",
];
- $provider = self::checkTypes($provider, $types);
+ $salaryUponCompletion = self::checkTypes($salaryUponCompletion, $types);
- $this->provider = $provider;
+ $this->salaryUponCompletion = $salaryUponCompletion;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
+ * @return string
*/
- public function getTrainingSalary()
+ public function getTimeOfDay()
{
- return $this->trainingSalary;
+ return $this->timeOfDay;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $trainingSalary
+ * @param string $timeOfDay
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTrainingSalary($trainingSalary)
+ public function setTimeOfDay($timeOfDay)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"string",
];
- $trainingSalary = self::checkTypes($trainingSalary, $types);
+ $timeOfDay = self::checkTypes($timeOfDay, $types);
- $this->trainingSalary = $trainingSalary;
+ $this->timeOfDay = $timeOfDay;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @return Date|null
*/
- public function getEducationalCredentialAwarded()
+ public function getApplicationDeadline()
{
- return $this->educationalCredentialAwarded;
+ return $this->applicationDeadline;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $educationalCredentialAwarded
+ * @param Date|null $applicationDeadline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalCredentialAwarded($educationalCredentialAwarded)
+ public function setApplicationDeadline($applicationDeadline)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
+ "Date",
+ "null",
];
- $educationalCredentialAwarded = self::checkTypes($educationalCredentialAwarded, $types);
+ $applicationDeadline = self::checkTypes($applicationDeadline, $types);
- $this->educationalCredentialAwarded = $educationalCredentialAwarded;
+ $this->applicationDeadline = $applicationDeadline;
}
/**
- * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getNumberOfCredits()
+ public function getProgramType()
{
- return $this->numberOfCredits;
+ return $this->programType;
}
/**
- * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $numberOfCredits
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $programType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfCredits($numberOfCredits)
+ public function setProgramType($programType)
{
$types = [
- "int",
- "\OpenActive\Models\SchemaOrg\StructuredValue",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
- "null",
];
- $numberOfCredits = self::checkTypes($numberOfCredits, $types);
+ $programType = self::checkTypes($programType, $types);
- $this->numberOfCredits = $numberOfCredits;
+ $this->programType = $programType;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|null
*/
- public function getTimeToComplete()
+ public function getDayOfWeek()
{
- return $this->timeToComplete;
+ return $this->dayOfWeek;
}
/**
- * @param DateInterval|string|null $timeToComplete
+ * @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 setTimeToComplete($timeToComplete)
+ public function setDayOfWeek($dayOfWeek)
{
$types = [
- "DateInterval",
- "string",
+ "\OpenActive\Enums\SchemaOrg\DayOfWeek",
"null",
];
- $timeToComplete = self::checkTypes($timeToComplete, $types);
+ $dayOfWeek = self::checkTypes($dayOfWeek, $types);
- $this->timeToComplete = $timeToComplete;
+ $this->dayOfWeek = $dayOfWeek;
}
/**
- * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @return DateInterval|string|null
*/
- public function getOccupationalCredentialAwarded()
+ public function getTimeToComplete()
{
- return $this->occupationalCredentialAwarded;
+ return $this->timeToComplete;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $occupationalCredentialAwarded
+ * @param DateInterval|string|null $timeToComplete
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationalCredentialAwarded($occupationalCredentialAwarded)
+ public function setTimeToComplete($timeToComplete)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
+ "DateInterval",
"string",
+ "null",
];
- $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types);
+ $timeToComplete = self::checkTypes($timeToComplete, $types);
- $this->occupationalCredentialAwarded = $occupationalCredentialAwarded;
+ $this->timeToComplete = $timeToComplete;
}
/**
@@ -702,152 +697,157 @@ public function setTermDuration($termDuration)
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getEducationalProgramMode()
+ public function getFinancialAidEligible()
{
- return $this->educationalProgramMode;
+ return $this->financialAidEligible;
}
/**
- * @param string $educationalProgramMode
+ * @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 setEducationalProgramMode($educationalProgramMode)
+ public function setFinancialAidEligible($financialAidEligible)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $educationalProgramMode = self::checkTypes($educationalProgramMode, $types);
+ $financialAidEligible = self::checkTypes($financialAidEligible, $types);
- $this->educationalProgramMode = $educationalProgramMode;
+ $this->financialAidEligible = $financialAidEligible;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getProgramType()
+ public function getOccupationalCredentialAwarded()
{
- return $this->programType;
+ return $this->occupationalCredentialAwarded;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $programType
+ * @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 setProgramType($programType)
+ public function setOccupationalCredentialAwarded($occupationalCredentialAwarded)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $programType = self::checkTypes($programType, $types);
+ $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types);
- $this->programType = $programType;
+ $this->occupationalCredentialAwarded = $occupationalCredentialAwarded;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getMaximumEnrollment()
+ public function getProvider()
{
- return $this->maximumEnrollment;
+ return $this->provider;
}
/**
- * @param int|null $maximumEnrollment
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $provider
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumEnrollment($maximumEnrollment)
+ public function setProvider($provider)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $maximumEnrollment = self::checkTypes($maximumEnrollment, $types);
+ $provider = self::checkTypes($provider, $types);
- $this->maximumEnrollment = $maximumEnrollment;
+ $this->provider = $provider;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
*/
- public function getFinancialAidEligible()
+ public function getEducationalCredentialAwarded()
{
- return $this->financialAidEligible;
+ return $this->educationalCredentialAwarded;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $financialAidEligible
+ * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $educationalCredentialAwarded
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFinancialAidEligible($financialAidEligible)
+ public function setEducationalCredentialAwarded($educationalCredentialAwarded)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $financialAidEligible = self::checkTypes($financialAidEligible, $types);
+ $educationalCredentialAwarded = self::checkTypes($educationalCredentialAwarded, $types);
- $this->financialAidEligible = $financialAidEligible;
+ $this->educationalCredentialAwarded = $educationalCredentialAwarded;
}
/**
- * @return Date|null
+ * @return Date|DateTime|null
*/
- public function getApplicationDeadline()
+ public function getEndDate()
{
- return $this->applicationDeadline;
+ return $this->endDate;
}
/**
- * @param Date|null $applicationDeadline
+ * @param Date|DateTime|null $endDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicationDeadline($applicationDeadline)
+ public function setEndDate($endDate)
{
$types = [
"Date",
+ "DateTime",
"null",
];
- $applicationDeadline = self::checkTypes($applicationDeadline, $types);
+ $endDate = self::checkTypes($endDate, $types);
- $this->applicationDeadline = $applicationDeadline;
+ $this->endDate = $endDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course
*/
- public function getOccupationalCategory()
+ public function getProgramPrerequisites()
{
- return $this->occupationalCategory;
+ return $this->programPrerequisites;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory
+ * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course $programPrerequisites
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationalCategory($occupationalCategory)
+ public function setProgramPrerequisites($programPrerequisites)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCode",
"string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
+ "\OpenActive\Models\SchemaOrg\AlignmentObject",
+ "\OpenActive\Models\SchemaOrg\Course",
];
- $occupationalCategory = self::checkTypes($occupationalCategory, $types);
+ $programPrerequisites = self::checkTypes($programPrerequisites, $types);
- $this->occupationalCategory = $occupationalCategory;
+ $this->programPrerequisites = $programPrerequisites;
}
}
diff --git a/src/Models/SchemaOrg/EmployeeRole.php b/src/Models/SchemaOrg/EmployeeRole.php
index 6740e91d..643a28e6 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|\OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|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|\OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null
*/
- public function getSalaryCurrency()
+ public function getBaseSalary()
{
- return $this->salaryCurrency;
+ return $this->baseSalary;
}
/**
- * @param string $salaryCurrency
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|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",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
+ "Number",
+ "null",
];
- $salaryCurrency = self::checkTypes($salaryCurrency, $types);
+ $baseSalary = self::checkTypes($baseSalary, $types);
- $this->salaryCurrency = $salaryCurrency;
+ $this->baseSalary = $baseSalary;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return string
*/
- public function getBaseSalary()
+ public function getSalaryCurrency()
{
- return $this->baseSalary;
+ return $this->salaryCurrency;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $baseSalary
+ * @param string $salaryCurrency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBaseSalary($baseSalary)
+ public function setSalaryCurrency($salaryCurrency)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "null",
];
- $baseSalary = self::checkTypes($baseSalary, $types);
+ $salaryCurrency = self::checkTypes($salaryCurrency, $types);
- $this->baseSalary = $baseSalary;
+ $this->salaryCurrency = $salaryCurrency;
}
}
diff --git a/src/Models/SchemaOrg/EndorseAction.php b/src/Models/SchemaOrg/EndorseAction.php
index ef4f2ddd..53123cb4 100644
--- a/src/Models/SchemaOrg/EndorseAction.php
+++ b/src/Models/SchemaOrg/EndorseAction.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* A sub property of participant. The person/organization being supported.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
protected $endorsee;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
public function getEndorsee()
{
@@ -40,15 +40,15 @@ public function getEndorsee()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $endorsee
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $endorsee
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setEndorsee($endorsee)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
diff --git a/src/Models/SchemaOrg/EnergyConsumptionDetails.php b/src/Models/SchemaOrg/EnergyConsumptionDetails.php
index 0233f6c3..376a10a4 100644
--- a/src/Models/SchemaOrg/EnergyConsumptionDetails.php
+++ b/src/Models/SchemaOrg/EnergyConsumptionDetails.php
@@ -17,14 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "energyEfficiencyScaleMax" => "energyEfficiencyScaleMax",
"energyEfficiencyScaleMin" => "energyEfficiencyScaleMin",
"hasEnergyEfficiencyCategory" => "hasEnergyEfficiencyCategory",
- "energyEfficiencyScaleMax" => "energyEfficiencyScaleMax",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * Specifies the most energy efficient class on the regulated EU energy consumption scale for the product category a product belongs to. For example, energy consumption for televisions placed on the market after January 1, 2020 is scaled from D to A+++.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string
+ */
+ protected $energyEfficiencyScaleMax;
+
/**
* Specifies the least energy efficient class on the regulated EU energy consumption scale for the product category a product belongs to. For example, energy consumption for televisions placed on the market after January 1, 2020 is scaled from D to A+++.
*
@@ -42,12 +50,29 @@ public static function fieldList() {
protected $hasEnergyEfficiencyCategory;
/**
- * Specifies the most energy efficient class on the regulated EU energy consumption scale for the product category a product belongs to. For example, energy consumption for televisions placed on the market after January 1, 2020 is scaled from D to A+++.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string
+ * @return \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string
*/
- protected $energyEfficiencyScaleMax;
+ public function getEnergyEfficiencyScaleMax()
+ {
+ return $this->energyEfficiencyScaleMax;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string $energyEfficiencyScaleMax
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setEnergyEfficiencyScaleMax($energyEfficiencyScaleMax)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration",
+ "string",
+ ];
+
+ $energyEfficiencyScaleMax = self::checkTypes($energyEfficiencyScaleMax, $types);
+
+ $this->energyEfficiencyScaleMax = $energyEfficiencyScaleMax;
+ }
/**
* @return \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string
@@ -99,29 +124,4 @@ public function setHasEnergyEfficiencyCategory($hasEnergyEfficiencyCategory)
$this->hasEnergyEfficiencyCategory = $hasEnergyEfficiencyCategory;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string
- */
- public function getEnergyEfficiencyScaleMax()
- {
- return $this->energyEfficiencyScaleMax;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string $energyEfficiencyScaleMax
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setEnergyEfficiencyScaleMax($energyEfficiencyScaleMax)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration",
- "string",
- ];
-
- $energyEfficiencyScaleMax = self::checkTypes($energyEfficiencyScaleMax, $types);
-
- $this->energyEfficiencyScaleMax = $energyEfficiencyScaleMax;
- }
-
}
diff --git a/src/Models/SchemaOrg/EngineSpecification.php b/src/Models/SchemaOrg/EngineSpecification.php
index e534fd48..3a5cdcf5 100644
--- a/src/Models/SchemaOrg/EngineSpecification.php
+++ b/src/Models/SchemaOrg/EngineSpecification.php
@@ -17,23 +17,23 @@ public static function getType()
public static function fieldList() {
$fields = [
- "fuelType" => "fuelType",
- "torque" => "torque",
"engineDisplacement" => "engineDisplacement",
- "enginePower" => "enginePower",
+ "torque" => "torque",
"engineType" => "engineType",
+ "fuelType" => "fuelType",
+ "enginePower" => "enginePower",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The type of fuel suitable for the engine or engines of the vehicle. If the vehicle has only one engine, this property can be attached directly to the vehicle.
+ * The volume swept by all of the pistons inside the cylinders of an internal combustion engine in a single movement. \n\nTypical unit code(s): CMQ for cubic centimeter, LTR for liters, INQ for cubic inches\n* Note 1: You can link to information about how the given value has been determined using the [[valueReference]] property.\n* Note 2: You can use [[minValue]] and [[maxValue]] to indicate ranges.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $fuelType;
+ protected $engineDisplacement;
/**
* The torque (turning force) of the vehicle's engine.\n\nTypical unit code(s): NU for newton metre (N m), F17 for pound-force per foot, or F48 for pound-force per inch\n\n* Note 1: You can link to information about how the given value has been determined (e.g. reference RPM) using the [[valueReference]] property.\n* Note 2: You can use [[minValue]] and [[maxValue]] to indicate ranges.
@@ -44,54 +44,53 @@ public static function fieldList() {
protected $torque;
/**
- * 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 string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- protected $engineDisplacement;
+ protected $engineType;
/**
- * The power of the vehicle's engine.
- * Typical unit code(s): KWT for kilowatt, BHP for brake horsepower, N12 for metric horsepower (PS, with 1 PS = 735,49875 W)\n\n* Note 1: There are many different ways of measuring an engine's power. For an overview, see [http://en.wikipedia.org/wiki/Horsepower#Engine_power_test_codes](http://en.wikipedia.org/wiki/Horsepower#Engine_power_test_codes).\n* Note 2: You can link to information about how the given value has been determined using the [[valueReference]] property.\n* Note 3: You can use [[minValue]] and [[maxValue]] to indicate ranges.
+ * The type of fuel suitable for the engine or engines of the vehicle. If the vehicle has only one engine, this property can be attached directly to the vehicle.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
*/
- protected $enginePower;
+ protected $fuelType;
/**
- * The type of engine or engines powering the vehicle.
+ * The 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\Enums\SchemaOrg\QualitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $engineType;
+ protected $enginePower;
/**
- * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getFuelType()
+ public function getEngineDisplacement()
{
- return $this->fuelType;
+ return $this->engineDisplacement;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $fuelType
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $engineDisplacement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFuelType($fuelType)
+ public function setEngineDisplacement($engineDisplacement)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
- "null",
];
- $fuelType = self::checkTypes($fuelType, $types);
+ $engineDisplacement = self::checkTypes($engineDisplacement, $types);
- $this->fuelType = $fuelType;
+ $this->engineDisplacement = $engineDisplacement;
}
/**
@@ -120,79 +119,80 @@ public function setTorque($torque)
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- public function getEngineDisplacement()
+ public function getEngineType()
{
- return $this->engineDisplacement;
+ return $this->engineType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $engineDisplacement
+ * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|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",
"string",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
+ "null",
];
- $engineDisplacement = self::checkTypes($engineDisplacement, $types);
+ $engineType = self::checkTypes($engineType, $types);
- $this->engineDisplacement = $engineDisplacement;
+ $this->engineType = $engineType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
*/
- public function getEnginePower()
+ public function getFuelType()
{
- return $this->enginePower;
+ return $this->fuelType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $enginePower
+ * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $fuelType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEnginePower($enginePower)
+ public function setFuelType($fuelType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
"string",
+ "null",
];
- $enginePower = self::checkTypes($enginePower, $types);
+ $fuelType = self::checkTypes($fuelType, $types);
- $this->enginePower = $enginePower;
+ $this->fuelType = $fuelType;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getEngineType()
+ public function getEnginePower()
{
- return $this->engineType;
+ return $this->enginePower;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $engineType
+ * @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 setEngineType($engineType)
+ public function setEnginePower($enginePower)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $engineType = self::checkTypes($engineType, $types);
+ $enginePower = self::checkTypes($enginePower, $types);
- $this->engineType = $engineType;
+ $this->enginePower = $enginePower;
}
}
diff --git a/src/Models/SchemaOrg/EntryPoint.php b/src/Models/SchemaOrg/EntryPoint.php
index 90f87fbb..72ad3769 100644
--- a/src/Models/SchemaOrg/EntryPoint.php
+++ b/src/Models/SchemaOrg/EntryPoint.php
@@ -17,244 +17,244 @@ public static function getType()
public static function fieldList() {
$fields = [
- "actionApplication" => "actionApplication",
+ "contentType" => "contentType",
+ "encodingType" => "encodingType",
+ "httpMethod" => "httpMethod",
"application" => "application",
"actionPlatform" => "actionPlatform",
- "httpMethod" => "httpMethod",
+ "actionApplication" => "actionApplication",
"urlTemplate" => "urlTemplate",
- "encodingType" => "encodingType",
- "contentType" => "contentType",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * 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 $actionApplication;
+ protected $contentType;
/**
- * An application that can complete the request.
+ * The supported encoding type(s) for an EntryPoint request.
*
*
- * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string
+ * @var string
*/
- protected $application;
+ protected $encodingType;
/**
- * 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 HTTP method that specifies the appropriate HTTP method for a request to an HTTP EntryPoint. Values are capitalized strings as used in HTTP.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null
+ * @var string
*/
- protected $actionPlatform;
+ protected $httpMethod;
/**
- * 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.
+ * 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 $urlTemplate;
+ protected $actionPlatform;
/**
- * The supported encoding type(s) for an EntryPoint request.
+ * An application that can complete the request.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
- protected $encodingType;
+ protected $actionApplication;
/**
- * The supported content type(s) for an EntryPoint response.
+ * An url template (RFC6570) that will be used to construct the target of the execution of the action.
*
*
* @var string
*/
- protected $contentType;
+ protected $urlTemplate;
/**
- * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string
+ * @return string
*/
- public function getActionApplication()
+ public function getContentType()
{
- return $this->actionApplication;
+ return $this->contentType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $actionApplication
+ * @param string $contentType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActionApplication($actionApplication)
+ public function setContentType($contentType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SoftwareApplication",
"string",
];
- $actionApplication = self::checkTypes($actionApplication, $types);
+ $contentType = self::checkTypes($contentType, $types);
- $this->actionApplication = $actionApplication;
+ $this->contentType = $contentType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string
+ * @return string
*/
- public function getApplication()
+ public function getEncodingType()
{
- return $this->application;
+ return $this->encodingType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $application
+ * @param string $encodingType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplication($application)
+ public function setEncodingType($encodingType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SoftwareApplication",
"string",
];
- $application = self::checkTypes($application, $types);
+ $encodingType = self::checkTypes($encodingType, $types);
- $this->application = $application;
+ $this->encodingType = $encodingType;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null
+ * @return string
*/
- public function getActionPlatform()
+ public function getHttpMethod()
{
- return $this->actionPlatform;
+ return $this->httpMethod;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null $actionPlatform
+ * @param string $httpMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActionPlatform($actionPlatform)
+ public function setHttpMethod($httpMethod)
{
$types = [
"string",
- "\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration",
- "null",
];
- $actionPlatform = self::checkTypes($actionPlatform, $types);
+ $httpMethod = self::checkTypes($httpMethod, $types);
- $this->actionPlatform = $actionPlatform;
+ $this->httpMethod = $httpMethod;
}
/**
- * @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 string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null
*/
- public function getUrlTemplate()
+ public function getActionPlatform()
{
- return $this->urlTemplate;
+ return $this->actionPlatform;
}
/**
- * @param string $urlTemplate
+ * @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 setUrlTemplate($urlTemplate)
+ public function setActionPlatform($actionPlatform)
{
$types = [
"string",
+ "\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration",
+ "null",
];
- $urlTemplate = self::checkTypes($urlTemplate, $types);
+ $actionPlatform = self::checkTypes($actionPlatform, $types);
- $this->urlTemplate = $urlTemplate;
+ $this->actionPlatform = $actionPlatform;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
- public function getEncodingType()
+ public function getActionApplication()
{
- return $this->encodingType;
+ return $this->actionApplication;
}
/**
- * @param string $encodingType
+ * @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 setEncodingType($encodingType)
+ public function setActionApplication($actionApplication)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\SoftwareApplication",
"string",
];
- $encodingType = self::checkTypes($encodingType, $types);
+ $actionApplication = self::checkTypes($actionApplication, $types);
- $this->encodingType = $encodingType;
+ $this->actionApplication = $actionApplication;
}
/**
* @return string
*/
- public function getContentType()
+ public function getUrlTemplate()
{
- return $this->contentType;
+ return $this->urlTemplate;
}
/**
- * @param string $contentType
+ * @param string $urlTemplate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContentType($contentType)
+ public function setUrlTemplate($urlTemplate)
{
$types = [
"string",
];
- $contentType = self::checkTypes($contentType, $types);
+ $urlTemplate = self::checkTypes($urlTemplate, $types);
- $this->contentType = $contentType;
+ $this->urlTemplate = $urlTemplate;
}
}
diff --git a/src/Models/SchemaOrg/Enumeration.php b/src/Models/SchemaOrg/Enumeration.php
index 62d87fa6..13c18f0c 100644
--- a/src/Models/SchemaOrg/Enumeration.php
+++ b/src/Models/SchemaOrg/Enumeration.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* Relates a term (i.e. a property, class or enumeration) to one that supersedes it.
*
*
- * @var \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null
+ * @var \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|null
*/
protected $supersededBy;
/**
- * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null
+ * @return \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|null
*/
public function getSupersededBy()
{
@@ -40,17 +40,17 @@ public function getSupersededBy()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null $supersededBy
+ * @param \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|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\Enums\PropertyEnumeration",
"\OpenActive\Models\SchemaOrg\Enumeration",
"\OpenActive\Models\SchemaOrg\Class",
"string",
- "\OpenActive\Enums\PropertyEnumeration",
"null",
];
diff --git a/src/Models/SchemaOrg/Episode.php b/src/Models/SchemaOrg/Episode.php
index faf85562..a8350f4f 100644
--- a/src/Models/SchemaOrg/Episode.php
+++ b/src/Models/SchemaOrg/Episode.php
@@ -18,16 +18,16 @@ public static function getType()
public static function fieldList() {
$fields = [
"episodeNumber" => "episodeNumber",
- "director" => "director",
- "actor" => "actor",
- "trailer" => "trailer",
"partOfSeries" => "partOfSeries",
- "duration" => "duration",
- "partOfSeason" => "partOfSeason",
- "productionCompany" => "productionCompany",
"actors" => "actors",
+ "trailer" => "trailer",
+ "productionCompany" => "productionCompany",
"musicBy" => "musicBy",
"directors" => "directors",
+ "partOfSeason" => "partOfSeason",
+ "duration" => "duration",
+ "director" => "director",
+ "actor" => "actor",
];
return array_merge(parent::fieldList(), $fields);
@@ -42,23 +42,23 @@ public static function fieldList() {
protected $episodeNumber;
/**
- * 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 series to which this episode or season belongs.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- protected $director;
+ protected $partOfSeries;
/**
- * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
+ * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $actor;
+ protected $actors;
/**
- * The trailer of a movie or tv/radio series, season, episode, etc.
+ * The trailer of a movie or TV/radio series, season, episode, etc.
*
*
* @var \OpenActive\Models\SchemaOrg\VideoObject|string
@@ -66,60 +66,60 @@ public static function fieldList() {
protected $trailer;
/**
- * The series to which this episode or season belongs.
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $partOfSeries;
+ protected $productionCompany;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The composer of the soundtrack.
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- protected $duration;
+ protected $musicBy;
/**
- * The season to which this episode 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\CreativeWorkSeason|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $partOfSeason;
+ protected $directors;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * The season to which this episode belongs.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- protected $productionCompany;
+ protected $partOfSeason;
/**
- * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
+ * The 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|string
+ * @var DateInterval|string|null
*/
- protected $actors;
+ protected $duration;
/**
- * The composer of the soundtrack.
+ * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $musicBy;
+ protected $director;
/**
- * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
+ * 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 $directors;
+ protected $actor;
/**
* @return string|int|null
@@ -148,53 +148,53 @@ public function setEpisodeNumber($episodeNumber)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- public function getDirector()
+ public function getPartOfSeries()
{
- return $this->director;
+ return $this->partOfSeries;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @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 setDirector($director)
+ public function setPartOfSeries($partOfSeries)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeries",
"string",
];
- $director = self::checkTypes($director, $types);
+ $partOfSeries = self::checkTypes($partOfSeries, $types);
- $this->director = $director;
+ $this->partOfSeries = $partOfSeries;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getActor()
+ public function getActors()
{
- return $this->actor;
+ return $this->actors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @param \OpenActive\Models\SchemaOrg\Person|string $actors
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActor($actor)
+ public function setActors($actors)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $actor = self::checkTypes($actor, $types);
+ $actors = self::checkTypes($actors, $types);
- $this->actor = $actor;
+ $this->actors = $actors;
}
/**
@@ -223,180 +223,180 @@ public function setTrailer($trailer)
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getPartOfSeries()
+ public function getProductionCompany()
{
- return $this->partOfSeries;
+ return $this->productionCompany;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries
+ * @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 setPartOfSeries($partOfSeries)
+ public function setProductionCompany($productionCompany)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeries",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $partOfSeries = self::checkTypes($partOfSeries, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->partOfSeries = $partOfSeries;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- public function getDuration()
+ public function getMusicBy()
{
- return $this->duration;
+ return $this->musicBy;
}
/**
- * @param DateInterval|string|null $duration
+ * @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 setDuration($duration)
+ public function setMusicBy($musicBy)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
"string",
- "null",
];
- $duration = self::checkTypes($duration, $types);
+ $musicBy = self::checkTypes($musicBy, $types);
- $this->duration = $duration;
+ $this->musicBy = $musicBy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPartOfSeason()
+ public function getDirectors()
{
- return $this->partOfSeason;
+ return $this->directors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $partOfSeason
+ * @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 setPartOfSeason($partOfSeason)
+ public function setDirectors($directors)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $partOfSeason = self::checkTypes($partOfSeason, $types);
+ $directors = self::checkTypes($directors, $types);
- $this->partOfSeason = $partOfSeason;
+ $this->directors = $directors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- public function getProductionCompany()
+ public function getPartOfSeason()
{
- return $this->productionCompany;
+ return $this->partOfSeason;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $partOfSeason
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionCompany($productionCompany)
+ public function setPartOfSeason($partOfSeason)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
"string",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $partOfSeason = self::checkTypes($partOfSeason, $types);
- $this->productionCompany = $productionCompany;
+ $this->partOfSeason = $partOfSeason;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return DateInterval|string|null
*/
- public function getActors()
+ public function getDuration()
{
- return $this->actors;
+ return $this->duration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actors
+ * @param DateInterval|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActors($actors)
+ public function setDuration($duration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "DateInterval",
"string",
+ "null",
];
- $actors = self::checkTypes($actors, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->actors = $actors;
+ $this->duration = $duration;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getMusicBy()
+ public function getDirector()
{
- return $this->musicBy;
+ return $this->director;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy
+ * @param \OpenActive\Models\SchemaOrg\Person|string $director
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMusicBy($musicBy)
+ public function setDirector($director)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\MusicGroup",
"string",
];
- $musicBy = self::checkTypes($musicBy, $types);
+ $director = self::checkTypes($director, $types);
- $this->musicBy = $musicBy;
+ $this->director = $director;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDirectors()
+ public function getActor()
{
- return $this->directors;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @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 setDirectors($directors)
+ public function setActor($actor)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->directors = $directors;
+ $this->actor = $actor;
}
}
diff --git a/src/Models/SchemaOrg/Event.php b/src/Models/SchemaOrg/Event.php
index ece71294..132a66dc 100644
--- a/src/Models/SchemaOrg/Event.php
+++ b/src/Models/SchemaOrg/Event.php
@@ -18,46 +18,46 @@ public static function getType()
public static function fieldList() {
$fields = [
"superEvent" => "superEvent",
- "eventAttendanceMode" => "eventAttendanceMode",
- "review" => "review",
+ "isAccessibleForFree" => "isAccessibleForFree",
+ "maximumPhysicalAttendeeCapacity" => "maximumPhysicalAttendeeCapacity",
+ "location" => "location",
+ "workFeatured" => "workFeatured",
+ "offers" => "offers",
+ "contributor" => "contributor",
+ "inLanguage" => "inLanguage",
+ "organizer" => "organizer",
"translator" => "translator",
- "startDate" => "startDate",
- "composer" => "composer",
- "maximumAttendeeCapacity" => "maximumAttendeeCapacity",
- "maximumVirtualAttendeeCapacity" => "maximumVirtualAttendeeCapacity",
- "director" => "director",
- "funding" => "funding",
+ "attendee" => "attendee",
"keywords" => "keywords",
- "audience" => "audience",
- "offers" => "offers",
- "subEvent" => "subEvent",
- "actor" => "actor",
- "eventStatus" => "eventStatus",
- "endDate" => "endDate",
- "funder" => "funder",
- "performer" => "performer",
"aggregateRating" => "aggregateRating",
- "typicalAgeRange" => "typicalAgeRange",
- "location" => "location",
- "performers" => "performers",
- "duration" => "duration",
- "organizer" => "organizer",
- "sponsor" => "sponsor",
- "previousStartDate" => "previousStartDate",
- "isAccessibleForFree" => "isAccessibleForFree",
+ "startDate" => "startDate",
"remainingAttendeeCapacity" => "remainingAttendeeCapacity",
+ "maximumAttendeeCapacity" => "maximumAttendeeCapacity",
"subEvents" => "subEvents",
- "workPerformed" => "workPerformed",
+ "sponsor" => "sponsor",
+ "typicalAgeRange" => "typicalAgeRange",
+ "eventStatus" => "eventStatus",
"doorTime" => "doorTime",
- "inLanguage" => "inLanguage",
+ "funder" => "funder",
"about" => "about",
- "recordedIn" => "recordedIn",
- "maximumPhysicalAttendeeCapacity" => "maximumPhysicalAttendeeCapacity",
- "attendee" => "attendee",
- "workFeatured" => "workFeatured",
- "eventSchedule" => "eventSchedule",
- "contributor" => "contributor",
+ "composer" => "composer",
+ "workPerformed" => "workPerformed",
+ "performers" => "performers",
+ "maximumVirtualAttendeeCapacity" => "maximumVirtualAttendeeCapacity",
"attendees" => "attendees",
+ "funding" => "funding",
+ "duration" => "duration",
+ "eventAttendanceMode" => "eventAttendanceMode",
+ "eventSchedule" => "eventSchedule",
+ "audience" => "audience",
+ "recordedIn" => "recordedIn",
+ "performer" => "performer",
+ "previousStartDate" => "previousStartDate",
+ "review" => "review",
+ "director" => "director",
+ "actor" => "actor",
+ "subEvent" => "subEvent",
+ "endDate" => "endDate",
];
return array_merge(parent::fieldList(), $fields);
@@ -72,331 +72,331 @@ public static function fieldList() {
protected $superEvent;
/**
- * The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix.
+ * A flag to signal that the item, event, or place is accessible for free.
*
*
- * @var \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null
+ * @var bool|null
*/
- protected $eventAttendanceMode;
+ protected $isAccessibleForFree;
/**
- * A review of the item.
+ * 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\Review|string
+ * @var int|null
*/
- protected $review;
+ protected $maximumPhysicalAttendeeCapacity;
/**
- * 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.
+ * 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\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|string
*/
- protected $translator;
+ protected $location;
/**
- * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * 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 Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $startDate;
+ protected $workFeatured;
/**
- * The person or organization who wrote a composition, or who is the composer of a work performed at some event.
+ * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
+ *
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $composer;
+ protected $offers;
/**
- * The total number of individuals that may attend an event or venue.
+ * A secondary contributor to the CreativeWork or Event.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $maximumAttendeeCapacity;
+ protected $contributor;
/**
- * The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]).
+ * 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 int|null
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $maximumVirtualAttendeeCapacity;
+ protected $inLanguage;
/**
- * 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 organizer of an Event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $director;
+ protected $organizer;
/**
- * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
+ * 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\Grant|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $funding;
+ protected $translator;
/**
- * 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 person or organization attending the event.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $keywords;
+ protected $attendee;
/**
- * An intended audience, i.e. a group for whom something was created.
+ * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.
*
*
- * @var \OpenActive\Models\SchemaOrg\Audience|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $audience;
+ protected $keywords;
/**
- * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
- *
+ * The overall rating, based on a collection of reviews or ratings, of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- protected $offers;
+ protected $aggregateRating;
/**
- * 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.
+ * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var Date|DateTime|null
*/
- protected $subEvent;
+ protected $startDate;
/**
- * 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 number of attendee places for an event that remain unallocated.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var int|null
*/
- protected $actor;
+ protected $remainingAttendeeCapacity;
/**
- * An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.
+ * The total number of individuals that may attend an event or venue.
*
*
- * @var \OpenActive\Enums\SchemaOrg\EventStatusType|null
+ * @var int|null
*/
- protected $eventStatus;
+ protected $maximumAttendeeCapacity;
/**
- * The end 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 $endDate;
+ protected $subEvents;
/**
- * A person or organization that supports (sponsors) something through some kind of financial contribution.
+ * 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 $funder;
+ protected $sponsor;
/**
- * A performer at the event—for example, a presenter, musician, musical group or actor.
+ * The typical expected age range, e.g. '7-9', '11-'.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $performer;
+ protected $typicalAgeRange;
/**
- * The overall rating, based on a collection of reviews or ratings, of the item.
+ * An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.
*
*
- * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @var \OpenActive\Enums\SchemaOrg\EventStatusType|null
*/
- protected $aggregateRating;
+ protected $eventStatus;
/**
- * The typical expected age range, e.g. '7-9', '11-'.
+ * The time admission will commence.
*
*
- * @var string
+ * @var DateTime|string|null
*/
- protected $typicalAgeRange;
+ protected $doorTime;
/**
- * The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
+ * A person or organization that supports (sponsors) something through some kind of financial contribution.
*
*
- * @var \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $location;
+ protected $funder;
/**
- * The main performer or performers of the event—for example, a presenter, musician, or actor.
+ * The subject matter of the content.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $performers;
+ protected $about;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The person or organization who wrote a composition, or who is the composer of a work performed at some event.
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $duration;
+ protected $composer;
/**
- * An organizer of an Event.
+ * A work performed in some event, for example a play performed in a TheaterEvent.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $organizer;
+ protected $workPerformed;
/**
- * 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 main performer or performers of the event—for example, a presenter, musician, or actor.
*
*
* @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $sponsor;
+ protected $performers;
/**
- * Used in conjunction with eventStatus for rescheduled or cancelled events. This property contains the previously scheduled start date. For rescheduled events, the startDate property should be used for the newly scheduled start date. In the (rare) case of an event that has been postponed and rescheduled multiple times, this field may be repeated.
+ * The maximum virtual attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]).
*
*
- * @var Date|null
+ * @var int|null
*/
- protected $previousStartDate;
+ protected $maximumVirtualAttendeeCapacity;
/**
- * A flag to signal that the item, event, or place is accessible for free.
+ * A person attending the event.
*
*
- * @var bool|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $isAccessibleForFree;
+ protected $attendees;
/**
- * The number of attendee places for an event that remain unallocated.
+ * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\Grant|string
*/
- protected $remainingAttendeeCapacity;
+ protected $funding;
/**
- * Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference.
+ * 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\Event|string
+ * @var DateInterval|string|null
*/
- protected $subEvents;
+ protected $duration;
/**
- * A work performed in some event, for example a play performed in a TheaterEvent.
+ * The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null
*/
- protected $workPerformed;
+ protected $eventAttendanceMode;
/**
- * The time admission will commence.
+ * 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 DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\Schedule|string
*/
- protected $doorTime;
+ protected $eventSchedule;
/**
- * 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 intended audience, i.e. a group for whom something was created.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var \OpenActive\Models\SchemaOrg\Audience|string
*/
- protected $inLanguage;
+ protected $audience;
/**
- * The subject matter of the content.
+ * The CreativeWork that captured all or part of this Event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $about;
+ protected $recordedIn;
/**
- * The CreativeWork that captured all or part of this Event.
+ * A performer at the event—for example, a presenter, musician, musical group or actor.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $recordedIn;
+ protected $performer;
/**
- * The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline 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 $maximumPhysicalAttendeeCapacity;
+ protected $previousStartDate;
/**
- * A person or organization attending the event.
+ * A review of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $attendee;
+ protected $review;
/**
- * 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).
+ * 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\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $workFeatured;
+ protected $director;
/**
- * 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.
+ * 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\Schedule|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $eventSchedule;
+ protected $actor;
/**
- * A secondary contributor to the CreativeWork or Event.
+ * 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\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $contributor;
+ protected $subEvent;
/**
- * A person attending the event.
+ * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var Date|DateTime|null
*/
- protected $attendees;
+ protected $endDate;
/**
* @return \OpenActive\Models\SchemaOrg\Event|string
@@ -424,450 +424,427 @@ public function setSuperEvent($superEvent)
}
/**
- * @return \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null
+ * @return bool|null
*/
- public function getEventAttendanceMode()
+ public function getIsAccessibleForFree()
{
- return $this->eventAttendanceMode;
+ return $this->isAccessibleForFree;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null $eventAttendanceMode
+ * @param bool|null $isAccessibleForFree
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEventAttendanceMode($eventAttendanceMode)
+ public function setIsAccessibleForFree($isAccessibleForFree)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration",
+ "bool",
"null",
];
- $eventAttendanceMode = self::checkTypes($eventAttendanceMode, $types);
+ $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types);
- $this->eventAttendanceMode = $eventAttendanceMode;
+ $this->isAccessibleForFree = $isAccessibleForFree;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return int|null
*/
- public function getReview()
+ public function getMaximumPhysicalAttendeeCapacity()
{
- return $this->review;
+ return $this->maximumPhysicalAttendeeCapacity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $review
+ * @param int|null $maximumPhysicalAttendeeCapacity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReview($review)
+ public function setMaximumPhysicalAttendeeCapacity($maximumPhysicalAttendeeCapacity)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
- "string",
+ "int",
+ "null",
];
- $review = self::checkTypes($review, $types);
+ $maximumPhysicalAttendeeCapacity = self::checkTypes($maximumPhysicalAttendeeCapacity, $types);
- $this->review = $review;
+ $this->maximumPhysicalAttendeeCapacity = $maximumPhysicalAttendeeCapacity;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|string
*/
- public function getTranslator()
+ public function getLocation()
{
- return $this->translator;
+ return $this->location;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $translator
+ * @param \OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|string $location
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTranslator($translator)
+ public function setLocation($location)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\VirtualLocation",
"string",
];
- $translator = self::checkTypes($translator, $types);
-
- $this->translator = $translator;
- }
-
- /**
- * @return Date|DateTime|null
- */
- public function getStartDate()
- {
- return $this->startDate;
- }
-
- /**
- * @param Date|DateTime|null $startDate
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setStartDate($startDate)
- {
- $types = [
- "Date",
- "DateTime",
- "null",
- ];
-
- $startDate = self::checkTypes($startDate, $types);
+ $location = self::checkTypes($location, $types);
- $this->startDate = $startDate;
+ $this->location = $location;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getComposer()
+ public function getWorkFeatured()
{
- return $this->composer;
+ return $this->workFeatured;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $composer
+ * @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 setComposer($composer)
+ public function setWorkFeatured($workFeatured)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $composer = self::checkTypes($composer, $types);
+ $workFeatured = self::checkTypes($workFeatured, $types);
- $this->composer = $composer;
+ $this->workFeatured = $workFeatured;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
- public function getMaximumAttendeeCapacity()
+ public function getOffers()
{
- return $this->maximumAttendeeCapacity;
+ return $this->offers;
}
/**
- * @param int|null $maximumAttendeeCapacity
+ * @param \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string $offers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumAttendeeCapacity($maximumAttendeeCapacity)
+ public function setOffers($offers)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\Offer",
+ "string",
];
- $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types);
+ $offers = self::checkTypes($offers, $types);
- $this->maximumAttendeeCapacity = $maximumAttendeeCapacity;
+ $this->offers = $offers;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getMaximumVirtualAttendeeCapacity()
+ public function getContributor()
{
- return $this->maximumVirtualAttendeeCapacity;
+ return $this->contributor;
}
/**
- * @param int|null $maximumVirtualAttendeeCapacity
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $contributor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumVirtualAttendeeCapacity($maximumVirtualAttendeeCapacity)
+ public function setContributor($contributor)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $maximumVirtualAttendeeCapacity = self::checkTypes($maximumVirtualAttendeeCapacity, $types);
+ $contributor = self::checkTypes($contributor, $types);
- $this->maximumVirtualAttendeeCapacity = $maximumVirtualAttendeeCapacity;
+ $this->contributor = $contributor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getDirector()
+ public function getInLanguage()
{
- return $this->director;
+ return $this->inLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @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 setDirector($director)
+ public function setInLanguage($inLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $director = self::checkTypes($director, $types);
+ $inLanguage = self::checkTypes($inLanguage, $types);
- $this->director = $director;
+ $this->inLanguage = $inLanguage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Grant|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getFunding()
+ public function getOrganizer()
{
- return $this->funding;
+ return $this->organizer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Grant|string $funding
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $organizer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFunding($funding)
+ public function setOrganizer($organizer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Grant",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $funding = self::checkTypes($funding, $types);
+ $organizer = self::checkTypes($organizer, $types);
- $this->funding = $funding;
+ $this->organizer = $organizer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getKeywords()
+ public function getTranslator()
{
- return $this->keywords;
+ return $this->translator;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $translator
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setKeywords($keywords)
+ public function setTranslator($translator)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $keywords = self::checkTypes($keywords, $types);
+ $translator = self::checkTypes($translator, $types);
- $this->keywords = $keywords;
+ $this->translator = $translator;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Audience|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getAudience()
+ public function getAttendee()
{
- return $this->audience;
+ return $this->attendee;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $attendee
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAudience($audience)
+ public function setAttendee($attendee)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $audience = self::checkTypes($audience, $types);
+ $attendee = self::checkTypes($attendee, $types);
- $this->audience = $audience;
+ $this->attendee = $attendee;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getOffers()
+ public function getKeywords()
{
- return $this->offers;
+ return $this->keywords;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $keywords
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOffers($offers)
+ public function setKeywords($keywords)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $offers = self::checkTypes($offers, $types);
+ $keywords = self::checkTypes($keywords, $types);
- $this->offers = $offers;
+ $this->keywords = $keywords;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- public function getSubEvent()
+ public function getAggregateRating()
{
- return $this->subEvent;
+ return $this->aggregateRating;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $subEvent
+ * @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 setSubEvent($subEvent)
+ public function setAggregateRating($aggregateRating)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\AggregateRating",
"string",
];
- $subEvent = self::checkTypes($subEvent, $types);
+ $aggregateRating = self::checkTypes($aggregateRating, $types);
- $this->subEvent = $subEvent;
+ $this->aggregateRating = $aggregateRating;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return Date|DateTime|null
*/
- public function getActor()
+ public function getStartDate()
{
- return $this->actor;
+ return $this->startDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @param Date|DateTime|null $startDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActor($actor)
+ public function setStartDate($startDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $actor = self::checkTypes($actor, $types);
+ $startDate = self::checkTypes($startDate, $types);
- $this->actor = $actor;
+ $this->startDate = $startDate;
}
/**
- * @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 int|null
*/
- public function getEndDate()
+ public function getMaximumAttendeeCapacity()
{
- return $this->endDate;
+ return $this->maximumAttendeeCapacity;
}
/**
- * @param Date|DateTime|null $endDate
+ * @param int|null $maximumAttendeeCapacity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndDate($endDate)
+ public function setMaximumAttendeeCapacity($maximumAttendeeCapacity)
{
$types = [
- "Date",
- "DateTime",
+ "int",
"null",
];
- $endDate = self::checkTypes($endDate, $types);
+ $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types);
- $this->endDate = $endDate;
+ $this->maximumAttendeeCapacity = $maximumAttendeeCapacity;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getFunder()
+ public function getSubEvents()
{
- return $this->funder;
+ return $this->subEvents;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
+ * @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 setFunder($funder)
+ public function setSubEvents($subEvents)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $funder = self::checkTypes($funder, $types);
+ $subEvents = self::checkTypes($subEvents, $types);
- $this->funder = $funder;
+ $this->subEvents = $subEvents;
}
/**
* @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPerformer()
+ public function getSponsor()
{
- return $this->performer;
+ return $this->sponsor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $performer
+ * @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 setPerformer($performer)
+ public function setSponsor($sponsor)
{
$types = [
"\OpenActive\Models\SchemaOrg\Organization",
@@ -875,390 +852,389 @@ public function setPerformer($performer)
"string",
];
- $performer = self::checkTypes($performer, $types);
+ $sponsor = self::checkTypes($sponsor, $types);
- $this->performer = $performer;
+ $this->sponsor = $sponsor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @return string
*/
- public function getAggregateRating()
+ public function getTypicalAgeRange()
{
- return $this->aggregateRating;
+ return $this->typicalAgeRange;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating
+ * @param string $typicalAgeRange
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAggregateRating($aggregateRating)
+ public function setTypicalAgeRange($typicalAgeRange)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AggregateRating",
"string",
];
- $aggregateRating = self::checkTypes($aggregateRating, $types);
+ $typicalAgeRange = self::checkTypes($typicalAgeRange, $types);
- $this->aggregateRating = $aggregateRating;
+ $this->typicalAgeRange = $typicalAgeRange;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\EventStatusType|null
*/
- public function getTypicalAgeRange()
+ public function getEventStatus()
{
- return $this->typicalAgeRange;
+ return $this->eventStatus;
}
/**
- * @param string $typicalAgeRange
+ * @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 setTypicalAgeRange($typicalAgeRange)
+ public function setEventStatus($eventStatus)
{
$types = [
- "string",
+ "\OpenActive\Enums\SchemaOrg\EventStatusType",
+ "null",
];
- $typicalAgeRange = self::checkTypes($typicalAgeRange, $types);
+ $eventStatus = self::checkTypes($eventStatus, $types);
- $this->typicalAgeRange = $typicalAgeRange;
+ $this->eventStatus = $eventStatus;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @return DateTime|string|null
*/
- public function getLocation()
+ public function getDoorTime()
{
- return $this->location;
+ return $this->doorTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location
+ * @param DateTime|string|null $doorTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLocation($location)
+ public function setDoorTime($doorTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PostalAddress",
- "string",
- "\OpenActive\Models\SchemaOrg\Place",
- "\OpenActive\Models\SchemaOrg\VirtualLocation",
+ "DateTime",
+ "Time",
+ "null",
];
- $location = self::checkTypes($location, $types);
+ $doorTime = self::checkTypes($doorTime, $types);
- $this->location = $location;
+ $this->doorTime = $doorTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPerformers()
+ public function getFunder()
{
- return $this->performers;
+ return $this->funder;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $performers
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPerformers($performers)
+ public function setFunder($funder)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $performers = self::checkTypes($performers, $types);
+ $funder = self::checkTypes($funder, $types);
- $this->performers = $performers;
+ $this->funder = $funder;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getDuration()
+ public function getAbout()
{
- return $this->duration;
+ return $this->about;
}
/**
- * @param DateInterval|string|null $duration
+ * @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 setDuration($duration)
+ public function setAbout($about)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
- "null",
];
- $duration = self::checkTypes($duration, $types);
+ $about = self::checkTypes($about, $types);
- $this->duration = $duration;
+ $this->about = $about;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getOrganizer()
+ public function getComposer()
{
- return $this->organizer;
+ return $this->composer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $organizer
+ * @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 setOrganizer($organizer)
+ public function setComposer($composer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $organizer = self::checkTypes($organizer, $types);
+ $composer = self::checkTypes($composer, $types);
- $this->organizer = $organizer;
+ $this->composer = $composer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getSponsor()
+ public function getWorkPerformed()
{
- return $this->sponsor;
+ return $this->workPerformed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workPerformed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSponsor($sponsor)
+ public function setWorkPerformed($workPerformed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $sponsor = self::checkTypes($sponsor, $types);
+ $workPerformed = self::checkTypes($workPerformed, $types);
- $this->sponsor = $sponsor;
+ $this->workPerformed = $workPerformed;
}
/**
- * @return Date|null
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPreviousStartDate()
+ public function getPerformers()
{
- return $this->previousStartDate;
+ return $this->performers;
}
/**
- * @param Date|null $previousStartDate
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $performers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPreviousStartDate($previousStartDate)
+ public function setPerformers($performers)
{
$types = [
- "Date",
- "null",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $previousStartDate = self::checkTypes($previousStartDate, $types);
+ $performers = self::checkTypes($performers, $types);
- $this->previousStartDate = $previousStartDate;
+ $this->performers = $performers;
}
/**
- * @return bool|null
+ * @return int|null
*/
- public function getIsAccessibleForFree()
+ public function getMaximumVirtualAttendeeCapacity()
{
- return $this->isAccessibleForFree;
+ return $this->maximumVirtualAttendeeCapacity;
}
/**
- * @param bool|null $isAccessibleForFree
+ * @param int|null $maximumVirtualAttendeeCapacity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsAccessibleForFree($isAccessibleForFree)
+ public function setMaximumVirtualAttendeeCapacity($maximumVirtualAttendeeCapacity)
{
$types = [
- "bool",
+ "int",
"null",
];
- $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types);
+ $maximumVirtualAttendeeCapacity = self::checkTypes($maximumVirtualAttendeeCapacity, $types);
- $this->isAccessibleForFree = $isAccessibleForFree;
+ $this->maximumVirtualAttendeeCapacity = $maximumVirtualAttendeeCapacity;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getRemainingAttendeeCapacity()
+ public function getAttendees()
{
- return $this->remainingAttendeeCapacity;
+ return $this->attendees;
}
/**
- * @param int|null $remainingAttendeeCapacity
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $attendees
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRemainingAttendeeCapacity($remainingAttendeeCapacity)
+ public function setAttendees($attendees)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $remainingAttendeeCapacity = self::checkTypes($remainingAttendeeCapacity, $types);
+ $attendees = self::checkTypes($attendees, $types);
- $this->remainingAttendeeCapacity = $remainingAttendeeCapacity;
+ $this->attendees = $attendees;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return \OpenActive\Models\SchemaOrg\Grant|string
*/
- public function getSubEvents()
+ public function getFunding()
{
- return $this->subEvents;
+ return $this->funding;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $subEvents
+ * @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 setSubEvents($subEvents)
+ public function setFunding($funding)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\Grant",
"string",
];
- $subEvents = self::checkTypes($subEvents, $types);
+ $funding = self::checkTypes($funding, $types);
- $this->subEvents = $subEvents;
+ $this->funding = $funding;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return DateInterval|string|null
*/
- public function getWorkPerformed()
+ public function getDuration()
{
- return $this->workPerformed;
+ return $this->duration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workPerformed
+ * @param DateInterval|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWorkPerformed($workPerformed)
+ public function setDuration($duration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "DateInterval",
"string",
+ "null",
];
- $workPerformed = self::checkTypes($workPerformed, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->workPerformed = $workPerformed;
+ $this->duration = $duration;
}
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null
*/
- public function getDoorTime()
+ public function getEventAttendanceMode()
{
- return $this->doorTime;
+ return $this->eventAttendanceMode;
}
/**
- * @param DateTime|string|null $doorTime
+ * @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 setDoorTime($doorTime)
+ public function setEventAttendanceMode($eventAttendanceMode)
{
$types = [
- "DateTime",
- "Time",
+ "\OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration",
"null",
];
- $doorTime = self::checkTypes($doorTime, $types);
+ $eventAttendanceMode = self::checkTypes($eventAttendanceMode, $types);
- $this->doorTime = $doorTime;
+ $this->eventAttendanceMode = $eventAttendanceMode;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return \OpenActive\Models\SchemaOrg\Schedule|string
*/
- public function getInLanguage()
+ public function getEventSchedule()
{
- return $this->inLanguage;
+ return $this->eventSchedule;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
+ * @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 setInLanguage($inLanguage)
+ public function setEventSchedule($eventSchedule)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Schedule",
"string",
- "\OpenActive\Models\SchemaOrg\Language",
];
- $inLanguage = self::checkTypes($inLanguage, $types);
+ $eventSchedule = self::checkTypes($eventSchedule, $types);
- $this->inLanguage = $inLanguage;
+ $this->eventSchedule = $eventSchedule;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\Audience|string
*/
- public function getAbout()
+ public function getAudience()
{
- return $this->about;
+ return $this->audience;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $about
+ * @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 setAbout($about)
+ public function setAudience($audience)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\Audience",
"string",
];
- $about = self::checkTypes($about, $types);
+ $audience = self::checkTypes($audience, $types);
- $this->about = $about;
+ $this->audience = $audience;
}
/**
@@ -1287,156 +1263,180 @@ public function setRecordedIn($recordedIn)
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getMaximumPhysicalAttendeeCapacity()
+ public function getPerformer()
{
- return $this->maximumPhysicalAttendeeCapacity;
+ return $this->performer;
}
/**
- * @param int|null $maximumPhysicalAttendeeCapacity
+ * @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 setMaximumPhysicalAttendeeCapacity($maximumPhysicalAttendeeCapacity)
+ public function setPerformer($performer)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $maximumPhysicalAttendeeCapacity = self::checkTypes($maximumPhysicalAttendeeCapacity, $types);
+ $performer = self::checkTypes($performer, $types);
- $this->maximumPhysicalAttendeeCapacity = $maximumPhysicalAttendeeCapacity;
+ $this->performer = $performer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return Date|null
*/
- public function getAttendee()
+ public function getPreviousStartDate()
{
- return $this->attendee;
+ return $this->previousStartDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $attendee
+ * @param Date|null $previousStartDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAttendee($attendee)
+ public function setPreviousStartDate($previousStartDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "Date",
+ "null",
];
- $attendee = self::checkTypes($attendee, $types);
+ $previousStartDate = self::checkTypes($previousStartDate, $types);
- $this->attendee = $attendee;
+ $this->previousStartDate = $previousStartDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getWorkFeatured()
+ public function getReview()
{
- return $this->workFeatured;
+ return $this->review;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workFeatured
+ * @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 setWorkFeatured($workFeatured)
+ public function setReview($review)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $workFeatured = self::checkTypes($workFeatured, $types);
+ $review = self::checkTypes($review, $types);
- $this->workFeatured = $workFeatured;
+ $this->review = $review;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Schedule|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getEventSchedule()
+ public function getDirector()
{
- return $this->eventSchedule;
+ return $this->director;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Schedule|string $eventSchedule
+ * @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 setEventSchedule($eventSchedule)
+ public function setDirector($director)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Schedule",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $eventSchedule = self::checkTypes($eventSchedule, $types);
+ $director = self::checkTypes($director, $types);
- $this->eventSchedule = $eventSchedule;
+ $this->director = $director;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getContributor()
+ public function getActor()
{
- return $this->contributor;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $contributor
+ * @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 setContributor($contributor)
+ public function setActor($actor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $contributor = self::checkTypes($contributor, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->contributor = $contributor;
+ $this->actor = $actor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getAttendees()
+ public function getSubEvent()
{
- return $this->attendees;
+ return $this->subEvent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $attendees
+ * @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 setAttendees($attendees)
+ public function setSubEvent($subEvent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $attendees = self::checkTypes($attendees, $types);
+ $subEvent = self::checkTypes($subEvent, $types);
- $this->attendees = $attendees;
+ $this->subEvent = $subEvent;
+ }
+
+ /**
+ * @return Date|DateTime|null
+ */
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+
+ /**
+ * @param Date|DateTime|null $endDate
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setEndDate($endDate)
+ {
+ $types = [
+ "Date",
+ "DateTime",
+ "null",
+ ];
+
+ $endDate = self::checkTypes($endDate, $types);
+
+ $this->endDate = $endDate;
}
}
diff --git a/src/Models/SchemaOrg/ExchangeRateSpecification.php b/src/Models/SchemaOrg/ExchangeRateSpecification.php
index 46d61d52..d167b682 100644
--- a/src/Models/SchemaOrg/ExchangeRateSpecification.php
+++ b/src/Models/SchemaOrg/ExchangeRateSpecification.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"currentExchangeRate" => "currentExchangeRate",
- "exchangeRateSpread" => "exchangeRateSpread",
"currency" => "currency",
+ "exchangeRateSpread" => "exchangeRateSpread",
];
return array_merge(parent::fieldList(), $fields);
@@ -34,20 +34,20 @@ public static function fieldList() {
protected $currentExchangeRate;
/**
- * The difference between the price at which a broker or other intermediary buys and sells foreign currency.
+ * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var string
*/
- protected $exchangeRateSpread;
+ protected $currency;
/**
- * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR".
+ * The difference between the price at which a broker or other intermediary buys and sells foreign currency.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- protected $currency;
+ protected $exchangeRateSpread;
/**
* @return \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string
@@ -75,54 +75,54 @@ public function setCurrentExchangeRate($currentExchangeRate)
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return string
*/
- public function getExchangeRateSpread()
+ public function getCurrency()
{
- return $this->exchangeRateSpread;
+ return $this->currency;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $exchangeRateSpread
+ * @param string $currency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExchangeRateSpread($exchangeRateSpread)
+ public function setCurrency($currency)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "null",
];
- $exchangeRateSpread = self::checkTypes($exchangeRateSpread, $types);
+ $currency = self::checkTypes($currency, $types);
- $this->exchangeRateSpread = $exchangeRateSpread;
+ $this->currency = $currency;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- public function getCurrency()
+ public function getExchangeRateSpread()
{
- return $this->currency;
+ return $this->exchangeRateSpread;
}
/**
- * @param string $currency
+ * @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 setCurrency($currency)
+ public function setExchangeRateSpread($exchangeRateSpread)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
+ "null",
];
- $currency = self::checkTypes($currency, $types);
+ $exchangeRateSpread = self::checkTypes($exchangeRateSpread, $types);
- $this->currency = $currency;
+ $this->exchangeRateSpread = $exchangeRateSpread;
}
}
diff --git a/src/Models/SchemaOrg/ExerciseAction.php b/src/Models/SchemaOrg/ExerciseAction.php
index 77e1786e..f327a0bb 100644
--- a/src/Models/SchemaOrg/ExerciseAction.php
+++ b/src/Models/SchemaOrg/ExerciseAction.php
@@ -17,95 +17,95 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "toLocation" => "toLocation",
+ "exercisePlan" => "exercisePlan",
"sportsTeam" => "sportsTeam",
- "course" => "course",
- "fromLocation" => "fromLocation",
- "diet" => "diet",
- "sportsActivityLocation" => "sportsActivityLocation",
"distance" => "distance",
- "exercisePlan" => "exercisePlan",
- "sportsEvent" => "sportsEvent",
+ "exerciseType" => "exerciseType",
"exerciseRelatedDiet" => "exerciseRelatedDiet",
- "opponent" => "opponent",
"exerciseCourse" => "exerciseCourse",
- "toLocation" => "toLocation",
- "exerciseType" => "exerciseType",
+ "sportsActivityLocation" => "sportsActivityLocation",
+ "fromLocation" => "fromLocation",
+ "opponent" => "opponent",
+ "sportsEvent" => "sportsEvent",
+ "course" => "course",
+ "diet" => "diet",
];
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 final location of the object or the agent after the action.
*
*
- * @var \OpenActive\Models\SchemaOrg\SportsTeam|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $sportsTeam;
+ protected $toLocation;
/**
- * A sub property of location. The course where this action was taken.
+ * A sub property of instrument. The exercise plan used on this action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\ExercisePlan|string
*/
- protected $course;
+ protected $exercisePlan;
/**
- * A sub property of location. The original location of the object or the agent before the action.
+ * A sub property of participant. The sports team that participated on this action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\SportsTeam|string
*/
- protected $fromLocation;
+ protected $sportsTeam;
/**
- * A sub property of instrument. The diet used in this action.
+ * The distance travelled, e.g. exercising or travelling.
*
*
- * @var \OpenActive\Models\SchemaOrg\Diet|string
+ * @var \OpenActive\Models\SchemaOrg\Distance|string
*/
- protected $diet;
+ protected $distance;
/**
- * A sub property of location. The sports activity location where this action occurred.
+ * Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\SportsActivityLocation|string
+ * @var string
*/
- protected $sportsActivityLocation;
+ protected $exerciseType;
/**
- * The distance travelled, e.g. exercising or travelling.
+ * A sub property of instrument. The diet used in this action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Distance|string
+ * @var \OpenActive\Models\SchemaOrg\Diet|string
*/
- protected $distance;
+ protected $exerciseRelatedDiet;
/**
- * A sub property of instrument. The exercise plan used on this action.
+ * A sub property of location. The course where this action was taken.
*
*
- * @var \OpenActive\Models\SchemaOrg\ExercisePlan|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $exercisePlan;
+ protected $exerciseCourse;
/**
- * A sub property of location. The sports event where this action occurred.
+ * A sub property of location. The sports activity location where this action occurred.
*
*
- * @var \OpenActive\Models\SchemaOrg\SportsEvent|string
+ * @var \OpenActive\Models\SchemaOrg\SportsActivityLocation|string
*/
- protected $sportsEvent;
+ protected $sportsActivityLocation;
/**
- * A sub property of instrument. The diet used in this action.
+ * A sub property of location. The original location of the object or the agent before the action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Diet|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $exerciseRelatedDiet;
+ protected $fromLocation;
/**
* A sub property of participant. The opponent on this action.
@@ -116,252 +116,251 @@ public static function fieldList() {
protected $opponent;
/**
- * A sub property of location. The course where this action was taken.
+ * 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 $exerciseCourse;
+ protected $sportsEvent;
/**
- * A sub property of location. The final location of the object or the agent after the action.
+ * A sub property of location. The course where this action was taken.
*
*
* @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $toLocation;
+ protected $course;
/**
- * Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc.
+ * A sub property of instrument. The diet used in this action.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Diet|string
*/
- protected $exerciseType;
+ protected $diet;
/**
- * @return \OpenActive\Models\SchemaOrg\SportsTeam|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getSportsTeam()
+ public function getToLocation()
{
- return $this->sportsTeam;
+ return $this->toLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SportsTeam|string $sportsTeam
+ * @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 setSportsTeam($sportsTeam)
+ public function setToLocation($toLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SportsTeam",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $sportsTeam = self::checkTypes($sportsTeam, $types);
+ $toLocation = self::checkTypes($toLocation, $types);
- $this->sportsTeam = $sportsTeam;
+ $this->toLocation = $toLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\ExercisePlan|string
*/
- public function getCourse()
+ public function getExercisePlan()
{
- return $this->course;
+ return $this->exercisePlan;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $course
+ * @param \OpenActive\Models\SchemaOrg\ExercisePlan|string $exercisePlan
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCourse($course)
+ public function setExercisePlan($exercisePlan)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\ExercisePlan",
"string",
];
- $course = self::checkTypes($course, $types);
+ $exercisePlan = self::checkTypes($exercisePlan, $types);
- $this->course = $course;
+ $this->exercisePlan = $exercisePlan;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\SportsTeam|string
*/
- public function getFromLocation()
+ public function getSportsTeam()
{
- return $this->fromLocation;
+ return $this->sportsTeam;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation
+ * @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 setFromLocation($fromLocation)
+ public function setSportsTeam($sportsTeam)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\SportsTeam",
"string",
];
- $fromLocation = self::checkTypes($fromLocation, $types);
+ $sportsTeam = self::checkTypes($sportsTeam, $types);
- $this->fromLocation = $fromLocation;
+ $this->sportsTeam = $sportsTeam;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Diet|string
+ * @return \OpenActive\Models\SchemaOrg\Distance|string
*/
- public function getDiet()
+ public function getDistance()
{
- return $this->diet;
+ return $this->distance;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Diet|string $diet
+ * @param \OpenActive\Models\SchemaOrg\Distance|string $distance
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDiet($diet)
+ public function setDistance($distance)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Diet",
+ "\OpenActive\Models\SchemaOrg\Distance",
"string",
];
- $diet = self::checkTypes($diet, $types);
+ $distance = self::checkTypes($distance, $types);
- $this->diet = $diet;
+ $this->distance = $distance;
}
/**
- * @return \OpenActive\Models\SchemaOrg\SportsActivityLocation|string
+ * @return string
*/
- public function getSportsActivityLocation()
+ public function getExerciseType()
{
- return $this->sportsActivityLocation;
+ return $this->exerciseType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SportsActivityLocation|string $sportsActivityLocation
+ * @param string $exerciseType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSportsActivityLocation($sportsActivityLocation)
+ public function setExerciseType($exerciseType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SportsActivityLocation",
"string",
];
- $sportsActivityLocation = self::checkTypes($sportsActivityLocation, $types);
+ $exerciseType = self::checkTypes($exerciseType, $types);
- $this->sportsActivityLocation = $sportsActivityLocation;
+ $this->exerciseType = $exerciseType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Distance|string
+ * @return \OpenActive\Models\SchemaOrg\Diet|string
*/
- public function getDistance()
+ public function getExerciseRelatedDiet()
{
- return $this->distance;
+ return $this->exerciseRelatedDiet;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Distance|string $distance
+ * @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 setDistance($distance)
+ public function setExerciseRelatedDiet($exerciseRelatedDiet)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Distance",
+ "\OpenActive\Models\SchemaOrg\Diet",
"string",
];
- $distance = self::checkTypes($distance, $types);
+ $exerciseRelatedDiet = self::checkTypes($exerciseRelatedDiet, $types);
- $this->distance = $distance;
+ $this->exerciseRelatedDiet = $exerciseRelatedDiet;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ExercisePlan|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getExercisePlan()
+ public function getExerciseCourse()
{
- return $this->exercisePlan;
+ return $this->exerciseCourse;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ExercisePlan|string $exercisePlan
+ * @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 setExercisePlan($exercisePlan)
+ public function setExerciseCourse($exerciseCourse)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ExercisePlan",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $exercisePlan = self::checkTypes($exercisePlan, $types);
+ $exerciseCourse = self::checkTypes($exerciseCourse, $types);
- $this->exercisePlan = $exercisePlan;
+ $this->exerciseCourse = $exerciseCourse;
}
/**
- * @return \OpenActive\Models\SchemaOrg\SportsEvent|string
+ * @return \OpenActive\Models\SchemaOrg\SportsActivityLocation|string
*/
- public function getSportsEvent()
+ public function getSportsActivityLocation()
{
- return $this->sportsEvent;
+ return $this->sportsActivityLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SportsEvent|string $sportsEvent
+ * @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 setSportsEvent($sportsEvent)
+ public function setSportsActivityLocation($sportsActivityLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SportsEvent",
+ "\OpenActive\Models\SchemaOrg\SportsActivityLocation",
"string",
];
- $sportsEvent = self::checkTypes($sportsEvent, $types);
+ $sportsActivityLocation = self::checkTypes($sportsActivityLocation, $types);
- $this->sportsEvent = $sportsEvent;
+ $this->sportsActivityLocation = $sportsActivityLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Diet|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getExerciseRelatedDiet()
+ public function getFromLocation()
{
- return $this->exerciseRelatedDiet;
+ return $this->fromLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Diet|string $exerciseRelatedDiet
+ * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExerciseRelatedDiet($exerciseRelatedDiet)
+ public function setFromLocation($fromLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Diet",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $exerciseRelatedDiet = self::checkTypes($exerciseRelatedDiet, $types);
+ $fromLocation = self::checkTypes($fromLocation, $types);
- $this->exerciseRelatedDiet = $exerciseRelatedDiet;
+ $this->fromLocation = $fromLocation;
}
/**
@@ -390,77 +389,78 @@ public function setOpponent($opponent)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\SportsEvent|string
*/
- public function getExerciseCourse()
+ public function getSportsEvent()
{
- return $this->exerciseCourse;
+ return $this->sportsEvent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $exerciseCourse
+ * @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 setExerciseCourse($exerciseCourse)
+ public function setSportsEvent($sportsEvent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\SportsEvent",
"string",
];
- $exerciseCourse = self::checkTypes($exerciseCourse, $types);
+ $sportsEvent = self::checkTypes($sportsEvent, $types);
- $this->exerciseCourse = $exerciseCourse;
+ $this->sportsEvent = $sportsEvent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getToLocation()
+ public function getCourse()
{
- return $this->toLocation;
+ return $this->course;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $toLocation
+ * @param \OpenActive\Models\SchemaOrg\Place|string $course
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setToLocation($toLocation)
+ public function setCourse($course)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $toLocation = self::checkTypes($toLocation, $types);
+ $course = self::checkTypes($course, $types);
- $this->toLocation = $toLocation;
+ $this->course = $course;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Diet|string
*/
- public function getExerciseType()
+ public function getDiet()
{
- return $this->exerciseType;
+ return $this->diet;
}
/**
- * @param string $exerciseType
+ * @param \OpenActive\Models\SchemaOrg\Diet|string $diet
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExerciseType($exerciseType)
+ public function setDiet($diet)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Diet",
"string",
];
- $exerciseType = self::checkTypes($exerciseType, $types);
+ $diet = self::checkTypes($diet, $types);
- $this->exerciseType = $exerciseType;
+ $this->diet = $diet;
}
}
diff --git a/src/Models/SchemaOrg/ExercisePlan.php b/src/Models/SchemaOrg/ExercisePlan.php
index df458ebc..48568bdf 100644
--- a/src/Models/SchemaOrg/ExercisePlan.php
+++ b/src/Models/SchemaOrg/ExercisePlan.php
@@ -5,7 +5,7 @@
/**
*
*/
-class ExercisePlan extends \OpenActive\Models\SchemaOrg\CreativeWork
+class ExercisePlan extends \OpenActive\Models\SchemaOrg\PhysicalActivity
{
/**
* @return string[]|null
@@ -18,13 +18,13 @@ public static function getType()
public static function fieldList() {
$fields = [
"repetitions" => "repetitions",
- "intensity" => "intensity",
+ "exerciseType" => "exerciseType",
"workload" => "workload",
+ "intensity" => "intensity",
"activityDuration" => "activityDuration",
- "restPeriods" => "restPeriods",
"activityFrequency" => "activityFrequency",
"additionalVariable" => "additionalVariable",
- "exerciseType" => "exerciseType",
+ "restPeriods" => "restPeriods",
];
return array_merge(parent::fieldList(), $fields);
@@ -34,17 +34,17 @@ public static function fieldList() {
* Number of times one should repeat the activity.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|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.
+ * Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string
*/
- protected $intensity;
+ protected $exerciseType;
/**
* Quantitative measure of the physiologic output of the exercise; also referred to as energy expenditure.
@@ -55,26 +55,26 @@ public static function fieldList() {
protected $workload;
/**
- * Length of time to engage in 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 DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $activityDuration;
+ protected $intensity;
/**
- * How often one should break from the activity.
+ * Length of time to engage in the activity.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
*/
- protected $restPeriods;
+ protected $activityDuration;
/**
* How often one should engage in the activity.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
protected $activityFrequency;
@@ -87,15 +87,15 @@ public static function fieldList() {
protected $additionalVariable;
/**
- * Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc.
+ * How often one should break from the activity.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- protected $exerciseType;
+ protected $restPeriods;
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
public function getRepetitions()
{
@@ -103,16 +103,16 @@ public function getRepetitions()
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $repetitions
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $repetitions
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setRepetitions($repetitions)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "Number",
"null",
];
@@ -122,28 +122,27 @@ public function setRepetitions($repetitions)
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getIntensity()
+ public function getExerciseType()
{
- return $this->intensity;
+ return $this->exerciseType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $intensity
+ * @param string $exerciseType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIntensity($intensity)
+ public function setExerciseType($exerciseType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $intensity = self::checkTypes($intensity, $types);
+ $exerciseType = self::checkTypes($exerciseType, $types);
- $this->intensity = $intensity;
+ $this->exerciseType = $exerciseType;
}
/**
@@ -173,59 +172,59 @@ public function setWorkload($workload)
}
/**
- * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getActivityDuration()
+ public function getIntensity()
{
- return $this->activityDuration;
+ return $this->intensity;
}
/**
- * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $activityDuration
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $intensity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActivityDuration($activityDuration)
+ public function setIntensity($intensity)
{
$types = [
- "DateInterval",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $activityDuration = self::checkTypes($activityDuration, $types);
+ $intensity = self::checkTypes($intensity, $types);
- $this->activityDuration = $activityDuration;
+ $this->intensity = $intensity;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
*/
- public function getRestPeriods()
+ public function getActivityDuration()
{
- return $this->restPeriods;
+ return $this->activityDuration;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $restPeriods
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $activityDuration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRestPeriods($restPeriods)
+ public function setActivityDuration($activityDuration)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "DateInterval",
+ "string",
+ "null",
];
- $restPeriods = self::checkTypes($restPeriods, $types);
+ $activityDuration = self::checkTypes($activityDuration, $types);
- $this->restPeriods = $restPeriods;
+ $this->activityDuration = $activityDuration;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
public function getActivityFrequency()
{
@@ -233,15 +232,15 @@ public function getActivityFrequency()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $activityFrequency
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $activityFrequency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setActivityFrequency($activityFrequency)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
];
$activityFrequency = self::checkTypes($activityFrequency, $types);
@@ -274,27 +273,28 @@ public function setAdditionalVariable($additionalVariable)
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- public function getExerciseType()
+ public function getRestPeriods()
{
- return $this->exerciseType;
+ return $this->restPeriods;
}
/**
- * @param string $exerciseType
+ * @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 setExerciseType($exerciseType)
+ public function setRestPeriods($restPeriods)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $exerciseType = self::checkTypes($exerciseType, $types);
+ $restPeriods = self::checkTypes($restPeriods, $types);
- $this->exerciseType = $exerciseType;
+ $this->restPeriods = $restPeriods;
}
}
diff --git a/src/Models/SchemaOrg/FinancialProduct.php b/src/Models/SchemaOrg/FinancialProduct.php
index b823898c..6165394c 100644
--- a/src/Models/SchemaOrg/FinancialProduct.php
+++ b/src/Models/SchemaOrg/FinancialProduct.php
@@ -17,21 +17,21 @@ public static function getType()
public static function fieldList() {
$fields = [
- "annualPercentageRate" => "annualPercentageRate",
- "feesAndCommissionsSpecification" => "feesAndCommissionsSpecification",
"interestRate" => "interestRate",
+ "feesAndCommissionsSpecification" => "feesAndCommissionsSpecification",
+ "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.
+ * The interest rate, charged or paid, applicable to the financial product. Note: This is different from the calculated annualPercentageRate.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- protected $annualPercentageRate;
+ protected $interestRate;
/**
* Description of fees, commissions, and other terms applied either to a class of financial product, or by a financial service organization.
@@ -42,38 +42,38 @@ public static function fieldList() {
protected $feesAndCommissionsSpecification;
/**
- * 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function getAnnualPercentageRate()
+ public function getInterestRate()
{
- return $this->annualPercentageRate;
+ return $this->interestRate;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $annualPercentageRate
+ * @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 setAnnualPercentageRate($annualPercentageRate)
+ public function setInterestRate($interestRate)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "Number",
"null",
];
- $annualPercentageRate = self::checkTypes($annualPercentageRate, $types);
+ $interestRate = self::checkTypes($interestRate, $types);
- $this->annualPercentageRate = $annualPercentageRate;
+ $this->interestRate = $interestRate;
}
/**
@@ -103,17 +103,17 @@ public function setFeesAndCommissionsSpecification($feesAndCommissionsSpecificat
/**
* @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/Flight.php b/src/Models/SchemaOrg/Flight.php
index 884e8838..42ceffe2 100644
--- a/src/Models/SchemaOrg/Flight.php
+++ b/src/Models/SchemaOrg/Flight.php
@@ -17,20 +17,20 @@ public static function getType()
public static function fieldList() {
$fields = [
- "flightDistance" => "flightDistance",
- "webCheckinTime" => "webCheckinTime",
- "aircraft" => "aircraft",
+ "estimatedFlightDuration" => "estimatedFlightDuration",
"seller" => "seller",
- "arrivalAirport" => "arrivalAirport",
- "arrivalTerminal" => "arrivalTerminal",
+ "flightNumber" => "flightNumber",
+ "departureGate" => "departureGate",
"departureAirport" => "departureAirport",
+ "aircraft" => "aircraft",
"arrivalGate" => "arrivalGate",
- "departureTerminal" => "departureTerminal",
- "carrier" => "carrier",
- "estimatedFlightDuration" => "estimatedFlightDuration",
- "departureGate" => "departureGate",
- "flightNumber" => "flightNumber",
+ "arrivalAirport" => "arrivalAirport",
"mealService" => "mealService",
+ "carrier" => "carrier",
+ "departureTerminal" => "departureTerminal",
+ "arrivalTerminal" => "arrivalTerminal",
+ "flightDistance" => "flightDistance",
+ "webCheckinTime" => "webCheckinTime",
"boardingPolicy" => "boardingPolicy",
];
@@ -38,76 +38,76 @@ public static function fieldList() {
}
/**
- * The distance of the flight.
+ * The estimated time the flight will take.
*
*
- * @var \OpenActive\Models\SchemaOrg\Distance|string
+ * @var DateInterval|string|null
*/
- protected $flightDistance;
+ protected $estimatedFlightDuration;
/**
- * The time when a passenger can check into the flight online.
+ * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
*
*
- * @var DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $webCheckinTime;
+ protected $seller;
/**
- * The kind of aircraft (e.g., "Boeing 747").
+ * 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\Vehicle|string
+ * @var string
*/
- protected $aircraft;
+ protected $flightNumber;
/**
- * 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 airport where the flight originates.
*
*
* @var \OpenActive\Models\SchemaOrg\Airport|string
*/
- protected $arrivalAirport;
+ protected $departureAirport;
/**
- * Identifier of the flight's arrival terminal.
+ * The kind of aircraft (e.g., "Boeing 747").
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Vehicle|string
*/
- protected $arrivalTerminal;
+ protected $aircraft;
/**
- * The airport where the flight originates.
+ * Identifier of the flight's arrival gate.
*
*
- * @var \OpenActive\Models\SchemaOrg\Airport|string
+ * @var string
*/
- protected $departureAirport;
+ protected $arrivalGate;
/**
- * Identifier of the flight's arrival gate.
+ * The airport where the flight terminates.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Airport|string
*/
- protected $arrivalGate;
+ protected $arrivalAirport;
/**
- * Identifier of the flight's departure terminal.
+ * Description of the meals that will be provided or available for purchase.
*
*
* @var string
*/
- protected $departureTerminal;
+ protected $mealService;
/**
* 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights.
@@ -118,36 +118,36 @@ public static function fieldList() {
protected $carrier;
/**
- * The estimated time the flight will take.
+ * Identifier of the flight's departure terminal.
*
*
- * @var DateInterval|string|null
+ * @var string
*/
- protected $estimatedFlightDuration;
+ protected $departureTerminal;
/**
- * Identifier of the flight's departure gate.
+ * Identifier of the flight's arrival terminal.
*
*
* @var string
*/
- protected $departureGate;
+ protected $arrivalTerminal;
/**
- * 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 distance of the flight.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\Distance
*/
- protected $flightNumber;
+ protected $flightDistance;
/**
- * Description of the meals that will be provided or available for purchase.
+ * The time when a passenger can check into the flight online.
*
*
- * @var string
+ * @var DateTime|null
*/
- protected $mealService;
+ protected $webCheckinTime;
/**
* The type of boarding policy used by the airline (e.g. zone-based or group-based).
@@ -158,226 +158,226 @@ public static function fieldList() {
protected $boardingPolicy;
/**
- * @return \OpenActive\Models\SchemaOrg\Distance|string
+ * @return DateInterval|string|null
*/
- public function getFlightDistance()
+ public function getEstimatedFlightDuration()
{
- return $this->flightDistance;
+ return $this->estimatedFlightDuration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Distance|string $flightDistance
+ * @param DateInterval|string|null $estimatedFlightDuration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFlightDistance($flightDistance)
+ public function setEstimatedFlightDuration($estimatedFlightDuration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Distance",
+ "DateInterval",
"string",
+ "null",
];
- $flightDistance = self::checkTypes($flightDistance, $types);
+ $estimatedFlightDuration = self::checkTypes($estimatedFlightDuration, $types);
- $this->flightDistance = $flightDistance;
+ $this->estimatedFlightDuration = $estimatedFlightDuration;
}
/**
- * @return DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getWebCheckinTime()
+ public function getSeller()
{
- return $this->webCheckinTime;
+ return $this->seller;
}
/**
- * @param DateTime|null $webCheckinTime
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWebCheckinTime($webCheckinTime)
+ public function setSeller($seller)
{
$types = [
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $webCheckinTime = self::checkTypes($webCheckinTime, $types);
+ $seller = self::checkTypes($seller, $types);
- $this->webCheckinTime = $webCheckinTime;
+ $this->seller = $seller;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Vehicle|string
+ * @return string
*/
- public function getAircraft()
+ public function getFlightNumber()
{
- return $this->aircraft;
+ return $this->flightNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Vehicle|string $aircraft
+ * @param string $flightNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAircraft($aircraft)
+ public function setFlightNumber($flightNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Vehicle",
"string",
];
- $aircraft = self::checkTypes($aircraft, $types);
+ $flightNumber = self::checkTypes($flightNumber, $types);
- $this->aircraft = $aircraft;
+ $this->flightNumber = $flightNumber;
}
/**
- * @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
*/
- public function getArrivalAirport()
+ public function getDepartureAirport()
{
- return $this->arrivalAirport;
+ return $this->departureAirport;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Airport|string $arrivalAirport
+ * @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 setArrivalAirport($arrivalAirport)
+ public function setDepartureAirport($departureAirport)
{
$types = [
"\OpenActive\Models\SchemaOrg\Airport",
"string",
];
- $arrivalAirport = self::checkTypes($arrivalAirport, $types);
+ $departureAirport = self::checkTypes($departureAirport, $types);
- $this->arrivalAirport = $arrivalAirport;
+ $this->departureAirport = $departureAirport;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Vehicle|string
*/
- public function getArrivalTerminal()
+ public function getAircraft()
{
- return $this->arrivalTerminal;
+ return $this->aircraft;
}
/**
- * @param string $arrivalTerminal
+ * @param \OpenActive\Models\SchemaOrg\Vehicle|string $aircraft
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArrivalTerminal($arrivalTerminal)
+ public function setAircraft($aircraft)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Vehicle",
"string",
];
- $arrivalTerminal = self::checkTypes($arrivalTerminal, $types);
+ $aircraft = self::checkTypes($aircraft, $types);
- $this->arrivalTerminal = $arrivalTerminal;
+ $this->aircraft = $aircraft;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Airport|string
+ * @return string
*/
- public function getDepartureAirport()
+ public function getArrivalGate()
{
- return $this->departureAirport;
+ return $this->arrivalGate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Airport|string $departureAirport
+ * @param string $arrivalGate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDepartureAirport($departureAirport)
+ public function setArrivalGate($arrivalGate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Airport",
"string",
];
- $departureAirport = self::checkTypes($departureAirport, $types);
+ $arrivalGate = self::checkTypes($arrivalGate, $types);
- $this->departureAirport = $departureAirport;
+ $this->arrivalGate = $arrivalGate;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Airport|string
*/
- public function getArrivalGate()
+ public function getArrivalAirport()
{
- return $this->arrivalGate;
+ return $this->arrivalAirport;
}
/**
- * @param string $arrivalGate
+ * @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 setArrivalGate($arrivalGate)
+ public function setArrivalAirport($arrivalAirport)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Airport",
"string",
];
- $arrivalGate = self::checkTypes($arrivalGate, $types);
+ $arrivalAirport = self::checkTypes($arrivalAirport, $types);
- $this->arrivalGate = $arrivalGate;
+ $this->arrivalAirport = $arrivalAirport;
}
/**
* @return string
*/
- public function getDepartureTerminal()
+ public function getMealService()
{
- return $this->departureTerminal;
+ return $this->mealService;
}
/**
- * @param string $departureTerminal
+ * @param string $mealService
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDepartureTerminal($departureTerminal)
+ public function setMealService($mealService)
{
$types = [
"string",
];
- $departureTerminal = self::checkTypes($departureTerminal, $types);
+ $mealService = self::checkTypes($mealService, $types);
- $this->departureTerminal = $departureTerminal;
+ $this->mealService = $mealService;
}
/**
@@ -406,101 +406,101 @@ public function setCarrier($carrier)
}
/**
- * @return DateInterval|string|null
+ * @return string
*/
- public function getEstimatedFlightDuration()
+ public function getDepartureTerminal()
{
- return $this->estimatedFlightDuration;
+ return $this->departureTerminal;
}
/**
- * @param DateInterval|string|null $estimatedFlightDuration
+ * @param string $departureTerminal
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEstimatedFlightDuration($estimatedFlightDuration)
+ public function setDepartureTerminal($departureTerminal)
{
$types = [
- "DateInterval",
"string",
- "null",
];
- $estimatedFlightDuration = self::checkTypes($estimatedFlightDuration, $types);
+ $departureTerminal = self::checkTypes($departureTerminal, $types);
- $this->estimatedFlightDuration = $estimatedFlightDuration;
+ $this->departureTerminal = $departureTerminal;
}
/**
* @return string
*/
- public function getDepartureGate()
+ public function getArrivalTerminal()
{
- return $this->departureGate;
+ return $this->arrivalTerminal;
}
/**
- * @param string $departureGate
+ * @param string $arrivalTerminal
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDepartureGate($departureGate)
+ public function setArrivalTerminal($arrivalTerminal)
{
$types = [
"string",
];
- $departureGate = self::checkTypes($departureGate, $types);
+ $arrivalTerminal = self::checkTypes($arrivalTerminal, $types);
- $this->departureGate = $departureGate;
+ $this->arrivalTerminal = $arrivalTerminal;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Distance
*/
- public function getFlightNumber()
+ public function getFlightDistance()
{
- return $this->flightNumber;
+ return $this->flightDistance;
}
/**
- * @param string $flightNumber
+ * @param string|\OpenActive\Models\SchemaOrg\Distance $flightDistance
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFlightNumber($flightNumber)
+ public function setFlightDistance($flightDistance)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Distance",
];
- $flightNumber = self::checkTypes($flightNumber, $types);
+ $flightDistance = self::checkTypes($flightDistance, $types);
- $this->flightNumber = $flightNumber;
+ $this->flightDistance = $flightDistance;
}
/**
- * @return string
+ * @return DateTime|null
*/
- public function getMealService()
+ public function getWebCheckinTime()
{
- return $this->mealService;
+ return $this->webCheckinTime;
}
/**
- * @param string $mealService
+ * @param DateTime|null $webCheckinTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMealService($mealService)
+ public function setWebCheckinTime($webCheckinTime)
{
$types = [
- "string",
+ "DateTime",
+ "null",
];
- $mealService = self::checkTypes($mealService, $types);
+ $webCheckinTime = self::checkTypes($webCheckinTime, $types);
- $this->mealService = $mealService;
+ $this->webCheckinTime = $webCheckinTime;
}
/**
diff --git a/src/Models/SchemaOrg/FlightReservation.php b/src/Models/SchemaOrg/FlightReservation.php
index 86c2d57b..5cb541c1 100644
--- a/src/Models/SchemaOrg/FlightReservation.php
+++ b/src/Models/SchemaOrg/FlightReservation.php
@@ -17,23 +17,15 @@ public static function getType()
public static function fieldList() {
$fields = [
- "passengerPriorityStatus" => "passengerPriorityStatus",
"boardingGroup" => "boardingGroup",
"securityScreening" => "securityScreening",
+ "passengerPriorityStatus" => "passengerPriorityStatus",
"passengerSequenceNumber" => "passengerSequenceNumber",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * The priority status assigned to a passenger for security or boarding (e.g. FastTrack or Priority).
- *
- *
- * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
- */
- protected $passengerPriorityStatus;
-
/**
* The airline-specific indicator of boarding order / preference.
*
@@ -50,6 +42,14 @@ public static function fieldList() {
*/
protected $securityScreening;
+ /**
+ * The priority status assigned to a passenger for security or boarding (e.g. FastTrack or Priority).
+ *
+ *
+ * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ */
+ protected $passengerPriorityStatus;
+
/**
* The passenger's sequence number as assigned by the airline.
*
@@ -59,77 +59,77 @@ public static function fieldList() {
protected $passengerSequenceNumber;
/**
- * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @return string
*/
- public function getPassengerPriorityStatus()
+ public function getBoardingGroup()
{
- return $this->passengerPriorityStatus;
+ return $this->boardingGroup;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $passengerPriorityStatus
+ * @param string $boardingGroup
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPassengerPriorityStatus($passengerPriorityStatus)
+ public function setBoardingGroup($boardingGroup)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
"string",
- "null",
];
- $passengerPriorityStatus = self::checkTypes($passengerPriorityStatus, $types);
+ $boardingGroup = self::checkTypes($boardingGroup, $types);
- $this->passengerPriorityStatus = $passengerPriorityStatus;
+ $this->boardingGroup = $boardingGroup;
}
/**
* @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
+ * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- public function getSecurityScreening()
+ public function getPassengerPriorityStatus()
{
- return $this->securityScreening;
+ return $this->passengerPriorityStatus;
}
/**
- * @param string $securityScreening
+ * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $passengerPriorityStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSecurityScreening($securityScreening)
+ public function setPassengerPriorityStatus($passengerPriorityStatus)
{
$types = [
"string",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
+ "null",
];
- $securityScreening = self::checkTypes($securityScreening, $types);
+ $passengerPriorityStatus = self::checkTypes($passengerPriorityStatus, $types);
- $this->securityScreening = $securityScreening;
+ $this->passengerPriorityStatus = $passengerPriorityStatus;
}
/**
diff --git a/src/Models/SchemaOrg/FloorPlan.php b/src/Models/SchemaOrg/FloorPlan.php
index 118aa873..70103853 100644
--- a/src/Models/SchemaOrg/FloorPlan.php
+++ b/src/Models/SchemaOrg/FloorPlan.php
@@ -17,33 +17,25 @@ public static function getType()
public static function fieldList() {
$fields = [
- "isPlanForApartment" => "isPlanForApartment",
"numberOfBathroomsTotal" => "numberOfBathroomsTotal",
"numberOfRooms" => "numberOfRooms",
+ "petsAllowed" => "petsAllowed",
+ "floorSize" => "floorSize",
+ "layoutImage" => "layoutImage",
"numberOfAccommodationUnits" => "numberOfAccommodationUnits",
- "numberOfAvailableAccommodationUnits" => "numberOfAvailableAccommodationUnits",
+ "isPlanForApartment" => "isPlanForApartment",
"amenityFeature" => "amenityFeature",
- "numberOfBedrooms" => "numberOfBedrooms",
- "numberOfPartialBathrooms" => "numberOfPartialBathrooms",
- "floorSize" => "floorSize",
"numberOfFullBathrooms" => "numberOfFullBathrooms",
- "petsAllowed" => "petsAllowed",
- "layoutImage" => "layoutImage",
+ "numberOfPartialBathrooms" => "numberOfPartialBathrooms",
+ "numberOfAvailableAccommodationUnits" => "numberOfAvailableAccommodationUnits",
+ "numberOfBedrooms" => "numberOfBedrooms",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Indicates some accommodation that this floor plan describes.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Accommodation|string
- */
- 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]].
+ * 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 int|null
@@ -60,53 +52,53 @@ 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 whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var bool|string|null
*/
- protected $numberOfAccommodationUnits;
+ protected $petsAllowed;
/**
- * Indicates the number of available accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAccommodationUnits]].
+ * The 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.
+ * A schematic image showing the floorplan layout.
*
*
- * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
+ * @var string|\OpenActive\Models\SchemaOrg\ImageObject
*/
- protected $amenityFeature;
+ protected $layoutImage;
/**
- * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
+ * Indicates the total (available plus unavailable) number of accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAvailableAccommodationUnits]].
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $numberOfBedrooms;
+ protected $numberOfAccommodationUnits;
/**
- * 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).
+ * Indicates some accommodation that this floor plan describes.
*
*
- * @var Number|null
+ * @var \OpenActive\Models\SchemaOrg\Accommodation|string
*/
- protected $numberOfPartialBathrooms;
+ protected $isPlanForApartment;
/**
- * 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
+ * An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
*/
- protected $floorSize;
+ protected $amenityFeature;
/**
* Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field).
@@ -117,45 +109,28 @@ public static function fieldList() {
protected $numberOfFullBathrooms;
/**
- * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
+ * 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 bool|string|null
+ * @var Number|null
*/
- protected $petsAllowed;
+ protected $numberOfPartialBathrooms;
/**
- * A schematic image showing the floorplan layout.
+ * 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\ImageObject|string
- */
- protected $layoutImage;
-
- /**
- * @return \OpenActive\Models\SchemaOrg\Accommodation|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getIsPlanForApartment()
- {
- return $this->isPlanForApartment;
- }
+ protected $numberOfAvailableAccommodationUnits;
/**
- * @param \OpenActive\Models\SchemaOrg\Accommodation|string $isPlanForApartment
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function setIsPlanForApartment($isPlanForApartment)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\Accommodation",
- "string",
- ];
-
- $isPlanForApartment = self::checkTypes($isPlanForApartment, $types);
-
- $this->isPlanForApartment = $isPlanForApartment;
- }
+ protected $numberOfBedrooms;
/**
* @return int|null
@@ -210,155 +185,154 @@ public function setNumberOfRooms($numberOfRooms)
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return bool|string|null
*/
- public function getNumberOfAccommodationUnits()
+ public function getPetsAllowed()
{
- return $this->numberOfAccommodationUnits;
+ return $this->petsAllowed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAccommodationUnits
+ * @param bool|string|null $petsAllowed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfAccommodationUnits($numberOfAccommodationUnits)
+ public function setPetsAllowed($petsAllowed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "bool",
"string",
+ "null",
];
- $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types);
+ $petsAllowed = self::checkTypes($petsAllowed, $types);
- $this->numberOfAccommodationUnits = $numberOfAccommodationUnits;
+ $this->petsAllowed = $petsAllowed;
}
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- 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;
}
/**
- * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
+ * @return string|\OpenActive\Models\SchemaOrg\ImageObject
*/
- public function getAmenityFeature()
+ public function getLayoutImage()
{
- return $this->amenityFeature;
+ return $this->layoutImage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string $amenityFeature
+ * @param string|\OpenActive\Models\SchemaOrg\ImageObject $layoutImage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAmenityFeature($amenityFeature)
+ public function setLayoutImage($layoutImage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification",
"string",
+ "\OpenActive\Models\SchemaOrg\ImageObject",
];
- $amenityFeature = self::checkTypes($amenityFeature, $types);
+ $layoutImage = self::checkTypes($layoutImage, $types);
- $this->amenityFeature = $amenityFeature;
+ $this->layoutImage = $layoutImage;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getNumberOfBedrooms()
+ public function getNumberOfAccommodationUnits()
{
- return $this->numberOfBedrooms;
+ return $this->numberOfAccommodationUnits;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfBedrooms
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAccommodationUnits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfBedrooms($numberOfBedrooms)
+ public function setNumberOfAccommodationUnits($numberOfAccommodationUnits)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types);
+ $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types);
- $this->numberOfBedrooms = $numberOfBedrooms;
+ $this->numberOfAccommodationUnits = $numberOfAccommodationUnits;
}
/**
- * @return Number|null
+ * @return \OpenActive\Models\SchemaOrg\Accommodation|string
*/
- public function getNumberOfPartialBathrooms()
+ public function getIsPlanForApartment()
{
- return $this->numberOfPartialBathrooms;
+ return $this->isPlanForApartment;
}
/**
- * @param Number|null $numberOfPartialBathrooms
+ * @param \OpenActive\Models\SchemaOrg\Accommodation|string $isPlanForApartment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfPartialBathrooms($numberOfPartialBathrooms)
+ public function setIsPlanForApartment($isPlanForApartment)
{
$types = [
- "Number",
- "null",
+ "\OpenActive\Models\SchemaOrg\Accommodation",
+ "string",
];
- $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types);
+ $isPlanForApartment = self::checkTypes($isPlanForApartment, $types);
- $this->numberOfPartialBathrooms = $numberOfPartialBathrooms;
+ $this->isPlanForApartment = $isPlanForApartment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
*/
- public function getFloorSize()
+ public function getAmenityFeature()
{
- return $this->floorSize;
+ return $this->amenityFeature;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $floorSize
+ * @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 setFloorSize($floorSize)
+ public function setAmenityFeature($amenityFeature)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification",
"string",
];
- $floorSize = self::checkTypes($floorSize, $types);
+ $amenityFeature = self::checkTypes($amenityFeature, $types);
- $this->floorSize = $floorSize;
+ $this->amenityFeature = $amenityFeature;
}
/**
@@ -387,54 +361,80 @@ public function setNumberOfFullBathrooms($numberOfFullBathrooms)
}
/**
- * @return bool|string|null
+ * @return Number|null
*/
- public function getPetsAllowed()
+ public function getNumberOfPartialBathrooms()
{
- return $this->petsAllowed;
+ return $this->numberOfPartialBathrooms;
}
/**
- * @param bool|string|null $petsAllowed
+ * @param Number|null $numberOfPartialBathrooms
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPetsAllowed($petsAllowed)
+ public function setNumberOfPartialBathrooms($numberOfPartialBathrooms)
{
$types = [
- "bool",
- "string",
+ "Number",
"null",
];
- $petsAllowed = self::checkTypes($petsAllowed, $types);
+ $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types);
- $this->petsAllowed = $petsAllowed;
+ $this->numberOfPartialBathrooms = $numberOfPartialBathrooms;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getLayoutImage()
+ public function getNumberOfAvailableAccommodationUnits()
{
- return $this->layoutImage;
+ return $this->numberOfAvailableAccommodationUnits;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ImageObject|string $layoutImage
+ * @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 setLayoutImage($layoutImage)
+ public function setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommodationUnits)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ImageObject",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $layoutImage = self::checkTypes($layoutImage, $types);
+ $numberOfAvailableAccommodationUnits = self::checkTypes($numberOfAvailableAccommodationUnits, $types);
- $this->layoutImage = $layoutImage;
+ $this->numberOfAvailableAccommodationUnits = $numberOfAvailableAccommodationUnits;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ */
+ public function getNumberOfBedrooms()
+ {
+ return $this->numberOfBedrooms;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfBedrooms
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setNumberOfBedrooms($numberOfBedrooms)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
+ "Number",
+ "null",
+ ];
+
+ $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types);
+
+ $this->numberOfBedrooms = $numberOfBedrooms;
}
}
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..57dd17c0 100644
--- a/src/Models/SchemaOrg/FoodEstablishment.php
+++ b/src/Models/SchemaOrg/FoodEstablishment.php
@@ -17,10 +17,10 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "hasMenu" => "hasMenu",
+ "acceptsReservations" => "acceptsReservations",
"starRating" => "starRating",
"servesCuisine" => "servesCuisine",
- "acceptsReservations" => "acceptsReservations",
- "hasMenu" => "hasMenu",
"menu" => "menu",
];
@@ -28,36 +28,36 @@ public static function fieldList() {
}
/**
- * An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies. Use the author property to indicate the rating organization, e.g. as an Organization with name such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars).
+ * Either the actual menu as a structured representation, as text, or a URL of the menu.
*
*
- * @var \OpenActive\Models\SchemaOrg\Rating|string
+ * @var string|\OpenActive\Models\SchemaOrg\Menu
*/
- protected $starRating;
+ protected $hasMenu;
/**
- * The cuisine of the restaurant.
+ * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings ```Yes``` or ```No```.
*
*
- * @var string
+ * @var bool|string|null
*/
- protected $servesCuisine;
+ protected $acceptsReservations;
/**
- * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings ```Yes``` or ```No```.
+ * An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies. Use the author property to indicate the rating organization, e.g. as an Organization with name such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars).
*
*
- * @var bool|string|null
+ * @var \OpenActive\Models\SchemaOrg\Rating|string
*/
- protected $acceptsReservations;
+ protected $starRating;
/**
- * Either the actual menu as a structured representation, as text, or a URL of the menu.
+ * The cuisine of the restaurant.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Menu
+ * @var string
*/
- protected $hasMenu;
+ protected $servesCuisine;
/**
* Either the actual menu as a structured representation, as text, or a URL of the menu.
@@ -68,103 +68,103 @@ public static function fieldList() {
protected $menu;
/**
- * @return \OpenActive\Models\SchemaOrg\Rating|string
+ * @return string|\OpenActive\Models\SchemaOrg\Menu
*/
- public function getStarRating()
+ public function getHasMenu()
{
- return $this->starRating;
+ return $this->hasMenu;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Rating|string $starRating
+ * @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 setStarRating($starRating)
+ public function setHasMenu($hasMenu)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Rating",
"string",
+ "\OpenActive\Models\SchemaOrg\Menu",
];
- $starRating = self::checkTypes($starRating, $types);
+ $hasMenu = self::checkTypes($hasMenu, $types);
- $this->starRating = $starRating;
+ $this->hasMenu = $hasMenu;
}
/**
- * @return string
+ * @return bool|string|null
*/
- public function getServesCuisine()
+ public function getAcceptsReservations()
{
- return $this->servesCuisine;
+ return $this->acceptsReservations;
}
/**
- * @param string $servesCuisine
+ * @param bool|string|null $acceptsReservations
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setServesCuisine($servesCuisine)
+ public function setAcceptsReservations($acceptsReservations)
{
$types = [
+ "bool",
"string",
+ "null",
];
- $servesCuisine = self::checkTypes($servesCuisine, $types);
+ $acceptsReservations = self::checkTypes($acceptsReservations, $types);
- $this->servesCuisine = $servesCuisine;
+ $this->acceptsReservations = $acceptsReservations;
}
/**
- * @return bool|string|null
+ * @return \OpenActive\Models\SchemaOrg\Rating|string
*/
- public function getAcceptsReservations()
+ public function getStarRating()
{
- return $this->acceptsReservations;
+ return $this->starRating;
}
/**
- * @param bool|string|null $acceptsReservations
+ * @param \OpenActive\Models\SchemaOrg\Rating|string $starRating
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAcceptsReservations($acceptsReservations)
+ public function setStarRating($starRating)
{
$types = [
- "bool",
+ "\OpenActive\Models\SchemaOrg\Rating",
"string",
- "null",
];
- $acceptsReservations = self::checkTypes($acceptsReservations, $types);
+ $starRating = self::checkTypes($starRating, $types);
- $this->acceptsReservations = $acceptsReservations;
+ $this->starRating = $starRating;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Menu
+ * @return string
*/
- public function getHasMenu()
+ public function getServesCuisine()
{
- return $this->hasMenu;
+ return $this->servesCuisine;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Menu $hasMenu
+ * @param string $servesCuisine
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMenu($hasMenu)
+ public function setServesCuisine($servesCuisine)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Menu",
];
- $hasMenu = self::checkTypes($hasMenu, $types);
+ $servesCuisine = self::checkTypes($servesCuisine, $types);
- $this->hasMenu = $hasMenu;
+ $this->servesCuisine = $servesCuisine;
}
/**
diff --git a/src/Models/SchemaOrg/FoodEstablishmentReservation.php b/src/Models/SchemaOrg/FoodEstablishmentReservation.php
index 15f0143c..17581993 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null
*/
- public function getEndTime()
+ public function getPartySize()
{
- return $this->endTime;
+ return $this->partySize;
}
/**
- * @param DateTime|string|null $endTime
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null $partySize
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndTime($endTime)
+ public function setPartySize($partySize)
{
$types = [
- "DateTime",
- "Time",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
+ "int",
"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..b6fcca71 100644
--- a/src/Models/SchemaOrg/Game.php
+++ b/src/Models/SchemaOrg/Game.php
@@ -18,10 +18,10 @@ public static function getType()
public static function fieldList() {
$fields = [
"characterAttribute" => "characterAttribute",
- "gameItem" => "gameItem",
- "numberOfPlayers" => "numberOfPlayers",
- "quest" => "quest",
"gameLocation" => "gameLocation",
+ "quest" => "quest",
+ "numberOfPlayers" => "numberOfPlayers",
+ "gameItem" => "gameItem",
];
return array_merge(parent::fieldList(), $fields);
@@ -36,36 +36,36 @@ public static function fieldList() {
protected $characterAttribute;
/**
- * An item is an object within the game world that can be collected by a player or, occasionally, a non-player character.
+ * Real or fictional location of the game (or part of game).
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress
*/
- protected $gameItem;
+ protected $gameLocation;
/**
- * Indicate how many people can play this game (minimum, maximum, or range).
+ * The task that a player-controlled character, or group of characters may complete in order to gain a reward.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $numberOfPlayers;
+ protected $quest;
/**
- * The task that a player-controlled character, or group of characters may complete in order to gain a reward.
+ * Indicate how many people can play this game (minimum, maximum, or range).
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $quest;
+ protected $numberOfPlayers;
/**
- * Real or fictional location of the game (or part of game).
+ * An item is an object within the game world that can be collected by a player or, occasionally, a non-player character.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $gameLocation;
+ protected $gameItem;
/**
* @return \OpenActive\Models\SchemaOrg\Thing|string
@@ -93,104 +93,104 @@ public function setCharacterAttribute($characterAttribute)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress
*/
- public function getGameItem()
+ public function getGameLocation()
{
- return $this->gameItem;
+ return $this->gameLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $gameItem
+ * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $gameLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGameItem($gameItem)
+ public function setGameLocation($gameLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
];
- $gameItem = self::checkTypes($gameItem, $types);
+ $gameLocation = self::checkTypes($gameLocation, $types);
- $this->gameItem = $gameItem;
+ $this->gameLocation = $gameLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getNumberOfPlayers()
+ public function getQuest()
{
- return $this->numberOfPlayers;
+ return $this->quest;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfPlayers
+ * @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 setNumberOfPlayers($numberOfPlayers)
+ public function setQuest($quest)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $numberOfPlayers = self::checkTypes($numberOfPlayers, $types);
+ $quest = self::checkTypes($quest, $types);
- $this->numberOfPlayers = $numberOfPlayers;
+ $this->quest = $quest;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getQuest()
+ public function getNumberOfPlayers()
{
- return $this->quest;
+ return $this->numberOfPlayers;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $quest
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfPlayers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setQuest($quest)
+ public function setNumberOfPlayers($numberOfPlayers)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $quest = self::checkTypes($quest, $types);
+ $numberOfPlayers = self::checkTypes($numberOfPlayers, $types);
- $this->quest = $quest;
+ $this->numberOfPlayers = $numberOfPlayers;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getGameLocation()
+ public function getGameItem()
{
- return $this->gameLocation;
+ return $this->gameItem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $gameLocation
+ * @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 setGameLocation($gameLocation)
+ public function setGameItem($gameItem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
- "\OpenActive\Models\SchemaOrg\PostalAddress",
];
- $gameLocation = self::checkTypes($gameLocation, $types);
+ $gameItem = self::checkTypes($gameItem, $types);
- $this->gameLocation = $gameLocation;
+ $this->gameItem = $gameItem;
}
}
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..a13b63dc 100644
--- a/src/Models/SchemaOrg/Gene.php
+++ b/src/Models/SchemaOrg/Gene.php
@@ -17,25 +17,25 @@ public static function getType()
public static function fieldList() {
$fields = [
- "alternativeOf" => "alternativeOf",
+ "expressedIn" => "expressedIn",
"hasBioPolymerSequence" => "hasBioPolymerSequence",
"encodesBioChemEntity" => "encodesBioChemEntity",
- "expressedIn" => "expressedIn",
+ "alternativeOf" => "alternativeOf",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Another gene which is a variation of this one.
+ * Tissue, organ, biological sample, etc in which activity of this gene has been observed experimentally. For example brain, digestive system.
*
*
- * @var \OpenActive\Models\SchemaOrg\Gene|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $alternativeOf;
+ protected $expressedIn;
/**
- * A symbolic representation of a BioChemEnity. For example, a nucleotide sequence of a Gene or an amino acid sequence of a Protein.
+ * A symbolic representation of a BioChemEntity. For example, a nucleotide sequence of a Gene or an amino acid sequence of a Protein.
*
*
* @var string
@@ -51,36 +51,39 @@ public static function fieldList() {
protected $encodesBioChemEntity;
/**
- * Tissue, organ, biological sample, etc in which activity of this gene has been observed experimentally. For example brain, digestive system.
+ * Another gene which is a variation of this one.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
+ * @var \OpenActive\Models\SchemaOrg\Gene|string
*/
- protected $expressedIn;
+ protected $alternativeOf;
/**
- * @return \OpenActive\Models\SchemaOrg\Gene|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getAlternativeOf()
+ public function getExpressedIn()
{
- return $this->alternativeOf;
+ return $this->expressedIn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Gene|string $alternativeOf
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\DefinedTerm|string $expressedIn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlternativeOf($alternativeOf)
+ public function setExpressedIn($expressedIn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Gene",
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
+ "\OpenActive\Models\SchemaOrg\BioChemEntity",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $alternativeOf = self::checkTypes($alternativeOf, $types);
+ $expressedIn = self::checkTypes($expressedIn, $types);
- $this->alternativeOf = $alternativeOf;
+ $this->expressedIn = $expressedIn;
}
/**
@@ -133,31 +136,28 @@ public function setEncodesBioChemEntity($encodesBioChemEntity)
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
+ * @return \OpenActive\Models\SchemaOrg\Gene|string
*/
- public function getExpressedIn()
+ public function getAlternativeOf()
{
- return $this->expressedIn;
+ return $this->alternativeOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $expressedIn
+ * @param \OpenActive\Models\SchemaOrg\Gene|string $alternativeOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExpressedIn($expressedIn)
+ public function setAlternativeOf($alternativeOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
- "\OpenActive\Models\SchemaOrg\BioChemEntity",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
- "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
+ "\OpenActive\Models\SchemaOrg\Gene",
"string",
];
- $expressedIn = self::checkTypes($expressedIn, $types);
+ $alternativeOf = self::checkTypes($alternativeOf, $types);
- $this->expressedIn = $expressedIn;
+ $this->alternativeOf = $alternativeOf;
}
}
diff --git a/src/Models/SchemaOrg/GeoCircle.php b/src/Models/SchemaOrg/GeoCircle.php
index 81008cf6..30bf57ad 100644
--- a/src/Models/SchemaOrg/GeoCircle.php
+++ b/src/Models/SchemaOrg/GeoCircle.php
@@ -28,12 +28,12 @@ public static function fieldList() {
* Indicates the approximate radius of a GeoCircle (metres unless indicated otherwise via Distance notation).
*
*
- * @var string|Number|\OpenActive\Models\SchemaOrg\Distance|null
+ * @var \OpenActive\Models\SchemaOrg\Distance|string|Number|null
*/
protected $geoRadius;
/**
- * Indicates the GeoCoordinates at the centre of a GeoShape e.g. GeoCircle.
+ * Indicates the GeoCoordinates at the centre of a GeoShape, e.g. GeoCircle.
*
*
* @var \OpenActive\Models\SchemaOrg\GeoCoordinates|string
@@ -41,7 +41,7 @@ public static function fieldList() {
protected $geoMidpoint;
/**
- * @return string|Number|\OpenActive\Models\SchemaOrg\Distance|null
+ * @return \OpenActive\Models\SchemaOrg\Distance|string|Number|null
*/
public function getGeoRadius()
{
@@ -49,16 +49,16 @@ public function getGeoRadius()
}
/**
- * @param string|Number|\OpenActive\Models\SchemaOrg\Distance|null $geoRadius
+ * @param \OpenActive\Models\SchemaOrg\Distance|string|Number|null $geoRadius
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setGeoRadius($geoRadius)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Distance",
"string",
"Number",
- "\OpenActive\Models\SchemaOrg\Distance",
"null",
];
diff --git a/src/Models/SchemaOrg/GeoCoordinates.php b/src/Models/SchemaOrg/GeoCoordinates.php
index 9e61906e..feb88af5 100644
--- a/src/Models/SchemaOrg/GeoCoordinates.php
+++ b/src/Models/SchemaOrg/GeoCoordinates.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "addressCountry" => "addressCountry",
"latitude" => "latitude",
+ "addressCountry" => "addressCountry",
"address" => "address",
"postalCode" => "postalCode",
"elevation" => "elevation",
@@ -29,26 +29,26 @@ public static function fieldList() {
}
/**
- * The country. For example, USA. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1).
+ * The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).
*
*
- * @var \OpenActive\Models\SchemaOrg\Country|string
+ * @var string|Number|null
*/
- protected $addressCountry;
+ protected $latitude;
/**
- * The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).
+ * 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|Number|null
+ * @var \OpenActive\Models\SchemaOrg\Country|string
*/
- protected $latitude;
+ protected $addressCountry;
/**
* Physical address of the item.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @var \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
protected $address;
@@ -61,7 +61,7 @@ public static function fieldList() {
protected $postalCode;
/**
- * The elevation of a location ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). Values may be of the form 'NUMBER UNIT_OF_MEASUREMENT' (e.g., '1,000 m', '3,200 ft') while numbers alone should be assumed to be a value in meters.
+ * The 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,58 +77,58 @@ public static function fieldList() {
protected $longitude;
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return string|Number|null
*/
- public function getAddressCountry()
+ public function getLatitude()
{
- return $this->addressCountry;
+ return $this->latitude;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $addressCountry
+ * @param string|Number|null $latitude
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAddressCountry($addressCountry)
+ public function setLatitude($latitude)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
"string",
+ "Number",
+ "null",
];
- $addressCountry = self::checkTypes($addressCountry, $types);
+ $latitude = self::checkTypes($latitude, $types);
- $this->addressCountry = $addressCountry;
+ $this->latitude = $latitude;
}
/**
- * @return string|Number|null
+ * @return \OpenActive\Models\SchemaOrg\Country|string
*/
- public function getLatitude()
+ public function getAddressCountry()
{
- return $this->latitude;
+ return $this->addressCountry;
}
/**
- * @param string|Number|null $latitude
+ * @param \OpenActive\Models\SchemaOrg\Country|string $addressCountry
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLatitude($latitude)
+ public function setAddressCountry($addressCountry)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Country",
"string",
- "Number",
- "null",
];
- $latitude = self::checkTypes($latitude, $types);
+ $addressCountry = self::checkTypes($addressCountry, $types);
- $this->latitude = $latitude;
+ $this->addressCountry = $addressCountry;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @return \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
public function getAddress()
{
@@ -136,15 +136,15 @@ public function getAddress()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address
+ * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $address
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAddress($address)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\PostalAddress",
+ "string",
];
$address = self::checkTypes($address, $types);
diff --git a/src/Models/SchemaOrg/GeoShape.php b/src/Models/SchemaOrg/GeoShape.php
index 3a4ebf30..81e01d4a 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",
- "polygon" => "polygon",
+ "box" => "box",
"address" => "address",
"postalCode" => "postalCode",
+ "line" => "line",
+ "circle" => "circle",
"elevation" => "elevation",
- "box" => "box",
+ "polygon" => "polygon",
];
return array_merge(parent::fieldList(), $fields);
@@ -39,47 +39,47 @@ public static function fieldList() {
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 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 $circle;
+ protected $box;
/**
- * 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.
+ * Physical address of the item.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
- protected $line;
+ protected $address;
/**
- * A polygon is the area enclosed by a point-to-point path for which the starting and ending points are the same. A polygon is expressed as a series of four or more space delimited points where the first and final points are identical.
+ * The postal code. For example, 94043.
*
*
* @var string
*/
- protected $polygon;
+ protected $postalCode;
/**
- * Physical address of the item.
+ * A 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|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @var string
*/
- protected $address;
+ protected $line;
/**
- * The postal code. For example, 94043.
+ * 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 $postalCode;
+ protected $circle;
/**
- * 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,12 +87,12 @@ 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 polygon is the area enclosed by a point-to-point path for which the starting and ending points are the same. A polygon is expressed as a series of four or more space delimited points where the first and final points are identical.
*
*
* @var string
*/
- protected $box;
+ protected $polygon;
/**
* @return \OpenActive\Models\SchemaOrg\Country|string
@@ -122,122 +122,122 @@ public function setAddressCountry($addressCountry)
/**
* @return string
*/
- public function getCircle()
+ public function getBox()
{
- return $this->circle;
+ return $this->box;
}
/**
- * @param string $circle
+ * @param string $box
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCircle($circle)
+ public function setBox($box)
{
$types = [
"string",
];
- $circle = self::checkTypes($circle, $types);
+ $box = self::checkTypes($box, $types);
- $this->circle = $circle;
+ $this->box = $box;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
- public function getLine()
+ public function getAddress()
{
- return $this->line;
+ return $this->address;
}
/**
- * @param string $line
+ * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $address
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLine($line)
+ public function setAddress($address)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
"string",
];
- $line = self::checkTypes($line, $types);
+ $address = self::checkTypes($address, $types);
- $this->line = $line;
+ $this->address = $address;
}
/**
* @return string
*/
- public function getPolygon()
+ public function getPostalCode()
{
- return $this->polygon;
+ return $this->postalCode;
}
/**
- * @param string $polygon
+ * @param string $postalCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPolygon($polygon)
+ public function setPostalCode($postalCode)
{
$types = [
"string",
];
- $polygon = self::checkTypes($polygon, $types);
+ $postalCode = self::checkTypes($postalCode, $types);
- $this->polygon = $polygon;
+ $this->postalCode = $postalCode;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @return string
*/
- public function getAddress()
+ public function getLine()
{
- return $this->address;
+ return $this->line;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address
+ * @param string $line
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAddress($address)
+ public function setLine($line)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\PostalAddress",
];
- $address = self::checkTypes($address, $types);
+ $line = self::checkTypes($line, $types);
- $this->address = $address;
+ $this->line = $line;
}
/**
* @return string
*/
- public function getPostalCode()
+ public function getCircle()
{
- return $this->postalCode;
+ return $this->circle;
}
/**
- * @param string $postalCode
+ * @param string $circle
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostalCode($postalCode)
+ public function setCircle($circle)
{
$types = [
"string",
];
- $postalCode = self::checkTypes($postalCode, $types);
+ $circle = self::checkTypes($circle, $types);
- $this->postalCode = $postalCode;
+ $this->circle = $circle;
}
/**
@@ -269,25 +269,25 @@ public function setElevation($elevation)
/**
* @return string
*/
- public function getBox()
+ public function getPolygon()
{
- return $this->box;
+ return $this->polygon;
}
/**
- * @param string $box
+ * @param string $polygon
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBox($box)
+ public function setPolygon($polygon)
{
$types = [
"string",
];
- $box = self::checkTypes($box, $types);
+ $polygon = self::checkTypes($polygon, $types);
- $this->box = $box;
+ $this->polygon = $polygon;
}
}
diff --git a/src/Models/SchemaOrg/GeospatialGeometry.php b/src/Models/SchemaOrg/GeospatialGeometry.php
index 41a3ac0f..eda9cf28 100644
--- a/src/Models/SchemaOrg/GeospatialGeometry.php
+++ b/src/Models/SchemaOrg/GeospatialGeometry.php
@@ -17,76 +17,76 @@ public static function getType()
public static function fieldList() {
$fields = [
- "geoContains" => "geoContains",
- "geoIntersects" => "geoIntersects",
- "geoTouches" => "geoTouches",
+ "geoCovers" => "geoCovers",
"geoCoveredBy" => "geoCoveredBy",
- "geoEquals" => "geoEquals",
"geoCrosses" => "geoCrosses",
- "geoCovers" => "geoCovers",
+ "geoTouches" => "geoTouches",
+ "geoContains" => "geoContains",
+ "geoOverlaps" => "geoOverlaps",
+ "geoIntersects" => "geoIntersects",
"geoWithin" => "geoWithin",
+ "geoEquals" => "geoEquals",
"geoDisjoint" => "geoDisjoint",
- "geoOverlaps" => "geoOverlaps",
];
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 covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
+ * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
*/
- protected $geoContains;
+ protected $geoCovers;
/**
- * Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
+ * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
*
*
- * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoIntersects;
+ protected $geoCoveredBy;
/**
- * Represents spatial relations in which two geometries (or the places they represent) touch: they have at least one boundary point in common, but no interior points." (a symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM) )
+ * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
*
*
* @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoTouches;
+ protected $geoCrosses;
/**
- * 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 spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
+ * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
*/
- protected $geoCoveredBy;
+ protected $geoTouches;
/**
- * 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 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
*/
- protected $geoEquals;
+ protected $geoContains;
/**
- * 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 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 $geoCrosses;
+ protected $geoOverlaps;
/**
- * Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
+ * Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
*
*
* @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
*/
- protected $geoCovers;
+ protected $geoIntersects;
/**
* Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
@@ -97,87 +97,87 @@ public static function fieldList() {
protected $geoWithin;
/**
- * Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: they have no point in common. They form a set of disconnected geometries." (a symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM))
+ * Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).
*
*
- * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoDisjoint;
+ protected $geoEquals;
/**
- * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
+ * Represents spatial relations in which two geometries (or the places they represent) 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 $geoOverlaps;
+ protected $geoDisjoint;
/**
- * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
+ * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
*/
- public function getGeoContains()
+ public function getGeoCovers()
{
- return $this->geoContains;
+ return $this->geoCovers;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoContains
+ * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCovers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoContains($geoContains)
+ public function setGeoCovers($geoCovers)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"\OpenActive\Models\SchemaOrg\GeospatialGeometry",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $geoContains = self::checkTypes($geoContains, $types);
+ $geoCovers = self::checkTypes($geoCovers, $types);
- $this->geoContains = $geoContains;
+ $this->geoCovers = $geoCovers;
}
/**
- * @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 getGeoCoveredBy()
{
- return $this->geoIntersects;
+ return $this->geoCoveredBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoIntersects
+ * @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 setGeoIntersects($geoIntersects)
+ public function setGeoCoveredBy($geoCoveredBy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoIntersects = self::checkTypes($geoIntersects, $types);
+ $geoCoveredBy = self::checkTypes($geoCoveredBy, $types);
- $this->geoIntersects = $geoIntersects;
+ $this->geoCoveredBy = $geoCoveredBy;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoTouches()
+ public function getGeoCrosses()
{
- return $this->geoTouches;
+ return $this->geoCrosses;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoTouches
+ * @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 setGeoTouches($geoTouches)
+ public function setGeoCrosses($geoCrosses)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
@@ -185,51 +185,51 @@ public function setGeoTouches($geoTouches)
"string",
];
- $geoTouches = self::checkTypes($geoTouches, $types);
+ $geoCrosses = self::checkTypes($geoCrosses, $types);
- $this->geoTouches = $geoTouches;
+ $this->geoCrosses = $geoCrosses;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
+ * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
*/
- public function getGeoCoveredBy()
+ public function getGeoTouches()
{
- return $this->geoCoveredBy;
+ return $this->geoTouches;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoCoveredBy
+ * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoTouches
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoCoveredBy($geoCoveredBy)
+ public function setGeoTouches($geoTouches)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"\OpenActive\Models\SchemaOrg\GeospatialGeometry",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $geoCoveredBy = self::checkTypes($geoCoveredBy, $types);
+ $geoTouches = self::checkTypes($geoTouches, $types);
- $this->geoCoveredBy = $geoCoveredBy;
+ $this->geoTouches = $geoTouches;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoEquals()
+ public function getGeoContains()
{
- return $this->geoEquals;
+ return $this->geoContains;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoEquals
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoContains
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoEquals($geoEquals)
+ public function setGeoContains($geoContains)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
@@ -237,51 +237,51 @@ public function setGeoEquals($geoEquals)
"string",
];
- $geoEquals = self::checkTypes($geoEquals, $types);
+ $geoContains = self::checkTypes($geoContains, $types);
- $this->geoEquals = $geoEquals;
+ $this->geoContains = $geoContains;
}
/**
- * @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 getGeoOverlaps()
{
- return $this->geoCrosses;
+ return $this->geoOverlaps;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCrosses
+ * @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 setGeoCrosses($geoCrosses)
+ public function setGeoOverlaps($geoOverlaps)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoCrosses = self::checkTypes($geoCrosses, $types);
+ $geoOverlaps = self::checkTypes($geoOverlaps, $types);
- $this->geoCrosses = $geoCrosses;
+ $this->geoOverlaps = $geoOverlaps;
}
/**
* @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
*/
- public function getGeoCovers()
+ public function getGeoIntersects()
{
- return $this->geoCovers;
+ return $this->geoIntersects;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCovers
+ * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoIntersects
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoCovers($geoCovers)
+ public function setGeoIntersects($geoIntersects)
{
$types = [
"\OpenActive\Models\SchemaOrg\GeospatialGeometry",
@@ -289,9 +289,9 @@ public function setGeoCovers($geoCovers)
"string",
];
- $geoCovers = self::checkTypes($geoCovers, $types);
+ $geoIntersects = self::checkTypes($geoIntersects, $types);
- $this->geoCovers = $geoCovers;
+ $this->geoIntersects = $geoIntersects;
}
/**
@@ -321,55 +321,55 @@ public function setGeoWithin($geoWithin)
}
/**
- * @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 getGeoEquals()
{
- return $this->geoDisjoint;
+ return $this->geoEquals;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoDisjoint
+ * @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 setGeoDisjoint($geoDisjoint)
+ public function setGeoEquals($geoEquals)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoDisjoint = self::checkTypes($geoDisjoint, $types);
+ $geoEquals = self::checkTypes($geoEquals, $types);
- $this->geoDisjoint = $geoDisjoint;
+ $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 getGeoOverlaps()
+ public function getGeoDisjoint()
{
- return $this->geoOverlaps;
+ return $this->geoDisjoint;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoOverlaps
+ * @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 setGeoOverlaps($geoOverlaps)
+ public function setGeoDisjoint($geoDisjoint)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoOverlaps = self::checkTypes($geoOverlaps, $types);
+ $geoDisjoint = self::checkTypes($geoDisjoint, $types);
- $this->geoOverlaps = $geoOverlaps;
+ $this->geoDisjoint = $geoDisjoint;
}
}
diff --git a/src/Models/SchemaOrg/GiveAction.php b/src/Models/SchemaOrg/GiveAction.php
index c6617005..7b8b841b 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\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
protected $recipient;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
public function getRecipient()
{
@@ -40,17 +40,17 @@ public function getRecipient()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setRecipient($recipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
diff --git a/src/Models/SchemaOrg/GovernmentService.php b/src/Models/SchemaOrg/GovernmentService.php
index 524869a5..7196d4a2 100644
--- a/src/Models/SchemaOrg/GovernmentService.php
+++ b/src/Models/SchemaOrg/GovernmentService.php
@@ -28,7 +28,7 @@ public static function fieldList() {
* Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\AdministrativeArea
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
protected $jurisdiction;
@@ -41,7 +41,7 @@ public static function fieldList() {
protected $serviceOperator;
/**
- * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
public function getJurisdiction()
{
@@ -49,15 +49,15 @@ public function getJurisdiction()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\AdministrativeArea $jurisdiction
+ * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $jurisdiction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setJurisdiction($jurisdiction)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "string",
];
$jurisdiction = self::checkTypes($jurisdiction, $types);
diff --git a/src/Models/SchemaOrg/Grant.php b/src/Models/SchemaOrg/Grant.php
index bfd1d00e..630f3a16 100644
--- a/src/Models/SchemaOrg/Grant.php
+++ b/src/Models/SchemaOrg/Grant.php
@@ -17,52 +17,52 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "sponsor" => "sponsor",
"funder" => "funder",
"fundedItem" => "fundedItem",
- "sponsor" => "sponsor",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A person or organization that supports (sponsors) something through some kind of financial contribution.
+ * 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 $funder;
+ protected $sponsor;
/**
- * Indicates something directly or indirectly funded or sponsored through a [[Grant]]. See also [[ownershipFundingInfo]].
+ * A person or organization that supports (sponsors) something through some kind of financial contribution.
*
*
- * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $fundedItem;
+ protected $funder;
/**
- * A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event.
+ * Indicates something directly or indirectly funded or sponsored through a [[Grant]]. See also [[ownershipFundingInfo]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- protected $sponsor;
+ protected $fundedItem;
/**
* @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getFunder()
+ public function getSponsor()
{
- return $this->funder;
+ return $this->sponsor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
+ * @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 setFunder($funder)
+ public function setSponsor($sponsor)
{
$types = [
"\OpenActive\Models\SchemaOrg\Organization",
@@ -70,66 +70,66 @@ public function setFunder($funder)
"string",
];
- $funder = self::checkTypes($funder, $types);
+ $sponsor = self::checkTypes($sponsor, $types);
- $this->funder = $funder;
+ $this->sponsor = $sponsor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getFundedItem()
+ public function getFunder()
{
- return $this->fundedItem;
+ return $this->funder;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Organization|string $fundedItem
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFundedItem($fundedItem)
+ public function setFunder($funder)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Product",
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\BioChemEntity",
- "\OpenActive\Models\SchemaOrg\Event",
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $fundedItem = self::checkTypes($fundedItem, $types);
+ $funder = self::checkTypes($funder, $types);
- $this->fundedItem = $fundedItem;
+ $this->funder = $funder;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- public function getSponsor()
+ public function getFundedItem()
{
- return $this->sponsor;
+ return $this->fundedItem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
+ * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\BioChemEntity|string $fundedItem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSponsor($sponsor)
+ public function setFundedItem($fundedItem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Product",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
+ "\OpenActive\Models\SchemaOrg\BioChemEntity",
"string",
];
- $sponsor = self::checkTypes($sponsor, $types);
+ $fundedItem = self::checkTypes($fundedItem, $types);
- $this->sponsor = $sponsor;
+ $this->fundedItem = $fundedItem;
}
}
diff --git a/src/Models/SchemaOrg/HealthInsurancePlan.php b/src/Models/SchemaOrg/HealthInsurancePlan.php
index 80f8844e..f81d0741 100644
--- a/src/Models/SchemaOrg/HealthInsurancePlan.php
+++ b/src/Models/SchemaOrg/HealthInsurancePlan.php
@@ -18,14 +18,14 @@ public static function getType()
public static function fieldList() {
$fields = [
"includesHealthPlanFormulary" => "includesHealthPlanFormulary",
- "benefitsSummaryUrl" => "benefitsSummaryUrl",
- "healthPlanDrugOption" => "healthPlanDrugOption",
- "healthPlanDrugTier" => "healthPlanDrugTier",
- "healthPlanId" => "healthPlanId",
- "contactPoint" => "contactPoint",
+ "healthPlanMarketingUrl" => "healthPlanMarketingUrl",
"usesHealthPlanIdStandard" => "usesHealthPlanIdStandard",
+ "contactPoint" => "contactPoint",
+ "healthPlanDrugTier" => "healthPlanDrugTier",
+ "healthPlanDrugOption" => "healthPlanDrugOption",
+ "benefitsSummaryUrl" => "benefitsSummaryUrl",
"includesHealthPlanNetwork" => "includesHealthPlanNetwork",
- "healthPlanMarketingUrl" => "healthPlanMarketingUrl",
+ "healthPlanId" => "healthPlanId",
];
return array_merge(parent::fieldList(), $fields);
@@ -40,52 +40,52 @@ public static function fieldList() {
protected $includesHealthPlanFormulary;
/**
- * The URL that goes directly to the summary of benefits and coverage for the specific standard plan or plan variation.
+ * The URL that goes directly to the plan brochure for the specific standard plan or plan variation.
*
*
* @var string
*/
- protected $benefitsSummaryUrl;
+ protected $healthPlanMarketingUrl;
/**
- * 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.
+ * A contact point for a person or organization.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- protected $healthPlanDrugTier;
+ protected $contactPoint;
/**
- * The 14-character, HIOS-generated Plan ID number. (Plan IDs must be unique, even across different markets.)
+ * The tier(s) of drugs offered by this formulary or insurance plan.
*
*
* @var string
*/
- protected $healthPlanId;
+ protected $healthPlanDrugTier;
/**
- * A contact point for a person or organization.
+ * TODO.
*
*
- * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @var string
*/
- protected $contactPoint;
+ protected $healthPlanDrugOption;
/**
- * The standard for interpreting thePlan ID. The preferred is "HIOS". See the Centers for Medicare & Medicaid Services for more details.
+ * The URL that goes directly to the summary of benefits and coverage for the specific standard plan or plan variation.
*
*
* @var string
*/
- protected $usesHealthPlanIdStandard;
+ protected $benefitsSummaryUrl;
/**
* Networks covered by this plan.
@@ -96,12 +96,12 @@ public static function fieldList() {
protected $includesHealthPlanNetwork;
/**
- * The URL that goes directly to the plan brochure for the specific standard plan or plan variation.
+ * The 14-character, HIOS-generated Plan ID number. (Plan IDs must be unique, even across different markets.)
*
*
* @var string
*/
- protected $healthPlanMarketingUrl;
+ protected $healthPlanId;
/**
* @return \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string
@@ -131,146 +131,146 @@ public function setIncludesHealthPlanFormulary($includesHealthPlanFormulary)
/**
* @return string
*/
- public function getBenefitsSummaryUrl()
+ public function getHealthPlanMarketingUrl()
{
- return $this->benefitsSummaryUrl;
+ return $this->healthPlanMarketingUrl;
}
/**
- * @param string $benefitsSummaryUrl
+ * @param string $healthPlanMarketingUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBenefitsSummaryUrl($benefitsSummaryUrl)
+ public function setHealthPlanMarketingUrl($healthPlanMarketingUrl)
{
$types = [
"string",
];
- $benefitsSummaryUrl = self::checkTypes($benefitsSummaryUrl, $types);
+ $healthPlanMarketingUrl = self::checkTypes($healthPlanMarketingUrl, $types);
- $this->benefitsSummaryUrl = $benefitsSummaryUrl;
+ $this->healthPlanMarketingUrl = $healthPlanMarketingUrl;
}
/**
* @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;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- public function getHealthPlanDrugTier()
+ public function getContactPoint()
{
- return $this->healthPlanDrugTier;
+ return $this->contactPoint;
}
/**
- * @param string $healthPlanDrugTier
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanDrugTier($healthPlanDrugTier)
+ public function setContactPoint($contactPoint)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
];
- $healthPlanDrugTier = self::checkTypes($healthPlanDrugTier, $types);
+ $contactPoint = self::checkTypes($contactPoint, $types);
- $this->healthPlanDrugTier = $healthPlanDrugTier;
+ $this->contactPoint = $contactPoint;
}
/**
* @return string
*/
- public function getHealthPlanId()
+ public function getHealthPlanDrugTier()
{
- return $this->healthPlanId;
+ return $this->healthPlanDrugTier;
}
/**
- * @param string $healthPlanId
+ * @param string $healthPlanDrugTier
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanId($healthPlanId)
+ public function setHealthPlanDrugTier($healthPlanDrugTier)
{
$types = [
"string",
];
- $healthPlanId = self::checkTypes($healthPlanId, $types);
+ $healthPlanDrugTier = self::checkTypes($healthPlanDrugTier, $types);
- $this->healthPlanId = $healthPlanId;
+ $this->healthPlanDrugTier = $healthPlanDrugTier;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @return string
*/
- public function getContactPoint()
+ public function getHealthPlanDrugOption()
{
- return $this->contactPoint;
+ return $this->healthPlanDrugOption;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint
+ * @param string $healthPlanDrugOption
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContactPoint($contactPoint)
+ public function setHealthPlanDrugOption($healthPlanDrugOption)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
];
- $contactPoint = self::checkTypes($contactPoint, $types);
+ $healthPlanDrugOption = self::checkTypes($healthPlanDrugOption, $types);
- $this->contactPoint = $contactPoint;
+ $this->healthPlanDrugOption = $healthPlanDrugOption;
}
/**
* @return string
*/
- public function getUsesHealthPlanIdStandard()
+ public function getBenefitsSummaryUrl()
{
- return $this->usesHealthPlanIdStandard;
+ return $this->benefitsSummaryUrl;
}
/**
- * @param string $usesHealthPlanIdStandard
+ * @param string $benefitsSummaryUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUsesHealthPlanIdStandard($usesHealthPlanIdStandard)
+ public function setBenefitsSummaryUrl($benefitsSummaryUrl)
{
$types = [
"string",
];
- $usesHealthPlanIdStandard = self::checkTypes($usesHealthPlanIdStandard, $types);
+ $benefitsSummaryUrl = self::checkTypes($benefitsSummaryUrl, $types);
- $this->usesHealthPlanIdStandard = $usesHealthPlanIdStandard;
+ $this->benefitsSummaryUrl = $benefitsSummaryUrl;
}
/**
@@ -301,25 +301,25 @@ public function setIncludesHealthPlanNetwork($includesHealthPlanNetwork)
/**
* @return string
*/
- public function getHealthPlanMarketingUrl()
+ public function getHealthPlanId()
{
- return $this->healthPlanMarketingUrl;
+ return $this->healthPlanId;
}
/**
- * @param string $healthPlanMarketingUrl
+ * @param string $healthPlanId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanMarketingUrl($healthPlanMarketingUrl)
+ public function setHealthPlanId($healthPlanId)
{
$types = [
"string",
];
- $healthPlanMarketingUrl = self::checkTypes($healthPlanMarketingUrl, $types);
+ $healthPlanId = self::checkTypes($healthPlanId, $types);
- $this->healthPlanMarketingUrl = $healthPlanMarketingUrl;
+ $this->healthPlanId = $healthPlanId;
}
}
diff --git a/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php b/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php
index f1110c97..d30f0115 100644
--- a/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php
+++ b/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php
@@ -17,24 +17,16 @@ public static function getType()
public static function fieldList() {
$fields = [
- "healthPlanCoinsuranceRate" => "healthPlanCoinsuranceRate",
"healthPlanCoinsuranceOption" => "healthPlanCoinsuranceOption",
- "healthPlanPharmacyCategory" => "healthPlanPharmacyCategory",
"healthPlanCopay" => "healthPlanCopay",
+ "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.
- *
- *
- * @var Number|null
- */
- protected $healthPlanCoinsuranceRate;
-
/**
* Whether the coinsurance applies before or after deductible, etc. TODO: Is this a closed set?
*
@@ -44,20 +36,20 @@ public static function fieldList() {
protected $healthPlanCoinsuranceOption;
/**
- * The category or type of pharmacy associated with this cost sharing.
+ * The copay amount.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $healthPlanPharmacyCategory;
+ protected $healthPlanCopay;
/**
- * Whether The copay amount.
+ * The rate of coinsurance expressed as a number between 0.0 and 1.0.
*
*
- * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @var Number|null
*/
- protected $healthPlanCopay;
+ protected $healthPlanCoinsuranceRate;
/**
* Whether the copay is before or after deductible, etc. TODO: Is this a closed set?
@@ -68,29 +60,12 @@ public static function fieldList() {
protected $healthPlanCopayOption;
/**
- * @return Number|null
- */
- public function getHealthPlanCoinsuranceRate()
- {
- return $this->healthPlanCoinsuranceRate;
- }
-
- /**
- * @param Number|null $healthPlanCoinsuranceRate
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The category or type of pharmacy associated with this cost sharing.
+ *
+ *
+ * @var string
*/
- public function setHealthPlanCoinsuranceRate($healthPlanCoinsuranceRate)
- {
- $types = [
- "Number",
- "null",
- ];
-
- $healthPlanCoinsuranceRate = self::checkTypes($healthPlanCoinsuranceRate, $types);
-
- $this->healthPlanCoinsuranceRate = $healthPlanCoinsuranceRate;
- }
+ protected $healthPlanPharmacyCategory;
/**
* @return string
@@ -117,52 +92,53 @@ public function setHealthPlanCoinsuranceOption($healthPlanCoinsuranceOption)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- public function getHealthPlanPharmacyCategory()
+ public function getHealthPlanCopay()
{
- return $this->healthPlanPharmacyCategory;
+ return $this->healthPlanCopay;
}
/**
- * @param string $healthPlanPharmacyCategory
+ * @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 setHealthPlanPharmacyCategory($healthPlanPharmacyCategory)
+ public function setHealthPlanCopay($healthPlanCopay)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
];
- $healthPlanPharmacyCategory = self::checkTypes($healthPlanPharmacyCategory, $types);
+ $healthPlanCopay = self::checkTypes($healthPlanCopay, $types);
- $this->healthPlanPharmacyCategory = $healthPlanPharmacyCategory;
+ $this->healthPlanCopay = $healthPlanCopay;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @return Number|null
*/
- public function getHealthPlanCopay()
+ public function getHealthPlanCoinsuranceRate()
{
- return $this->healthPlanCopay;
+ return $this->healthPlanCoinsuranceRate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $healthPlanCopay
+ * @param Number|null $healthPlanCoinsuranceRate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanCopay($healthPlanCopay)
+ public function setHealthPlanCoinsuranceRate($healthPlanCoinsuranceRate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
- "string",
+ "Number",
+ "null",
];
- $healthPlanCopay = self::checkTypes($healthPlanCopay, $types);
+ $healthPlanCoinsuranceRate = self::checkTypes($healthPlanCoinsuranceRate, $types);
- $this->healthPlanCopay = $healthPlanCopay;
+ $this->healthPlanCoinsuranceRate = $healthPlanCoinsuranceRate;
}
/**
@@ -189,4 +165,28 @@ public function setHealthPlanCopayOption($healthPlanCopayOption)
$this->healthPlanCopayOption = $healthPlanCopayOption;
}
+ /**
+ * @return string
+ */
+ public function getHealthPlanPharmacyCategory()
+ {
+ return $this->healthPlanPharmacyCategory;
+ }
+
+ /**
+ * @param string $healthPlanPharmacyCategory
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setHealthPlanPharmacyCategory($healthPlanPharmacyCategory)
+ {
+ $types = [
+ "string",
+ ];
+
+ $healthPlanPharmacyCategory = self::checkTypes($healthPlanPharmacyCategory, $types);
+
+ $this->healthPlanPharmacyCategory = $healthPlanPharmacyCategory;
+ }
+
}
diff --git a/src/Models/SchemaOrg/HealthPlanFormulary.php b/src/Models/SchemaOrg/HealthPlanFormulary.php
index 52a8bfb6..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..1e98db1b 100644
--- a/src/Models/SchemaOrg/HealthPlanNetwork.php
+++ b/src/Models/SchemaOrg/HealthPlanNetwork.php
@@ -17,24 +17,16 @@ public static function getType()
public static function fieldList() {
$fields = [
- "healthPlanNetworkId" => "healthPlanNetworkId",
"healthPlanCostSharing" => "healthPlanCostSharing",
"healthPlanNetworkTier" => "healthPlanNetworkTier",
+ "healthPlanNetworkId" => "healthPlanNetworkId",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Name or unique ID of network. (Networks are often reused across different insurance plans).
- *
- *
- * @var string
- */
- protected $healthPlanNetworkId;
-
- /**
- * 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
@@ -50,28 +42,12 @@ public static function fieldList() {
protected $healthPlanNetworkTier;
/**
- * @return string
- */
- public function getHealthPlanNetworkId()
- {
- return $this->healthPlanNetworkId;
- }
-
- /**
- * @param string $healthPlanNetworkId
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * Name or unique ID of network. (Networks are often reused across different insurance plans.)
+ *
+ *
+ * @var string
*/
- public function setHealthPlanNetworkId($healthPlanNetworkId)
- {
- $types = [
- "string",
- ];
-
- $healthPlanNetworkId = self::checkTypes($healthPlanNetworkId, $types);
-
- $this->healthPlanNetworkId = $healthPlanNetworkId;
- }
+ protected $healthPlanNetworkId;
/**
* @return bool|null
@@ -122,4 +98,28 @@ public function setHealthPlanNetworkTier($healthPlanNetworkTier)
$this->healthPlanNetworkTier = $healthPlanNetworkTier;
}
+ /**
+ * @return string
+ */
+ public function getHealthPlanNetworkId()
+ {
+ return $this->healthPlanNetworkId;
+ }
+
+ /**
+ * @param string $healthPlanNetworkId
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setHealthPlanNetworkId($healthPlanNetworkId)
+ {
+ $types = [
+ "string",
+ ];
+
+ $healthPlanNetworkId = self::checkTypes($healthPlanNetworkId, $types);
+
+ $this->healthPlanNetworkId = $healthPlanNetworkId;
+ }
+
}
diff --git a/src/Models/SchemaOrg/Hospital.php b/src/Models/SchemaOrg/Hospital.php
index 57b3d032..fe09bec0 100644
--- a/src/Models/SchemaOrg/Hospital.php
+++ b/src/Models/SchemaOrg/Hospital.php
@@ -5,7 +5,7 @@
/**
*
*/
-class Hospital extends \OpenActive\Models\SchemaOrg\MedicalOrganization
+class Hospital extends \OpenActive\Models\SchemaOrg\CivicStructure
{
/**
* @return string[]|null
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"availableService" => "availableService",
- "healthcareReportingData" => "healthcareReportingData",
"medicalSpecialty" => "medicalSpecialty",
+ "healthcareReportingData" => "healthcareReportingData",
];
return array_merge(parent::fieldList(), $fields);
@@ -29,28 +29,28 @@ public static function fieldList() {
* A medical service available from this provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTest|string
*/
protected $availableService;
/**
- * Indicates data describing a hospital, e.g. a CDC [[CDCPMDRecord]] or as some kind of [[Dataset]].
+ * A medical specialty of the provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\CDCPMDRecord|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- protected $healthcareReportingData;
+ protected $medicalSpecialty;
/**
- * 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\Dataset|\OpenActive\Models\SchemaOrg\CDCPMDRecord|string
*/
- protected $medicalSpecialty;
+ protected $healthcareReportingData;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTest|string
*/
public function getAvailableService()
{
@@ -58,16 +58,16 @@ public function getAvailableService()
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string $availableService
+ * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTest|string $availableService
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAvailableService($availableService)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTest",
- "\OpenActive\Models\SchemaOrg\MedicalProcedure",
"\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\MedicalProcedure",
+ "\OpenActive\Models\SchemaOrg\MedicalTest",
"string",
];
@@ -77,54 +77,54 @@ public function setAvailableService($availableService)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\CDCPMDRecord|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- public function getHealthcareReportingData()
+ public function getMedicalSpecialty()
{
- return $this->healthcareReportingData;
+ return $this->medicalSpecialty;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\CDCPMDRecord|string $healthcareReportingData
+ * @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 setHealthcareReportingData($healthcareReportingData)
+ public function setMedicalSpecialty($medicalSpecialty)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Dataset",
- "\OpenActive\Models\SchemaOrg\CDCPMDRecord",
+ "\OpenActive\Models\SchemaOrg\MedicalSpecialty",
"string",
];
- $healthcareReportingData = self::checkTypes($healthcareReportingData, $types);
+ $medicalSpecialty = self::checkTypes($medicalSpecialty, $types);
- $this->healthcareReportingData = $healthcareReportingData;
+ $this->medicalSpecialty = $medicalSpecialty;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ * @return \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\CDCPMDRecord|string
*/
- public function getMedicalSpecialty()
+ public function getHealthcareReportingData()
{
- return $this->medicalSpecialty;
+ return $this->healthcareReportingData;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $medicalSpecialty
+ * @param \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\CDCPMDRecord|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\Dataset",
+ "\OpenActive\Models\SchemaOrg\CDCPMDRecord",
"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..b186a3d6 100644
--- a/src/Models/SchemaOrg/HotelRoom.php
+++ b/src/Models/SchemaOrg/HotelRoom.php
@@ -17,80 +17,80 @@ public static function getType()
public static function fieldList() {
$fields = [
- "bed" => "bed",
"occupancy" => "occupancy",
+ "bed" => "bed",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The type of bed or beds included in the accommodation. For the single case of just one bed of a certain type, you use bed directly with a text.
- * If you want to indicate the quantity of a certain kind of bed, use an instance of BedDetails. For more detailed information, use the amenityFeature property.
+ * The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person).
+ * Typical unit code(s): C62 for person
*
*
- * @var \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $bed;
+ protected $occupancy;
/**
- * The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person).
- * Typical unit code(s): C62 for person
+ * The type of bed or beds included in the accommodation. For the single case of just one bed of a certain type, you use bed directly with a text.
+ * If you want to indicate the quantity of a certain kind of bed, use an instance of BedDetails. For more detailed information, use the amenityFeature property.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string
*/
- protected $occupancy;
+ protected $bed;
/**
- * @return \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getBed()
+ public function getOccupancy()
{
- return $this->bed;
+ return $this->occupancy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType $bed
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $occupancy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBed($bed)
+ public function setOccupancy($occupancy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BedDetails",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "\OpenActive\Models\SchemaOrg\BedType",
];
- $bed = self::checkTypes($bed, $types);
+ $occupancy = self::checkTypes($occupancy, $types);
- $this->bed = $bed;
+ $this->occupancy = $occupancy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string
*/
- public function getOccupancy()
+ public function getBed()
{
- return $this->occupancy;
+ return $this->bed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $occupancy
+ * @param \OpenActive\Models\SchemaOrg\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string $bed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupancy($occupancy)
+ public function setBed($bed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\BedType",
+ "\OpenActive\Models\SchemaOrg\BedDetails",
"string",
];
- $occupancy = self::checkTypes($occupancy, $types);
+ $bed = self::checkTypes($bed, $types);
- $this->occupancy = $occupancy;
+ $this->bed = $bed;
}
}
diff --git a/src/Models/SchemaOrg/HowTo.php b/src/Models/SchemaOrg/HowTo.php
index 61090b30..41772c62 100644
--- a/src/Models/SchemaOrg/HowTo.php
+++ b/src/Models/SchemaOrg/HowTo.php
@@ -17,321 +17,321 @@ public static function getType()
public static function fieldList() {
$fields = [
- "yield" => "yield",
- "estimatedCost" => "estimatedCost",
- "supply" => "supply",
- "step" => "step",
- "totalTime" => "totalTime",
"tool" => "tool",
- "prepTime" => "prepTime",
+ "totalTime" => "totalTime",
"steps" => "steps",
+ "prepTime" => "prepTime",
+ "supply" => "supply",
"performTime" => "performTime",
+ "estimatedCost" => "estimatedCost",
+ "step" => "step",
+ "yield" => "yield",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The quantity that results by performing instructions. For example, a paper airplane, 10 personalized candles.
+ * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @var \OpenActive\Models\SchemaOrg\HowToTool|string
*/
- protected $yield;
+ protected $tool;
/**
- * The estimated cost of the supply or supplies consumed when performing instructions.
+ * The total time required to perform instructions or a direction (including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MonetaryAmount
+ * @var DateInterval|string|null
*/
- protected $estimatedCost;
+ protected $totalTime;
/**
- * A sub-property of instrument. A supply consumed when performing instructions or a direction.
+ * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection (originally misnamed 'steps'; 'step' is preferred).
*
*
- * @var \OpenActive\Models\SchemaOrg\HowToSupply|string
+ * @var string|\OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $supply;
+ protected $steps;
/**
- * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection.
+ * 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\HowToStep|\OpenActive\Models\SchemaOrg\HowToSection|string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var DateInterval|string|null
*/
- protected $step;
+ protected $prepTime;
/**
- * The total time required to perform instructions or a direction (including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
+ * A sub-property of instrument. A supply consumed when performing instructions or a direction.
*
*
- * @var DateInterval|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\HowToSupply
*/
- protected $totalTime;
+ protected $supply;
/**
- * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction.
+ * The length of time it takes to perform instructions or a direction (not including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var \OpenActive\Models\SchemaOrg\HowToTool|string
+ * @var DateInterval|string|null
*/
- protected $tool;
+ protected $performTime;
/**
- * The length of time it takes to prepare the items to be used in instructions or a direction, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The estimated cost of the supply or supplies consumed when performing instructions.
*
*
- * @var DateInterval|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\MonetaryAmount
*/
- protected $prepTime;
+ protected $estimatedCost;
/**
- * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection (originally misnamed 'steps'; 'step' is preferred).
+ * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection.
*
*
- * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\HowToSection|\OpenActive\Models\SchemaOrg\HowToStep|string
*/
- protected $steps;
+ protected $step;
/**
- * The length of time it takes to perform instructions or a direction (not including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The quantity that results by performing instructions. For example, a paper airplane, 10 personalized candles.
*
*
- * @var DateInterval|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- protected $performTime;
+ protected $yield;
/**
- * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @return \OpenActive\Models\SchemaOrg\HowToTool|string
*/
- public function getYield()
+ public function getTool()
{
- return $this->yield;
+ return $this->tool;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $yield
+ * @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 setYield($yield)
+ public function setTool($tool)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\HowToTool",
"string",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $yield = self::checkTypes($yield, $types);
+ $tool = self::checkTypes($tool, $types);
- $this->yield = $yield;
+ $this->tool = $tool;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MonetaryAmount
+ * @return DateInterval|string|null
*/
- public function getEstimatedCost()
+ public function getTotalTime()
{
- return $this->estimatedCost;
+ return $this->totalTime;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MonetaryAmount $estimatedCost
+ * @param DateInterval|string|null $totalTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEstimatedCost($estimatedCost)
+ public function setTotalTime($totalTime)
{
$types = [
+ "DateInterval",
"string",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "null",
];
- $estimatedCost = self::checkTypes($estimatedCost, $types);
+ $totalTime = self::checkTypes($totalTime, $types);
- $this->estimatedCost = $estimatedCost;
+ $this->totalTime = $totalTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HowToSupply|string
+ * @return string|\OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getSupply()
+ public function getSteps()
{
- return $this->supply;
+ return $this->steps;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HowToSupply|string $supply
+ * @param string|\OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork $steps
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSupply($supply)
+ public function setSteps($steps)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HowToSupply",
"string",
+ "\OpenActive\Models\SchemaOrg\ItemList",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $supply = self::checkTypes($supply, $types);
+ $steps = self::checkTypes($steps, $types);
- $this->supply = $supply;
+ $this->steps = $steps;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\HowToSection|string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return DateInterval|string|null
*/
- public function getStep()
+ public function getPrepTime()
{
- return $this->step;
+ return $this->prepTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\HowToSection|string|\OpenActive\Models\SchemaOrg\CreativeWork $step
+ * @param DateInterval|string|null $prepTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStep($step)
+ public function setPrepTime($prepTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HowToStep",
- "\OpenActive\Models\SchemaOrg\HowToSection",
+ "DateInterval",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "null",
];
- $step = self::checkTypes($step, $types);
+ $prepTime = self::checkTypes($prepTime, $types);
- $this->step = $step;
+ $this->prepTime = $prepTime;
}
/**
- * @return DateInterval|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\HowToSupply
*/
- public function getTotalTime()
+ public function getSupply()
{
- return $this->totalTime;
+ return $this->supply;
}
/**
- * @param DateInterval|string|null $totalTime
+ * @param string|\OpenActive\Models\SchemaOrg\HowToSupply $supply
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTotalTime($totalTime)
+ public function setSupply($supply)
{
$types = [
- "DateInterval",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\HowToSupply",
];
- $totalTime = self::checkTypes($totalTime, $types);
+ $supply = self::checkTypes($supply, $types);
- $this->totalTime = $totalTime;
+ $this->supply = $supply;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HowToTool|string
+ * @return DateInterval|string|null
*/
- public function getTool()
+ public function getPerformTime()
{
- return $this->tool;
+ return $this->performTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HowToTool|string $tool
+ * @param DateInterval|string|null $performTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTool($tool)
+ public function setPerformTime($performTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HowToTool",
+ "DateInterval",
"string",
+ "null",
];
- $tool = self::checkTypes($tool, $types);
+ $performTime = self::checkTypes($performTime, $types);
- $this->tool = $tool;
+ $this->performTime = $performTime;
}
/**
- * @return DateInterval|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\MonetaryAmount
*/
- public function getPrepTime()
+ public function getEstimatedCost()
{
- return $this->prepTime;
+ return $this->estimatedCost;
}
/**
- * @param DateInterval|string|null $prepTime
+ * @param string|\OpenActive\Models\SchemaOrg\MonetaryAmount $estimatedCost
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrepTime($prepTime)
+ public function setEstimatedCost($estimatedCost)
{
$types = [
- "DateInterval",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
];
- $prepTime = self::checkTypes($prepTime, $types);
+ $estimatedCost = self::checkTypes($estimatedCost, $types);
- $this->prepTime = $prepTime;
+ $this->estimatedCost = $estimatedCost;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\HowToSection|\OpenActive\Models\SchemaOrg\HowToStep|string
*/
- public function getSteps()
+ public function getStep()
{
- return $this->steps;
+ return $this->step;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string $steps
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\HowToSection|\OpenActive\Models\SchemaOrg\HowToStep|string $step
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSteps($steps)
+ public function setStep($step)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ItemList",
"\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\HowToSection",
+ "\OpenActive\Models\SchemaOrg\HowToStep",
"string",
];
- $steps = self::checkTypes($steps, $types);
+ $step = self::checkTypes($step, $types);
- $this->steps = $steps;
+ $this->step = $step;
}
/**
- * @return DateInterval|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- public function getPerformTime()
+ public function getYield()
{
- return $this->performTime;
+ return $this->yield;
}
/**
- * @param DateInterval|string|null $performTime
+ * @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 setPerformTime($performTime)
+ public function setYield($yield)
{
$types = [
- "DateInterval",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $performTime = self::checkTypes($performTime, $types);
+ $yield = self::checkTypes($yield, $types);
- $this->performTime = $performTime;
+ $this->yield = $yield;
}
}
diff --git a/src/Models/SchemaOrg/HowToDirection.php b/src/Models/SchemaOrg/HowToDirection.php
index c1650da5..74f3c6c3 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,284 +17,284 @@ public static function getType()
public static function fieldList() {
$fields = [
- "afterMedia" => "afterMedia",
- "supply" => "supply",
- "duringMedia" => "duringMedia",
- "totalTime" => "totalTime",
- "beforeMedia" => "beforeMedia",
"tool" => "tool",
+ "totalTime" => "totalTime",
"prepTime" => "prepTime",
+ "duringMedia" => "duringMedia",
+ "supply" => "supply",
"performTime" => "performTime",
+ "beforeMedia" => "beforeMedia",
+ "afterMedia" => "afterMedia",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A media object representing the circumstances after 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 $afterMedia;
+ protected $tool;
/**
- * A sub-property of instrument. A supply consumed when performing instructions or a direction.
+ * The total time required to perform instructions or a direction (including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var \OpenActive\Models\SchemaOrg\HowToSupply|string
+ * @var DateInterval|string|null
*/
- protected $supply;
+ protected $totalTime;
/**
- * A media object representing the circumstances while performing this direction.
+ * The length of time it takes to prepare the items to be used in instructions or a direction, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MediaObject
+ * @var DateInterval|string|null
*/
- protected $duringMedia;
+ protected $prepTime;
/**
- * The total time required to perform instructions or a direction (including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
+ * A media object representing the circumstances while performing this direction.
*
*
- * @var DateInterval|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\MediaObject
*/
- protected $totalTime;
+ protected $duringMedia;
/**
- * A media object representing the circumstances before performing this direction.
+ * A sub-property of instrument. A supply consumed when performing instructions or a direction.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MediaObject
+ * @var string|\OpenActive\Models\SchemaOrg\HowToSupply
*/
- protected $beforeMedia;
+ protected $supply;
/**
- * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction.
+ * The length of time it takes to perform instructions or a direction (not including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var \OpenActive\Models\SchemaOrg\HowToTool|string
+ * @var DateInterval|string|null
*/
- protected $tool;
+ protected $performTime;
/**
- * The length of time it takes to prepare the items to be used in instructions or a direction, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
+ * A media object representing the circumstances before performing this direction.
*
*
- * @var DateInterval|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\MediaObject
*/
- protected $prepTime;
+ protected $beforeMedia;
/**
- * The length of time it takes to perform instructions or a direction (not including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
+ * A media object representing the circumstances after performing this direction.
*
*
- * @var DateInterval|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\MediaObject
*/
- protected $performTime;
+ protected $afterMedia;
/**
- * @return string|\OpenActive\Models\SchemaOrg\MediaObject
+ * @return \OpenActive\Models\SchemaOrg\HowToTool|string
*/
- public function getAfterMedia()
+ public function getTool()
{
- return $this->afterMedia;
+ return $this->tool;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MediaObject $afterMedia
+ * @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 setAfterMedia($afterMedia)
+ public function setTool($tool)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\HowToTool",
"string",
- "\OpenActive\Models\SchemaOrg\MediaObject",
];
- $afterMedia = self::checkTypes($afterMedia, $types);
+ $tool = self::checkTypes($tool, $types);
- $this->afterMedia = $afterMedia;
+ $this->tool = $tool;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HowToSupply|string
+ * @return DateInterval|string|null
*/
- public function getSupply()
+ public function getTotalTime()
{
- return $this->supply;
+ return $this->totalTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HowToSupply|string $supply
+ * @param DateInterval|string|null $totalTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSupply($supply)
+ public function setTotalTime($totalTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HowToSupply",
+ "DateInterval",
"string",
+ "null",
];
- $supply = self::checkTypes($supply, $types);
+ $totalTime = self::checkTypes($totalTime, $types);
- $this->supply = $supply;
+ $this->totalTime = $totalTime;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MediaObject
+ * @return DateInterval|string|null
*/
- public function getDuringMedia()
+ public function getPrepTime()
{
- return $this->duringMedia;
+ return $this->prepTime;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MediaObject $duringMedia
+ * @param DateInterval|string|null $prepTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDuringMedia($duringMedia)
+ public function setPrepTime($prepTime)
{
$types = [
+ "DateInterval",
"string",
- "\OpenActive\Models\SchemaOrg\MediaObject",
+ "null",
];
- $duringMedia = self::checkTypes($duringMedia, $types);
+ $prepTime = self::checkTypes($prepTime, $types);
- $this->duringMedia = $duringMedia;
+ $this->prepTime = $prepTime;
}
/**
- * @return DateInterval|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\MediaObject
*/
- public function getTotalTime()
+ public function getDuringMedia()
{
- return $this->totalTime;
+ return $this->duringMedia;
}
/**
- * @param DateInterval|string|null $totalTime
+ * @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 setTotalTime($totalTime)
+ public function setDuringMedia($duringMedia)
{
$types = [
- "DateInterval",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
];
- $totalTime = self::checkTypes($totalTime, $types);
+ $duringMedia = self::checkTypes($duringMedia, $types);
- $this->totalTime = $totalTime;
+ $this->duringMedia = $duringMedia;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MediaObject
+ * @return string|\OpenActive\Models\SchemaOrg\HowToSupply
*/
- public function getBeforeMedia()
+ public function getSupply()
{
- return $this->beforeMedia;
+ return $this->supply;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MediaObject $beforeMedia
+ * @param string|\OpenActive\Models\SchemaOrg\HowToSupply $supply
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBeforeMedia($beforeMedia)
+ public function setSupply($supply)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\MediaObject",
+ "\OpenActive\Models\SchemaOrg\HowToSupply",
];
- $beforeMedia = self::checkTypes($beforeMedia, $types);
+ $supply = self::checkTypes($supply, $types);
- $this->beforeMedia = $beforeMedia;
+ $this->supply = $supply;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HowToTool|string
+ * @return DateInterval|string|null
*/
- public function getTool()
+ public function getPerformTime()
{
- return $this->tool;
+ return $this->performTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HowToTool|string $tool
+ * @param DateInterval|string|null $performTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTool($tool)
+ public function setPerformTime($performTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HowToTool",
+ "DateInterval",
"string",
+ "null",
];
- $tool = self::checkTypes($tool, $types);
+ $performTime = self::checkTypes($performTime, $types);
- $this->tool = $tool;
+ $this->performTime = $performTime;
}
/**
- * @return DateInterval|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\MediaObject
*/
- public function getPrepTime()
+ public function getBeforeMedia()
{
- return $this->prepTime;
+ return $this->beforeMedia;
}
/**
- * @param DateInterval|string|null $prepTime
+ * @param string|\OpenActive\Models\SchemaOrg\MediaObject $beforeMedia
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrepTime($prepTime)
+ public function setBeforeMedia($beforeMedia)
{
$types = [
- "DateInterval",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
];
- $prepTime = self::checkTypes($prepTime, $types);
+ $beforeMedia = self::checkTypes($beforeMedia, $types);
- $this->prepTime = $prepTime;
+ $this->beforeMedia = $beforeMedia;
}
/**
- * @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/HowToSection.php b/src/Models/SchemaOrg/HowToSection.php
index 7d46ac48..3e632a4e 100644
--- a/src/Models/SchemaOrg/HowToSection.php
+++ b/src/Models/SchemaOrg/HowToSection.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* A single step item (as HowToStep, text, document, video, etc.) or a HowToSection (originally misnamed 'steps'; 'step' is preferred).
*
*
- * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var string|\OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork
*/
protected $steps;
/**
- * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string|\OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork
*/
public function getSteps()
{
@@ -40,16 +40,16 @@ public function getSteps()
}
/**
- * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string $steps
+ * @param string|\OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork $steps
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setSteps($steps)
{
$types = [
+ "string",
"\OpenActive\Models\SchemaOrg\ItemList",
"\OpenActive\Models\SchemaOrg\CreativeWork",
- "string",
];
$steps = self::checkTypes($steps, $types);
diff --git a/src/Models/SchemaOrg/HowToTip.php b/src/Models/SchemaOrg/HowToTip.php
index f4426ba0..98c42d37 100644
--- a/src/Models/SchemaOrg/HowToTip.php
+++ b/src/Models/SchemaOrg/HowToTip.php
@@ -5,7 +5,7 @@
/**
*
*/
-class HowToTip extends \OpenActive\Models\SchemaOrg\CreativeWork
+class HowToTip extends \OpenActive\Models\SchemaOrg\ListItem
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/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/ImageObject.php b/src/Models/SchemaOrg/ImageObject.php
index 8cfc9f69..f91757c8 100644
--- a/src/Models/SchemaOrg/ImageObject.php
+++ b/src/Models/SchemaOrg/ImageObject.php
@@ -17,31 +17,30 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "exifData" => "exifData",
"embeddedTextCaption" => "embeddedTextCaption",
- "representativeOfPage" => "representativeOfPage",
"caption" => "caption",
- "thumbnail" => "thumbnail",
- "exifData" => "exifData",
+ "representativeOfPage" => "representativeOfPage",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'.
+ * exif data for this object.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- protected $embeddedTextCaption;
+ protected $exifData;
/**
- * Indicates whether this image is representative of the content of the page.
+ * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'.
*
*
- * @var bool|null
+ * @var string
*/
- protected $representativeOfPage;
+ protected $embeddedTextCaption;
/**
* The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]].
@@ -52,68 +51,60 @@ public static function fieldList() {
protected $caption;
/**
- * Thumbnail image for an image or video.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\ImageObject|string
- */
- protected $thumbnail;
-
- /**
- * exif data for this object.
+ * Indicates whether this image is representative of the content of the page.
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @var bool|null
*/
- protected $exifData;
+ protected $representativeOfPage;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- public function getEmbeddedTextCaption()
+ public function getExifData()
{
- return $this->embeddedTextCaption;
+ return $this->exifData;
}
/**
- * @param string $embeddedTextCaption
+ * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $exifData
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEmbeddedTextCaption($embeddedTextCaption)
+ public function setExifData($exifData)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
"string",
];
- $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types);
+ $exifData = self::checkTypes($exifData, $types);
- $this->embeddedTextCaption = $embeddedTextCaption;
+ $this->exifData = $exifData;
}
/**
- * @return bool|null
+ * @return string
*/
- public function getRepresentativeOfPage()
+ public function getEmbeddedTextCaption()
{
- return $this->representativeOfPage;
+ return $this->embeddedTextCaption;
}
/**
- * @param bool|null $representativeOfPage
+ * @param string $embeddedTextCaption
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRepresentativeOfPage($representativeOfPage)
+ public function setEmbeddedTextCaption($embeddedTextCaption)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $representativeOfPage = self::checkTypes($representativeOfPage, $types);
+ $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types);
- $this->representativeOfPage = $representativeOfPage;
+ $this->embeddedTextCaption = $embeddedTextCaption;
}
/**
@@ -142,53 +133,28 @@ public function setCaption($caption)
}
/**
- * @return \OpenActive\Models\SchemaOrg\ImageObject|string
- */
- public function getThumbnail()
- {
- return $this->thumbnail;
- }
-
- /**
- * @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 setThumbnail($thumbnail)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\ImageObject",
- "string",
- ];
-
- $thumbnail = self::checkTypes($thumbnail, $types);
-
- $this->thumbnail = $thumbnail;
- }
-
- /**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @return bool|null
*/
- public function getExifData()
+ public function getRepresentativeOfPage()
{
- return $this->exifData;
+ return $this->representativeOfPage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $exifData
+ * @param bool|null $representativeOfPage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExifData($exifData)
+ public function setRepresentativeOfPage($representativeOfPage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
- "string",
+ "bool",
+ "null",
];
- $exifData = self::checkTypes($exifData, $types);
+ $representativeOfPage = self::checkTypes($representativeOfPage, $types);
- $this->exifData = $exifData;
+ $this->representativeOfPage = $representativeOfPage;
}
}
diff --git a/src/Models/SchemaOrg/InteractionCounter.php b/src/Models/SchemaOrg/InteractionCounter.php
index 09f2c22b..66dfd71f 100644
--- a/src/Models/SchemaOrg/InteractionCounter.php
+++ b/src/Models/SchemaOrg/InteractionCounter.php
@@ -17,218 +17,218 @@ 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",
+ "userInteractionCount" => "userInteractionCount",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. e.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
+ * The 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 \OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|string
*/
- protected $startTime;
+ protected $location;
/**
- * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication.
+ * 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 int|null
+ * @var \OpenActive\Models\SchemaOrg\Action|string
*/
- protected $userInteractionCount;
+ protected $interactionType;
/**
- * The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
+ * 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\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @var DateTime|string|null
*/
- protected $location;
+ protected $endTime;
/**
- * 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 WebSite or SoftwareApplication where the interactions took place.
*
*
- * @var \OpenActive\Models\SchemaOrg\Action|string
+ * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string
*/
- protected $interactionType;
+ protected $interactionService;
/**
- * The WebSite or SoftwareApplication where the interactions took place.
+ * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
*
*
- * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string
+ * @var DateTime|string|null
*/
- protected $interactionService;
+ protected $startTime;
/**
- * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
+ * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication.
*
*
- * @var DateTime|string|null
+ * @var int|null
*/
- protected $endTime;
+ protected $userInteractionCount;
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|string
*/
- public function getStartTime()
+ public function getLocation()
{
- return $this->startTime;
+ return $this->location;
}
/**
- * @param DateTime|string|null $startTime
+ * @param \OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|string $location
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartTime($startTime)
+ public function setLocation($location)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\VirtualLocation",
+ "string",
];
- $startTime = self::checkTypes($startTime, $types);
+ $location = self::checkTypes($location, $types);
- $this->startTime = $startTime;
+ $this->location = $location;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Action|string
*/
- public function getUserInteractionCount()
+ public function getInteractionType()
{
- return $this->userInteractionCount;
+ return $this->interactionType;
}
/**
- * @param int|null $userInteractionCount
+ * @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 setUserInteractionCount($userInteractionCount)
+ public function setInteractionType($interactionType)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Action",
+ "string",
];
- $userInteractionCount = self::checkTypes($userInteractionCount, $types);
+ $interactionType = self::checkTypes($interactionType, $types);
- $this->userInteractionCount = $userInteractionCount;
+ $this->interactionType = $interactionType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @return DateTime|string|null
*/
- public function getLocation()
+ public function getEndTime()
{
- return $this->location;
+ return $this->endTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location
+ * @param DateTime|string|null $endTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLocation($location)
+ public function setEndTime($endTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PostalAddress",
- "string",
- "\OpenActive\Models\SchemaOrg\Place",
- "\OpenActive\Models\SchemaOrg\VirtualLocation",
+ "DateTime",
+ "Time",
+ "null",
];
- $location = self::checkTypes($location, $types);
+ $endTime = self::checkTypes($endTime, $types);
- $this->location = $location;
+ $this->endTime = $endTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Action|string
+ * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string
*/
- public function getInteractionType()
+ public function getInteractionService()
{
- return $this->interactionType;
+ return $this->interactionService;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Action|string $interactionType
+ * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string $interactionService
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInteractionType($interactionType)
+ public function setInteractionService($interactionService)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Action",
+ "\OpenActive\Models\SchemaOrg\SoftwareApplication",
+ "\OpenActive\Models\SchemaOrg\WebSite",
"string",
];
- $interactionType = self::checkTypes($interactionType, $types);
+ $interactionService = self::checkTypes($interactionService, $types);
- $this->interactionType = $interactionType;
+ $this->interactionService = $interactionService;
}
/**
- * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string
+ * @return DateTime|string|null
*/
- public function getInteractionService()
+ public function getStartTime()
{
- return $this->interactionService;
+ return $this->startTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string $interactionService
+ * @param DateTime|string|null $startTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInteractionService($interactionService)
+ public function setStartTime($startTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SoftwareApplication",
- "\OpenActive\Models\SchemaOrg\WebSite",
- "string",
+ "DateTime",
+ "Time",
+ "null",
];
- $interactionService = self::checkTypes($interactionService, $types);
+ $startTime = self::checkTypes($startTime, $types);
- $this->interactionService = $interactionService;
+ $this->startTime = $startTime;
}
/**
- * @return DateTime|string|null
+ * @return int|null
*/
- public function getEndTime()
+ public function getUserInteractionCount()
{
- return $this->endTime;
+ return $this->userInteractionCount;
}
/**
- * @param DateTime|string|null $endTime
+ * @param int|null $userInteractionCount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndTime($endTime)
+ public function setUserInteractionCount($userInteractionCount)
{
$types = [
- "DateTime",
- "Time",
+ "int",
"null",
];
- $endTime = self::checkTypes($endTime, $types);
+ $userInteractionCount = self::checkTypes($userInteractionCount, $types);
- $this->endTime = $endTime;
+ $this->userInteractionCount = $userInteractionCount;
}
}
diff --git a/src/Models/SchemaOrg/InvestmentOrDeposit.php b/src/Models/SchemaOrg/InvestmentOrDeposit.php
index 0886a6e1..f33079e4 100644
--- a/src/Models/SchemaOrg/InvestmentOrDeposit.php
+++ b/src/Models/SchemaOrg/InvestmentOrDeposit.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* The amount of money.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
protected $amount;
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
public function getAmount()
{
@@ -40,16 +40,16 @@ public function getAmount()
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $amount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAmount($amount)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
"null",
];
diff --git a/src/Models/SchemaOrg/Invoice.php b/src/Models/SchemaOrg/Invoice.php
index d9aa9ed8..827e6a5b 100644
--- a/src/Models/SchemaOrg/Invoice.php
+++ b/src/Models/SchemaOrg/Invoice.php
@@ -17,42 +17,34 @@ public static function getType()
public static function fieldList() {
$fields = [
- "totalPaymentDue" => "totalPaymentDue",
- "billingPeriod" => "billingPeriod",
- "referencesOrder" => "referencesOrder",
"accountId" => "accountId",
- "category" => "category",
- "scheduledPaymentDate" => "scheduledPaymentDate",
+ "referencesOrder" => "referencesOrder",
"confirmationNumber" => "confirmationNumber",
- "customer" => "customer",
- "provider" => "provider",
- "minimumPaymentDue" => "minimumPaymentDue",
"paymentDueDate" => "paymentDueDate",
+ "category" => "category",
+ "billingPeriod" => "billingPeriod",
+ "totalPaymentDue" => "totalPaymentDue",
"broker" => "broker",
+ "customer" => "customer",
+ "paymentMethod" => "paymentMethod",
+ "paymentDue" => "paymentDue",
"paymentStatus" => "paymentStatus",
"paymentMethodId" => "paymentMethodId",
- "paymentDue" => "paymentDue",
- "paymentMethod" => "paymentMethod",
+ "scheduledPaymentDate" => "scheduledPaymentDate",
+ "provider" => "provider",
+ "minimumPaymentDue" => "minimumPaymentDue",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The total amount due.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
- */
- protected $totalPaymentDue;
-
- /**
- * The time interval used to compute the invoice.
+ * The identifier for the account the payment will be applied to.
*
*
- * @var DateInterval|string|null
+ * @var string
*/
- protected $billingPeriod;
+ protected $accountId;
/**
* The Order(s) related to this Invoice. One or more Orders may be combined into a single Invoice.
@@ -63,76 +55,76 @@ public static function fieldList() {
protected $referencesOrder;
/**
- * The identifier for the account the payment will be applied to.
+ * A number that confirms the given order or payment has been received.
*
*
* @var string
*/
- protected $accountId;
+ protected $confirmationNumber;
/**
- * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
+ * The date that payment is due.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @var Date|DateTime|null
*/
- protected $category;
+ protected $paymentDueDate;
/**
- * The date the invoice is scheduled to be paid.
+ * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
*
*
- * @var Date|null
+ * @var \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
*/
- protected $scheduledPaymentDate;
+ protected $category;
/**
- * A number that confirms the given order or payment has been received.
+ * The time interval used to compute the invoice.
*
*
- * @var string
+ * @var DateInterval|string|null
*/
- protected $confirmationNumber;
+ protected $billingPeriod;
/**
- * Party placing the order or paying the invoice.
+ * The total amount due.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $customer;
+ protected $totalPaymentDue;
/**
- * 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.
+ * 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
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $provider;
+ protected $broker;
/**
- * The minimum payment required at this time.
+ * Party placing the order or paying the invoice.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $minimumPaymentDue;
+ protected $customer;
/**
- * The date that payment is due.
+ * The name of the credit card or other method of payment for the order.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Enums\SchemaOrg\PaymentMethod|null
*/
- protected $paymentDueDate;
+ protected $paymentMethod;
/**
- * 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 DateTime|null
*/
- protected $broker;
+ protected $paymentDue;
/**
* The status of payment; whether the invoice has been paid or not.
@@ -151,71 +143,51 @@ public static function fieldList() {
protected $paymentMethodId;
/**
- * The date that payment is due.
+ * The date the invoice is scheduled to be paid.
*
*
- * @var DateTime|null
+ * @var Date|null
*/
- protected $paymentDue;
+ protected $scheduledPaymentDate;
/**
- * The name of the credit card or other method of payment for the order.
+ * 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\PaymentMethod|null
- */
- protected $paymentMethod;
-
- /**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getTotalPaymentDue()
- {
- return $this->totalPaymentDue;
- }
+ protected $provider;
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $totalPaymentDue
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The minimum payment required at this time.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- public function setTotalPaymentDue($totalPaymentDue)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
- "string",
- ];
-
- $totalPaymentDue = self::checkTypes($totalPaymentDue, $types);
-
- $this->totalPaymentDue = $totalPaymentDue;
- }
+ protected $minimumPaymentDue;
/**
- * @return DateInterval|string|null
+ * @return string
*/
- public function getBillingPeriod()
+ public function getAccountId()
{
- return $this->billingPeriod;
+ return $this->accountId;
}
/**
- * @param DateInterval|string|null $billingPeriod
+ * @param string $accountId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBillingPeriod($billingPeriod)
+ public function setAccountId($accountId)
{
$types = [
- "DateInterval",
"string",
- "null",
];
- $billingPeriod = self::checkTypes($billingPeriod, $types);
+ $accountId = self::checkTypes($accountId, $types);
- $this->billingPeriod = $billingPeriod;
+ $this->accountId = $accountId;
}
/**
@@ -246,232 +218,233 @@ public function setReferencesOrder($referencesOrder)
/**
* @return string
*/
- public function getAccountId()
+ public function getConfirmationNumber()
{
- return $this->accountId;
+ return $this->confirmationNumber;
}
/**
- * @param string $accountId
+ * @param string $confirmationNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccountId($accountId)
+ public function setConfirmationNumber($confirmationNumber)
{
$types = [
"string",
];
- $accountId = self::checkTypes($accountId, $types);
+ $confirmationNumber = self::checkTypes($confirmationNumber, $types);
- $this->accountId = $accountId;
+ $this->confirmationNumber = $confirmationNumber;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @return Date|DateTime|null
*/
- public function getCategory()
+ public function getPaymentDueDate()
{
- return $this->category;
+ return $this->paymentDueDate;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
+ * @param Date|DateTime|null $paymentDueDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCategory($category)
+ public function setPaymentDueDate($paymentDueDate)
{
$types = [
- "string",
- "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
- "\OpenActive\Models\SchemaOrg\Thing",
- "\OpenActive\Models\SchemaOrg\CategoryCode",
+ "Date",
+ "DateTime",
"null",
];
- $category = self::checkTypes($category, $types);
+ $paymentDueDate = self::checkTypes($paymentDueDate, $types);
- $this->category = $category;
+ $this->paymentDueDate = $paymentDueDate;
}
/**
- * @return Date|null
+ * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
*/
- public function getScheduledPaymentDate()
+ public function getCategory()
{
- return $this->scheduledPaymentDate;
+ return $this->category;
}
/**
- * @param Date|null $scheduledPaymentDate
+ * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setScheduledPaymentDate($scheduledPaymentDate)
+ public function setCategory($category)
{
$types = [
- "Date",
+ "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
+ "string",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
"null",
];
- $scheduledPaymentDate = self::checkTypes($scheduledPaymentDate, $types);
+ $category = self::checkTypes($category, $types);
- $this->scheduledPaymentDate = $scheduledPaymentDate;
+ $this->category = $category;
}
/**
- * @return string
+ * @return DateInterval|string|null
*/
- public function getConfirmationNumber()
+ public function getBillingPeriod()
{
- return $this->confirmationNumber;
+ return $this->billingPeriod;
}
/**
- * @param string $confirmationNumber
+ * @param DateInterval|string|null $billingPeriod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setConfirmationNumber($confirmationNumber)
+ public function setBillingPeriod($billingPeriod)
{
$types = [
+ "DateInterval",
"string",
+ "null",
];
- $confirmationNumber = self::checkTypes($confirmationNumber, $types);
+ $billingPeriod = self::checkTypes($billingPeriod, $types);
- $this->confirmationNumber = $confirmationNumber;
+ $this->billingPeriod = $billingPeriod;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- public function getCustomer()
+ public function getTotalPaymentDue()
{
- return $this->customer;
+ return $this->totalPaymentDue;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $customer
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $totalPaymentDue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCustomer($customer)
+ public function setTotalPaymentDue($totalPaymentDue)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
];
- $customer = self::checkTypes($customer, $types);
+ $totalPaymentDue = self::checkTypes($totalPaymentDue, $types);
- $this->customer = $customer;
+ $this->totalPaymentDue = $totalPaymentDue;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getProvider()
+ public function getBroker()
{
- return $this->provider;
+ return $this->broker;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProvider($provider)
+ public function setBroker($broker)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $provider = self::checkTypes($provider, $types);
+ $broker = self::checkTypes($broker, $types);
- $this->provider = $provider;
+ $this->broker = $broker;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getMinimumPaymentDue()
+ public function getCustomer()
{
- return $this->minimumPaymentDue;
+ return $this->customer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $minimumPaymentDue
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $customer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMinimumPaymentDue($minimumPaymentDue)
+ public function setCustomer($customer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $minimumPaymentDue = self::checkTypes($minimumPaymentDue, $types);
+ $customer = self::checkTypes($customer, $types);
- $this->minimumPaymentDue = $minimumPaymentDue;
+ $this->customer = $customer;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|null
*/
- public function getPaymentDueDate()
+ public function getPaymentMethod()
{
- return $this->paymentDueDate;
+ return $this->paymentMethod;
}
/**
- * @param Date|DateTime|null $paymentDueDate
+ * @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 setPaymentDueDate($paymentDueDate)
+ public function setPaymentMethod($paymentMethod)
{
$types = [
- "Date",
- "DateTime",
+ "\OpenActive\Enums\SchemaOrg\PaymentMethod",
"null",
];
- $paymentDueDate = self::checkTypes($paymentDueDate, $types);
+ $paymentMethod = self::checkTypes($paymentMethod, $types);
- $this->paymentDueDate = $paymentDueDate;
+ $this->paymentMethod = $paymentMethod;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return DateTime|null
*/
- public function getBroker()
+ public function getPaymentDue()
{
- return $this->broker;
+ return $this->paymentDue;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker
+ * @param DateTime|null $paymentDue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroker($broker)
+ public function setPaymentDue($paymentDue)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "DateTime",
+ "null",
];
- $broker = self::checkTypes($broker, $types);
+ $paymentDue = self::checkTypes($paymentDue, $types);
- $this->broker = $broker;
+ $this->paymentDue = $paymentDue;
}
/**
@@ -524,53 +497,80 @@ public function setPaymentMethodId($paymentMethodId)
}
/**
- * @return DateTime|null
+ * @return Date|null
*/
- public function getPaymentDue()
+ public function getScheduledPaymentDate()
{
- return $this->paymentDue;
+ return $this->scheduledPaymentDate;
}
/**
- * @param DateTime|null $paymentDue
+ * @param Date|null $scheduledPaymentDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPaymentDue($paymentDue)
+ public function setScheduledPaymentDate($scheduledPaymentDate)
{
$types = [
- "DateTime",
+ "Date",
"null",
];
- $paymentDue = self::checkTypes($paymentDue, $types);
+ $scheduledPaymentDate = self::checkTypes($scheduledPaymentDate, $types);
- $this->paymentDue = $paymentDue;
+ $this->scheduledPaymentDate = $scheduledPaymentDate;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getPaymentMethod()
+ public function getProvider()
{
- return $this->paymentMethod;
+ return $this->provider;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|null $paymentMethod
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $provider
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPaymentMethod($paymentMethod)
+ public function setProvider($provider)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\PaymentMethod",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $paymentMethod = self::checkTypes($paymentMethod, $types);
+ $provider = self::checkTypes($provider, $types);
- $this->paymentMethod = $paymentMethod;
+ $this->provider = $provider;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
+ */
+ public function getMinimumPaymentDue()
+ {
+ return $this->minimumPaymentDue;
+ }
+
+ /**
+ * @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 setMinimumPaymentDue($minimumPaymentDue)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "string",
+ ];
+
+ $minimumPaymentDue = self::checkTypes($minimumPaymentDue, $types);
+
+ $this->minimumPaymentDue = $minimumPaymentDue;
}
}
diff --git a/src/Models/SchemaOrg/ItemList.php b/src/Models/SchemaOrg/ItemList.php
index 358f73ce..8492064e 100644
--- a/src/Models/SchemaOrg/ItemList.php
+++ b/src/Models/SchemaOrg/ItemList.php
@@ -17,65 +17,66 @@ public static function getType()
public static function fieldList() {
$fields = [
- "numberOfItems" => "numberOfItems",
- "itemListElement" => "itemListElement",
"itemListOrder" => "itemListOrder",
+ "itemListElement" => "itemListElement",
+ "numberOfItems" => "numberOfItems",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The number of items in an ItemList. Note that some descriptions might not fully describe all items in a list (e.g., multi-page pagination); in such cases, the numberOfItems would be for the entire list.
+ * Type of ordering (e.g. Ascending, Descending, Unordered).
*
*
- * @var int|null
+ * @var string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null
*/
- protected $numberOfItems;
+ protected $itemListOrder;
/**
* 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).
+ * The number of items in an ItemList. Note that some descriptions might not fully describe all items in a list (e.g., multi-page pagination); in such cases, the numberOfItems would be for the entire list.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null
+ * @var int|null
*/
- protected $itemListOrder;
+ protected $numberOfItems;
/**
- * @return int|null
+ * @return string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null
*/
- public function getNumberOfItems()
+ public function getItemListOrder()
{
- return $this->numberOfItems;
+ return $this->itemListOrder;
}
/**
- * @param int|null $numberOfItems
+ * @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 setNumberOfItems($numberOfItems)
+ public function setItemListOrder($itemListOrder)
{
$types = [
- "int",
+ "string",
+ "\OpenActive\Enums\SchemaOrg\ItemListOrderType",
"null",
];
- $numberOfItems = self::checkTypes($numberOfItems, $types);
+ $itemListOrder = self::checkTypes($itemListOrder, $types);
- $this->numberOfItems = $numberOfItems;
+ $this->itemListOrder = $itemListOrder;
}
/**
- * @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 +84,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 +92,8 @@ public function setItemListElement($itemListElement)
{
$types = [
"\OpenActive\Models\SchemaOrg\Thing",
- "\OpenActive\Models\SchemaOrg\ListItem",
"string",
+ "\OpenActive\Models\SchemaOrg\ListItem",
];
$itemListElement = self::checkTypes($itemListElement, $types);
@@ -101,29 +102,28 @@ public function setItemListElement($itemListElement)
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null
+ * @return int|null
*/
- public function getItemListOrder()
+ public function getNumberOfItems()
{
- return $this->itemListOrder;
+ return $this->numberOfItems;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null $itemListOrder
+ * @param int|null $numberOfItems
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItemListOrder($itemListOrder)
+ public function setNumberOfItems($numberOfItems)
{
$types = [
- "string",
- "\OpenActive\Enums\SchemaOrg\ItemListOrderType",
+ "int",
"null",
];
- $itemListOrder = self::checkTypes($itemListOrder, $types);
+ $numberOfItems = self::checkTypes($numberOfItems, $types);
- $this->itemListOrder = $itemListOrder;
+ $this->numberOfItems = $numberOfItems;
}
}
diff --git a/src/Models/SchemaOrg/JobPosting.php b/src/Models/SchemaOrg/JobPosting.php
index ae041535..354e5507 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",
- "estimatedSalary" => "estimatedSalary",
- "jobLocationType" => "jobLocationType",
- "responsibilities" => "responsibilities",
+ "applicationContact" => "applicationContact",
+ "jobStartDate" => "jobStartDate",
"jobLocation" => "jobLocation",
- "physicalRequirement" => "physicalRequirement",
- "incentives" => "incentives",
- "directApply" => "directApply",
- "sensoryRequirement" => "sensoryRequirement",
- "applicantLocationRequirements" => "applicantLocationRequirements",
+ "responsibilities" => "responsibilities",
+ "occupationalCategory" => "occupationalCategory",
+ "securityClearanceRequirement" => "securityClearanceRequirement",
+ "baseSalary" => "baseSalary",
+ "qualifications" => "qualifications",
"workHours" => "workHours",
- "jobStartDate" => "jobStartDate",
- "employmentType" => "employmentType",
- "specialCommitments" => "specialCommitments",
- "applicationContact" => "applicationContact",
- "incentiveCompensation" => "incentiveCompensation",
- "relevantOccupation" => "relevantOccupation",
- "totalJobOpenings" => "totalJobOpenings",
+ "benefits" => "benefits",
+ "hiringOrganization" => "hiringOrganization",
+ "skills" => "skills",
"experienceRequirements" => "experienceRequirements",
- "jobBenefits" => "jobBenefits",
+ "validThrough" => "validThrough",
+ "estimatedSalary" => "estimatedSalary",
+ "employmentUnit" => "employmentUnit",
+ "relevantOccupation" => "relevantOccupation",
+ "incentiveCompensation" => "incentiveCompensation",
+ "employerOverview" => "employerOverview",
"salaryCurrency" => "salaryCurrency",
"experienceInPlaceOfEducation" => "experienceInPlaceOfEducation",
- "securityClearanceRequirement" => "securityClearanceRequirement",
"eligibilityToWorkRequirement" => "eligibilityToWorkRequirement",
- "educationRequirements" => "educationRequirements",
- "benefits" => "benefits",
- "industry" => "industry",
- "baseSalary" => "baseSalary",
"datePosted" => "datePosted",
- "skills" => "skills",
- "hiringOrganization" => "hiringOrganization",
+ "applicantLocationRequirements" => "applicantLocationRequirements",
+ "jobBenefits" => "jobBenefits",
+ "specialCommitments" => "specialCommitments",
+ "employmentType" => "employmentType",
+ "educationRequirements" => "educationRequirements",
+ "incentives" => "incentives",
+ "sensoryRequirement" => "sensoryRequirement",
+ "jobLocationType" => "jobLocationType",
+ "totalJobOpenings" => "totalJobOpenings",
"jobImmediateStart" => "jobImmediateStart",
- "validThrough" => "validThrough",
- "employmentUnit" => "employmentUnit",
- "qualifications" => "qualifications",
- "occupationalCategory" => "occupationalCategory",
+ "industry" => "industry",
+ "physicalRequirement" => "physicalRequirement",
+ "directApply" => "directApply",
];
return array_merge(parent::fieldList(), $fields);
@@ -68,28 +68,28 @@ public static function fieldList() {
protected $title;
/**
- * A description of the employer, career opportunities and work environment for this position.
+ * Contact details for further information relevant to this job posting.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- protected $employerOverview;
+ protected $applicationContact;
/**
- * 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 date on which a successful applicant for this job would be expected to start work. Choose a specific date in the future or use the jobImmediateStart property to indicate the position is to be filled as soon as possible.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @var Date|string|null
*/
- protected $estimatedSalary;
+ protected $jobStartDate;
/**
- * A description of the job location (e.g TELECOMMUTE for telecommute jobs).
+ * A (typically single) geographic location associated with the job position.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $jobLocationType;
+ protected $jobLocation;
/**
* Responsibilities associated with this role or Occupation.
@@ -100,100 +100,101 @@ public static function fieldList() {
protected $responsibilities;
/**
- * A (typically single) geographic location associated with the job position.
+ * 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\Place|string
+ * @var string|\OpenActive\Models\SchemaOrg\CategoryCode
*/
- protected $jobLocation;
+ protected $occupationalCategory;
/**
- * 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.
+ * A description of any security clearance requirements of the job.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var string
*/
- protected $physicalRequirement;
+ protected $securityClearanceRequirement;
/**
- * 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|\OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|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.
+ * Specific qualifications required for this role or Occupation.
*
*
- * @var bool|null
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $directApply;
+ protected $qualifications;
/**
- * 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.
+ * The typical working hours for this job (e.g. 1st shift, night shift, 8am-5pm).
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string
*/
- protected $sensoryRequirement;
+ protected $workHours;
/**
- * 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.
+ * Description of benefits associated with the job.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @var string
*/
- protected $applicantLocationRequirements;
+ protected $benefits;
/**
- * The typical working hours for this job (e.g. 1st shift, night shift, 8am-5pm).
+ * Organization or Person offering the job position.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $workHours;
+ protected $hiringOrganization;
/**
- * 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.
+ * 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 Date|string|null
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $jobStartDate;
+ protected $skills;
/**
- * Type of employment (e.g. full-time, part-time, contract, temporary, seasonal, internship).
+ * Description of skills and experience needed for the position or Occupation.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
*/
- protected $employmentType;
+ protected $experienceRequirements;
/**
- * Any special commitments associated with this job posting. Valid entries include VeteranCommit, MilitarySpouseCommit, etc.
+ * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
*
*
- * @var string
+ * @var Date|DateTime|null
*/
- protected $specialCommitments;
+ protected $validThrough;
/**
- * Contact details for further information relevant to this job posting.
+ * 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\ContactPoint|string
+ * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
*/
- protected $applicationContact;
+ protected $estimatedSalary;
/**
- * Description of bonus and commission compensation aspects of the job.
+ * Indicates the department, unit and/or facility where the employee reports and/or in which the job is to be performed.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $incentiveCompensation;
+ protected $employmentUnit;
/**
* The Occupation for the JobPosting.
@@ -204,31 +205,23 @@ public static function fieldList() {
protected $relevantOccupation;
/**
- * The number of positions open for this job posting. Use a positive integer. Do not use if the number of positions is unclear or not known.
- *
- *
- * @var int|null
- */
- protected $totalJobOpenings;
-
- /**
- * Description of skills and experience needed for the position or Occupation.
+ * Description of bonus and commission compensation aspects of the job.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
+ * @var string
*/
- protected $experienceRequirements;
+ protected $incentiveCompensation;
/**
- * Description of benefits associated with the job.
+ * A description of the employer, career opportunities and work environment for this position.
*
*
* @var string
*/
- protected $jobBenefits;
+ protected $employerOverview;
/**
- * The currency (coded using [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) ) used for the main salary information in this job posting or for this employee.
+ * The currency (coded using [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217)) used for the main salary information in this job posting or for this employee.
*
*
* @var string
@@ -244,28 +237,28 @@ public static function fieldList() {
protected $experienceInPlaceOfEducation;
/**
- * A description of any security clearance requirements of the job.
+ * The legal requirements such as citizenship, visa and other documentation required for an applicant to this job.
*
*
* @var string
*/
- protected $securityClearanceRequirement;
+ protected $eligibilityToWorkRequirement;
/**
- * The legal requirements such as citizenship, visa and other documentation required for an applicant to this job.
+ * Publication date of an online listing.
*
*
- * @var string
+ * @var Date|DateTime|null
*/
- protected $eligibilityToWorkRequirement;
+ protected $datePosted;
/**
- * Educational background needed for the position or Occupation.
+ * 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\EducationalOccupationalCredential|string
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $educationRequirements;
+ protected $applicantLocationRequirements;
/**
* Description of benefits associated with the job.
@@ -273,88 +266,95 @@ public static function fieldList() {
*
* @var string
*/
- protected $benefits;
+ protected $jobBenefits;
/**
- * The industry associated with the job position.
+ * Any special commitments associated with this job posting. Valid entries include VeteranCommit, MilitarySpouseCommit, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string
*/
- protected $industry;
+ protected $specialCommitments;
/**
- * The base salary of the job or of an employee in an EmployeeRole.
+ * Type of employment (e.g. full-time, part-time, contract, temporary, seasonal, internship).
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var string
*/
- protected $baseSalary;
+ protected $employmentType;
/**
- * Publication date of an online listing.
+ * Educational background needed for the position or Occupation.
*
*
- * @var Date|DateTime|null
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $datePosted;
+ protected $educationRequirements;
/**
- * 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.
+ * Description of bonus and commission compensation aspects of the job.
+ *
+ *
+ * @var string
+ */
+ protected $incentives;
+
+ /**
+ * 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 string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $skills;
+ protected $sensoryRequirement;
/**
- * Organization offering the job position.
+ * A description of the job location (e.g. TELECOMMUTE for telecommute jobs).
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $hiringOrganization;
+ protected $jobLocationType;
/**
- * An indicator as to whether a position is available for an immediate start.
+ * 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 bool|null
+ * @var int|null
*/
- protected $jobImmediateStart;
+ protected $totalJobOpenings;
/**
- * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
+ * An indicator as to whether a position is available for an immediate start.
*
*
- * @var Date|DateTime|null
+ * @var bool|null
*/
- protected $validThrough;
+ protected $jobImmediateStart;
/**
- * Indicates the department, unit and/or facility where the employee reports and/or in which the job is to be performed.
+ * The industry associated with the job position.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $employmentUnit;
+ protected $industry;
/**
- * Specific qualifications required for this role or Occupation.
+ * 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 string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $qualifications;
+ protected $physicalRequirement;
/**
- * 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.
+ * 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 \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @var bool|null
*/
- protected $occupationalCategory;
+ protected $directApply;
/**
* @return string
@@ -381,79 +381,79 @@ public function setTitle($title)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- public function getEmployerOverview()
+ public function getApplicationContact()
{
- return $this->employerOverview;
+ return $this->applicationContact;
}
/**
- * @param string $employerOverview
+ * @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 setEmployerOverview($employerOverview)
+ public function setApplicationContact($applicationContact)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
];
- $employerOverview = self::checkTypes($employerOverview, $types);
+ $applicationContact = self::checkTypes($applicationContact, $types);
- $this->employerOverview = $employerOverview;
+ $this->applicationContact = $applicationContact;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @return Date|string|null
*/
- public function getEstimatedSalary()
+ public function getJobStartDate()
{
- return $this->estimatedSalary;
+ return $this->jobStartDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $estimatedSalary
+ * @param Date|string|null $jobStartDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEstimatedSalary($estimatedSalary)
+ public function setJobStartDate($jobStartDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "Date",
"string",
- "Number",
"null",
];
- $estimatedSalary = self::checkTypes($estimatedSalary, $types);
+ $jobStartDate = self::checkTypes($jobStartDate, $types);
- $this->estimatedSalary = $estimatedSalary;
+ $this->jobStartDate = $jobStartDate;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getJobLocationType()
+ public function getJobLocation()
{
- return $this->jobLocationType;
+ return $this->jobLocation;
}
/**
- * @param string $jobLocationType
+ * @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 setJobLocationType($jobLocationType)
+ public function setJobLocation($jobLocation)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $jobLocationType = self::checkTypes($jobLocationType, $types);
+ $jobLocation = self::checkTypes($jobLocation, $types);
- $this->jobLocationType = $jobLocationType;
+ $this->jobLocation = $jobLocation;
}
/**
@@ -481,299 +481,308 @@ public function setResponsibilities($responsibilities)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return string|\OpenActive\Models\SchemaOrg\CategoryCode
*/
- public function getJobLocation()
+ public function getOccupationalCategory()
{
- return $this->jobLocation;
+ return $this->occupationalCategory;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $jobLocation
+ * @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 setJobLocation($jobLocation)
+ public function setOccupationalCategory($occupationalCategory)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
];
- $jobLocation = self::checkTypes($jobLocation, $types);
+ $occupationalCategory = self::checkTypes($occupationalCategory, $types);
- $this->jobLocation = $jobLocation;
+ $this->occupationalCategory = $occupationalCategory;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return string
*/
- public function getPhysicalRequirement()
+ public function getSecurityClearanceRequirement()
{
- return $this->physicalRequirement;
+ return $this->securityClearanceRequirement;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $physicalRequirement
+ * @param string $securityClearanceRequirement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPhysicalRequirement($physicalRequirement)
+ public function setSecurityClearanceRequirement($securityClearanceRequirement)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $physicalRequirement = self::checkTypes($physicalRequirement, $types);
+ $securityClearanceRequirement = self::checkTypes($securityClearanceRequirement, $types);
- $this->physicalRequirement = $physicalRequirement;
+ $this->securityClearanceRequirement = $securityClearanceRequirement;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null
*/
- public function getIncentives()
+ public function getBaseSalary()
{
- return $this->incentives;
+ return $this->baseSalary;
}
/**
- * @param string $incentives
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null $baseSalary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncentives($incentives)
+ public function setBaseSalary($baseSalary)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
+ "Number",
+ "null",
];
- $incentives = self::checkTypes($incentives, $types);
+ $baseSalary = self::checkTypes($baseSalary, $types);
- $this->incentives = $incentives;
+ $this->baseSalary = $baseSalary;
}
/**
- * @return bool|null
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getDirectApply()
+ public function getQualifications()
{
- return $this->directApply;
+ return $this->qualifications;
}
/**
- * @param bool|null $directApply
+ * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $qualifications
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirectApply($directApply)
+ public function setQualifications($qualifications)
{
$types = [
- "bool",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $directApply = self::checkTypes($directApply, $types);
+ $qualifications = self::checkTypes($qualifications, $types);
- $this->directApply = $directApply;
+ $this->qualifications = $qualifications;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string
*/
- public function getSensoryRequirement()
+ public function getWorkHours()
{
- return $this->sensoryRequirement;
+ return $this->workHours;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $sensoryRequirement
+ * @param string $workHours
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSensoryRequirement($sensoryRequirement)
+ public function setWorkHours($workHours)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $sensoryRequirement = self::checkTypes($sensoryRequirement, $types);
+ $workHours = self::checkTypes($workHours, $types);
- $this->sensoryRequirement = $sensoryRequirement;
+ $this->workHours = $workHours;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return string
*/
- public function getApplicantLocationRequirements()
+ public function getBenefits()
{
- return $this->applicantLocationRequirements;
+ return $this->benefits;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $applicantLocationRequirements
+ * @param string $benefits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicantLocationRequirements($applicantLocationRequirements)
+ public function setBenefits($benefits)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $applicantLocationRequirements = self::checkTypes($applicantLocationRequirements, $types);
+ $benefits = self::checkTypes($benefits, $types);
- $this->applicantLocationRequirements = $applicantLocationRequirements;
+ $this->benefits = $benefits;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getWorkHours()
+ public function getHiringOrganization()
{
- return $this->workHours;
+ return $this->hiringOrganization;
}
/**
- * @param string $workHours
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $hiringOrganization
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWorkHours($workHours)
+ public function setHiringOrganization($hiringOrganization)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $workHours = self::checkTypes($workHours, $types);
+ $hiringOrganization = self::checkTypes($hiringOrganization, $types);
- $this->workHours = $workHours;
+ $this->hiringOrganization = $hiringOrganization;
}
/**
- * @return Date|string|null
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getJobStartDate()
+ public function getSkills()
{
- return $this->jobStartDate;
+ return $this->skills;
}
/**
- * @param Date|string|null $jobStartDate
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $skills
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setJobStartDate($jobStartDate)
+ public function setSkills($skills)
{
$types = [
- "Date",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
- "null",
];
- $jobStartDate = self::checkTypes($jobStartDate, $types);
+ $skills = self::checkTypes($skills, $types);
- $this->jobStartDate = $jobStartDate;
+ $this->skills = $skills;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
*/
- public function getEmploymentType()
+ public function getExperienceRequirements()
{
- return $this->employmentType;
+ return $this->experienceRequirements;
}
/**
- * @param string $employmentType
+ * @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 setEmploymentType($employmentType)
+ public function setExperienceRequirements($experienceRequirements)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements",
];
- $employmentType = self::checkTypes($employmentType, $types);
+ $experienceRequirements = self::checkTypes($experienceRequirements, $types);
- $this->employmentType = $employmentType;
+ $this->experienceRequirements = $experienceRequirements;
}
/**
- * @return string
+ * @return Date|DateTime|null
*/
- public function getSpecialCommitments()
+ public function getValidThrough()
{
- return $this->specialCommitments;
+ return $this->validThrough;
}
/**
- * @param string $specialCommitments
+ * @param Date|DateTime|null $validThrough
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSpecialCommitments($specialCommitments)
+ public function setValidThrough($validThrough)
{
$types = [
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $specialCommitments = self::checkTypes($specialCommitments, $types);
+ $validThrough = self::checkTypes($validThrough, $types);
- $this->specialCommitments = $specialCommitments;
+ $this->validThrough = $validThrough;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
*/
- public function getApplicationContact()
+ public function getEstimatedSalary()
{
- return $this->applicationContact;
+ return $this->estimatedSalary;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $applicationContact
+ * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $estimatedSalary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicationContact($applicationContact)
+ public function setEstimatedSalary($estimatedSalary)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "Number",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "null",
];
- $applicationContact = self::checkTypes($applicationContact, $types);
+ $estimatedSalary = self::checkTypes($estimatedSalary, $types);
- $this->applicationContact = $applicationContact;
+ $this->estimatedSalary = $estimatedSalary;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getIncentiveCompensation()
+ public function getEmploymentUnit()
{
- return $this->incentiveCompensation;
+ return $this->employmentUnit;
}
/**
- * @param string $incentiveCompensation
+ * @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 setIncentiveCompensation($incentiveCompensation)
+ public function setEmploymentUnit($employmentUnit)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $incentiveCompensation = self::checkTypes($incentiveCompensation, $types);
+ $employmentUnit = self::checkTypes($employmentUnit, $types);
- $this->incentiveCompensation = $incentiveCompensation;
+ $this->employmentUnit = $employmentUnit;
}
/**
@@ -802,77 +811,51 @@ public function setRelevantOccupation($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);
-
- $this->totalJobOpenings = $totalJobOpenings;
- }
-
- /**
- * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
+ * @return string
*/
- public function getExperienceRequirements()
+ public function getIncentiveCompensation()
{
- return $this->experienceRequirements;
+ return $this->incentiveCompensation;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements $experienceRequirements
+ * @param string $incentiveCompensation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExperienceRequirements($experienceRequirements)
+ public function setIncentiveCompensation($incentiveCompensation)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements",
];
- $experienceRequirements = self::checkTypes($experienceRequirements, $types);
+ $incentiveCompensation = self::checkTypes($incentiveCompensation, $types);
- $this->experienceRequirements = $experienceRequirements;
+ $this->incentiveCompensation = $incentiveCompensation;
}
/**
* @return string
*/
- public function getJobBenefits()
+ public function getEmployerOverview()
{
- return $this->jobBenefits;
+ return $this->employerOverview;
}
/**
- * @param string $jobBenefits
+ * @param string $employerOverview
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setJobBenefits($jobBenefits)
+ public function setEmployerOverview($employerOverview)
{
$types = [
"string",
];
- $jobBenefits = self::checkTypes($jobBenefits, $types);
+ $employerOverview = self::checkTypes($employerOverview, $types);
- $this->jobBenefits = $jobBenefits;
+ $this->employerOverview = $employerOverview;
}
/**
@@ -927,353 +910,371 @@ public function setExperienceInPlaceOfEducation($experienceInPlaceOfEducation)
/**
* @return string
*/
- public function getSecurityClearanceRequirement()
+ public function getEligibilityToWorkRequirement()
{
- return $this->securityClearanceRequirement;
+ return $this->eligibilityToWorkRequirement;
}
/**
- * @param string $securityClearanceRequirement
+ * @param string $eligibilityToWorkRequirement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSecurityClearanceRequirement($securityClearanceRequirement)
+ public function setEligibilityToWorkRequirement($eligibilityToWorkRequirement)
{
$types = [
"string",
];
- $securityClearanceRequirement = self::checkTypes($securityClearanceRequirement, $types);
+ $eligibilityToWorkRequirement = self::checkTypes($eligibilityToWorkRequirement, $types);
- $this->securityClearanceRequirement = $securityClearanceRequirement;
+ $this->eligibilityToWorkRequirement = $eligibilityToWorkRequirement;
}
/**
- * @return string
+ * @return Date|DateTime|null
*/
- public function getEligibilityToWorkRequirement()
+ public function getDatePosted()
{
- return $this->eligibilityToWorkRequirement;
+ return $this->datePosted;
}
/**
- * @param string $eligibilityToWorkRequirement
+ * @param Date|DateTime|null $datePosted
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibilityToWorkRequirement($eligibilityToWorkRequirement)
+ public function setDatePosted($datePosted)
+ {
+ $types = [
+ "Date",
+ "DateTime",
+ "null",
+ ];
+
+ $datePosted = self::checkTypes($datePosted, $types);
+
+ $this->datePosted = $datePosted;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ */
+ public function getApplicantLocationRequirements()
+ {
+ return $this->applicantLocationRequirements;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $applicantLocationRequirements
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setApplicantLocationRequirements($applicantLocationRequirements)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $eligibilityToWorkRequirement = self::checkTypes($eligibilityToWorkRequirement, $types);
+ $applicantLocationRequirements = self::checkTypes($applicantLocationRequirements, $types);
- $this->eligibilityToWorkRequirement = $eligibilityToWorkRequirement;
+ $this->applicantLocationRequirements = $applicantLocationRequirements;
}
/**
- * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @return string
*/
- public function getEducationRequirements()
+ public function getJobBenefits()
{
- return $this->educationRequirements;
+ return $this->jobBenefits;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $educationRequirements
+ * @param string $jobBenefits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationRequirements($educationRequirements)
+ public function setJobBenefits($jobBenefits)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
"string",
];
- $educationRequirements = self::checkTypes($educationRequirements, $types);
+ $jobBenefits = self::checkTypes($jobBenefits, $types);
- $this->educationRequirements = $educationRequirements;
+ $this->jobBenefits = $jobBenefits;
}
/**
* @return string
*/
- public function getBenefits()
+ public function getSpecialCommitments()
{
- return $this->benefits;
+ return $this->specialCommitments;
}
/**
- * @param string $benefits
+ * @param string $specialCommitments
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBenefits($benefits)
+ public function setSpecialCommitments($specialCommitments)
{
$types = [
"string",
];
- $benefits = self::checkTypes($benefits, $types);
+ $specialCommitments = self::checkTypes($specialCommitments, $types);
- $this->benefits = $benefits;
+ $this->specialCommitments = $specialCommitments;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string
*/
- public function getIndustry()
+ public function getEmploymentType()
{
- return $this->industry;
+ return $this->employmentType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $industry
+ * @param string $employmentType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIndustry($industry)
+ public function setEmploymentType($employmentType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $industry = self::checkTypes($industry, $types);
+ $employmentType = self::checkTypes($employmentType, $types);
- $this->industry = $industry;
+ $this->employmentType = $employmentType;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getBaseSalary()
+ public function getEducationRequirements()
{
- return $this->baseSalary;
+ return $this->educationRequirements;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $baseSalary
+ * @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 setBaseSalary($baseSalary)
+ public function setEducationRequirements($educationRequirements)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $baseSalary = self::checkTypes($baseSalary, $types);
+ $educationRequirements = self::checkTypes($educationRequirements, $types);
- $this->baseSalary = $baseSalary;
+ $this->educationRequirements = $educationRequirements;
}
/**
- * @return Date|DateTime|null
+ * @return string
*/
- public function getDatePosted()
+ public function getIncentives()
{
- return $this->datePosted;
+ return $this->incentives;
}
/**
- * @param Date|DateTime|null $datePosted
+ * @param string $incentives
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDatePosted($datePosted)
+ public function setIncentives($incentives)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
];
- $datePosted = self::checkTypes($datePosted, $types);
+ $incentives = self::checkTypes($incentives, $types);
- $this->datePosted = $datePosted;
+ $this->incentives = $incentives;
}
/**
* @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getSkills()
+ public function getSensoryRequirement()
{
- return $this->skills;
+ return $this->sensoryRequirement;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $skills
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $sensoryRequirement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSkills($skills)
+ public function setSensoryRequirement($sensoryRequirement)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $skills = self::checkTypes($skills, $types);
+ $sensoryRequirement = self::checkTypes($sensoryRequirement, $types);
- $this->skills = $skills;
+ $this->sensoryRequirement = $sensoryRequirement;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getHiringOrganization()
+ public function getJobLocationType()
{
- return $this->hiringOrganization;
+ return $this->jobLocationType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $hiringOrganization
+ * @param string $jobLocationType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHiringOrganization($hiringOrganization)
+ public function setJobLocationType($jobLocationType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $hiringOrganization = self::checkTypes($hiringOrganization, $types);
+ $jobLocationType = self::checkTypes($jobLocationType, $types);
- $this->hiringOrganization = $hiringOrganization;
+ $this->jobLocationType = $jobLocationType;
}
/**
- * @return bool|null
+ * @return int|null
*/
- public function getJobImmediateStart()
+ public function getTotalJobOpenings()
{
- return $this->jobImmediateStart;
+ return $this->totalJobOpenings;
}
/**
- * @param bool|null $jobImmediateStart
+ * @param int|null $totalJobOpenings
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setJobImmediateStart($jobImmediateStart)
+ public function setTotalJobOpenings($totalJobOpenings)
{
$types = [
- "bool",
+ "int",
"null",
];
- $jobImmediateStart = self::checkTypes($jobImmediateStart, $types);
+ $totalJobOpenings = self::checkTypes($totalJobOpenings, $types);
- $this->jobImmediateStart = $jobImmediateStart;
+ $this->totalJobOpenings = $totalJobOpenings;
}
/**
- * @return Date|DateTime|null
+ * @return bool|null
*/
- public function getValidThrough()
+ public function getJobImmediateStart()
{
- return $this->validThrough;
+ return $this->jobImmediateStart;
}
/**
- * @param Date|DateTime|null $validThrough
+ * @param bool|null $jobImmediateStart
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidThrough($validThrough)
+ public function setJobImmediateStart($jobImmediateStart)
{
$types = [
- "Date",
- "DateTime",
+ "bool",
"null",
];
- $validThrough = self::checkTypes($validThrough, $types);
+ $jobImmediateStart = self::checkTypes($jobImmediateStart, $types);
- $this->validThrough = $validThrough;
+ $this->jobImmediateStart = $jobImmediateStart;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getEmploymentUnit()
+ public function getIndustry()
{
- return $this->employmentUnit;
+ return $this->industry;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $employmentUnit
+ * @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 setEmploymentUnit($employmentUnit)
+ public function setIndustry($industry)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $employmentUnit = self::checkTypes($employmentUnit, $types);
+ $industry = self::checkTypes($industry, $types);
- $this->employmentUnit = $employmentUnit;
+ $this->industry = $industry;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getQualifications()
+ public function getPhysicalRequirement()
{
- return $this->qualifications;
+ return $this->physicalRequirement;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $qualifications
+ * @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 setQualifications($qualifications)
+ public function setPhysicalRequirement($physicalRequirement)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $qualifications = self::checkTypes($qualifications, $types);
+ $physicalRequirement = self::checkTypes($physicalRequirement, $types);
- $this->qualifications = $qualifications;
+ $this->physicalRequirement = $physicalRequirement;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @return bool|null
*/
- public function getOccupationalCategory()
+ public function getDirectApply()
{
- return $this->occupationalCategory;
+ return $this->directApply;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory
+ * @param bool|null $directApply
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationalCategory($occupationalCategory)
+ public function setDirectApply($directApply)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCode",
- "string",
+ "bool",
+ "null",
];
- $occupationalCategory = self::checkTypes($occupationalCategory, $types);
+ $directApply = self::checkTypes($directApply, $types);
- $this->occupationalCategory = $occupationalCategory;
+ $this->directApply = $directApply;
}
}
diff --git a/src/Models/SchemaOrg/Joint.php b/src/Models/SchemaOrg/Joint.php
index c7958355..d0e231f3 100644
--- a/src/Models/SchemaOrg/Joint.php
+++ b/src/Models/SchemaOrg/Joint.php
@@ -17,21 +17,21 @@ public static function getType()
public static function fieldList() {
$fields = [
- "structuralClass" => "structuralClass",
- "biomechnicalClass" => "biomechnicalClass",
"functionalClass" => "functionalClass",
+ "biomechnicalClass" => "biomechnicalClass",
+ "structuralClass" => "structuralClass",
];
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 string|\OpenActive\Models\SchemaOrg\MedicalEntity
*/
- protected $structuralClass;
+ protected $functionalClass;
/**
* The biomechanical properties of the bone.
@@ -42,35 +42,36 @@ public static function fieldList() {
protected $biomechnicalClass;
/**
- * The degree of mobility the joint allows.
+ * The name given to how bone physically connects to each other.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MedicalEntity
+ * @var string
*/
- protected $functionalClass;
+ protected $structuralClass;
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\MedicalEntity
*/
- public function getStructuralClass()
+ public function getFunctionalClass()
{
- return $this->structuralClass;
+ return $this->functionalClass;
}
/**
- * @param string $structuralClass
+ * @param string|\OpenActive\Models\SchemaOrg\MedicalEntity $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 = [
"string",
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
];
- $structuralClass = self::checkTypes($structuralClass, $types);
+ $functionalClass = self::checkTypes($functionalClass, $types);
- $this->structuralClass = $structuralClass;
+ $this->functionalClass = $functionalClass;
}
/**
@@ -98,28 +99,27 @@ public function setBiomechnicalClass($biomechnicalClass)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MedicalEntity
+ * @return string
*/
- public function getFunctionalClass()
+ public function getStructuralClass()
{
- return $this->functionalClass;
+ return $this->structuralClass;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MedicalEntity $functionalClass
+ * @param string $structuralClass
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFunctionalClass($functionalClass)
+ public function setStructuralClass($structuralClass)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
];
- $functionalClass = self::checkTypes($functionalClass, $types);
+ $structuralClass = self::checkTypes($structuralClass, $types);
- $this->functionalClass = $functionalClass;
+ $this->structuralClass = $structuralClass;
}
}
diff --git a/src/Models/SchemaOrg/LearningResource.php b/src/Models/SchemaOrg/LearningResource.php
index c9f5b932..fe9665c5 100644
--- a/src/Models/SchemaOrg/LearningResource.php
+++ b/src/Models/SchemaOrg/LearningResource.php
@@ -17,25 +17,25 @@ public static function getType()
public static function fieldList() {
$fields = [
- "teaches" => "teaches",
- "educationalLevel" => "educationalLevel",
- "assesses" => "assesses",
"educationalUse" => "educationalUse",
+ "educationalLevel" => "educationalLevel",
"educationalAlignment" => "educationalAlignment",
"competencyRequired" => "competencyRequired",
+ "assesses" => "assesses",
"learningResourceType" => "learningResourceType",
+ "teaches" => "teaches",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.
+ * The purpose of a work in the context of education; for example, 'assignment', 'group work'.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $teaches;
+ protected $educationalUse;
/**
* 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.
@@ -45,22 +45,6 @@ public static function fieldList() {
*/
protected $educationalLevel;
- /**
- * The item being described is intended to assess the competency or learning outcome defined by the referenced term.
- *
- *
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
- */
- protected $assesses;
-
- /**
- * The purpose of a work in the context of education; for example, 'assignment', 'group work'.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
- */
- protected $educationalUse;
-
/**
* An alignment to an established educational framework.
*
@@ -79,6 +63,14 @@ public static function fieldList() {
*/
protected $competencyRequired;
+ /**
+ * The item being described is intended to assess the competency or learning outcome defined by the referenced term.
+ *
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ */
+ protected $assesses;
+
/**
* The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'.
*
@@ -88,28 +80,36 @@ public static function fieldList() {
protected $learningResourceType;
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * 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 getTeaches()
+ protected $teaches;
+
+ /**
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ */
+ public function getEducationalUse()
{
- return $this->teaches;
+ return $this->educationalUse;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalUse
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTeaches($teaches)
+ public function setEducationalUse($educationalUse)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $teaches = self::checkTypes($teaches, $types);
+ $educationalUse = self::checkTypes($educationalUse, $types);
- $this->teaches = $teaches;
+ $this->educationalUse = $educationalUse;
}
/**
@@ -138,128 +138,128 @@ public function setEducationalLevel($educationalLevel)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string
*/
- public function getAssesses()
+ public function getEducationalAlignment()
{
- return $this->assesses;
+ return $this->educationalAlignment;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses
+ * @param \OpenActive\Models\SchemaOrg\AlignmentObject|string $educationalAlignment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssesses($assesses)
+ public function setEducationalAlignment($educationalAlignment)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AlignmentObject",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $assesses = self::checkTypes($assesses, $types);
+ $educationalAlignment = self::checkTypes($educationalAlignment, $types);
- $this->assesses = $assesses;
+ $this->educationalAlignment = $educationalAlignment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getEducationalUse()
+ public function getCompetencyRequired()
{
- return $this->educationalUse;
+ return $this->competencyRequired;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalUse
+ * @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 setEducationalUse($educationalUse)
+ public function setCompetencyRequired($competencyRequired)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $educationalUse = self::checkTypes($educationalUse, $types);
+ $competencyRequired = self::checkTypes($competencyRequired, $types);
- $this->educationalUse = $educationalUse;
+ $this->competencyRequired = $competencyRequired;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getEducationalAlignment()
+ public function getAssesses()
{
- return $this->educationalAlignment;
+ return $this->assesses;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AlignmentObject|string $educationalAlignment
+ * @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 setEducationalAlignment($educationalAlignment)
+ public function setAssesses($assesses)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AlignmentObject",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $educationalAlignment = self::checkTypes($educationalAlignment, $types);
+ $assesses = self::checkTypes($assesses, $types);
- $this->educationalAlignment = $educationalAlignment;
+ $this->assesses = $assesses;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getCompetencyRequired()
+ public function getLearningResourceType()
{
- return $this->competencyRequired;
+ return $this->learningResourceType;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $competencyRequired
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCompetencyRequired($competencyRequired)
+ public function setLearningResourceType($learningResourceType)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "string",
];
- $competencyRequired = self::checkTypes($competencyRequired, $types);
+ $learningResourceType = self::checkTypes($learningResourceType, $types);
- $this->competencyRequired = $competencyRequired;
+ $this->learningResourceType = $learningResourceType;
}
/**
* @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getLearningResourceType()
+ public function getTeaches()
{
- return $this->learningResourceType;
+ return $this->teaches;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLearningResourceType($learningResourceType)
+ public function setTeaches($teaches)
{
$types = [
"\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $learningResourceType = self::checkTypes($learningResourceType, $types);
+ $teaches = self::checkTypes($teaches, $types);
- $this->learningResourceType = $learningResourceType;
+ $this->teaches = $teaches;
}
}
diff --git a/src/Models/SchemaOrg/Legislation.php b/src/Models/SchemaOrg/Legislation.php
index 8567e99e..610c6945 100644
--- a/src/Models/SchemaOrg/Legislation.php
+++ b/src/Models/SchemaOrg/Legislation.php
@@ -17,279 +17,280 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "legislationPassedBy" => "legislationPassedBy",
+ "legislationIdentifier" => "legislationIdentifier",
"legislationTransposes" => "legislationTransposes",
- "legislationLegalForce" => "legislationLegalForce",
- "legislationType" => "legislationType",
+ "legislationApplies" => "legislationApplies",
"jurisdiction" => "jurisdiction",
- "legislationIdentifier" => "legislationIdentifier",
- "legislationChanges" => "legislationChanges",
+ "legislationConsolidates" => "legislationConsolidates",
"legislationResponsible" => "legislationResponsible",
+ "legislationLegalForce" => "legislationLegalForce",
+ "legislationDateVersion" => "legislationDateVersion",
+ "legislationChanges" => "legislationChanges",
"legislationJurisdiction" => "legislationJurisdiction",
+ "legislationType" => "legislationType",
"legislationDate" => "legislationDate",
- "legislationPassedBy" => "legislationPassedBy",
- "legislationConsolidates" => "legislationConsolidates",
- "legislationApplies" => "legislationApplies",
- "legislationDateVersion" => "legislationDateVersion",
];
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.
+ * 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\LegalForceStatus|string
+ * @var string
*/
- protected $legislationLegalForce;
+ protected $legislationIdentifier;
/**
- * 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.
+ * 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\CategoryCode|string
+ * @var \OpenActive\Models\SchemaOrg\Legislation|string
*/
- protected $legislationType;
+ protected $legislationTransposes;
/**
- * Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based.
+ * Indicates that this legislation (or part of a legislation) somehow transfers another legislation in a different legislative context. This is an informative link, and it has no legal value. For legally-binding links of transposition, use the legislationTransposes property. For example an informative consolidated law of a European Union's member state "applies" the consolidated version of the European Directive implemented in it.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\AdministrativeArea
+ * @var \OpenActive\Models\SchemaOrg\Legislation|string
*/
- protected $jurisdiction;
+ protected $legislationApplies;
/**
- * An identifier for the legislation. This can be either a string-based identifier, like the CELEX at EU level or the NOR in France, or a web-based, URL/URI identifier, like an ELI (European Legislation Identifier) or an URN-Lex.
+ * Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $legislationIdentifier;
+ protected $jurisdiction;
/**
- * Another legislation that this legislation changes. This encompasses the notions of amendment, replacement, correction, repeal, or other types of change. This may be a direct change (textual or non-textual amendment) or a consequential or indirect change. The property is to be used to express the existence of a change relationship between two acts rather than the existence of a consolidated version of the text that shows the result of the change. For consolidation relationships, use the legislationConsolidates property.
+ * Indicates another legislation taken into account in this consolidated legislation (which is usually the product of an editorial process that revises the legislation). This property should be used multiple times to refer to both the original version or the previous consolidated version, and to the legislations making the change.
*
*
* @var \OpenActive\Models\SchemaOrg\Legislation|string
*/
- protected $legislationChanges;
+ protected $legislationConsolidates;
/**
* An individual or organization that has some kind of responsibility for the legislation. Typically the ministry who is/was in charge of elaborating the legislation, or the adressee for potential questions about the legislation once it is published.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
protected $legislationResponsible;
/**
- * The jurisdiction from which the legislation originates.
+ * Whether the legislation is currently in force, not in force, or partially in force.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @var \OpenActive\Models\SchemaOrg\LegalForceStatus|string
*/
- protected $legislationJurisdiction;
+ protected $legislationLegalForce;
/**
- * 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.
+ * The point-in-time at which the provided description of the legislation is valid (e.g.: when looking at the law on the 2016-04-07 (= dateVersion), I get the consolidation of 2015-04-12 of the "National Insurance Contributions Act 2015")
*
*
* @var Date|null
*/
- protected $legislationDate;
+ protected $legislationDateVersion;
/**
- * 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.
+ * 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\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Legislation|string
*/
- protected $legislationPassedBy;
+ protected $legislationChanges;
/**
- * Indicates another legislation taken into account in this consolidated legislation (which is usually the product of an editorial process that revises the legislation). This property should be used multiple times to refer to both the original version or the previous consolidated version, and to the legislations making the change.
+ * The jurisdiction from which the legislation originates.
*
*
- * @var \OpenActive\Models\SchemaOrg\Legislation|string
+ * @var string|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- protected $legislationConsolidates;
+ protected $legislationJurisdiction;
/**
- * Indicates that this legislation (or part of a legislation) somehow transfers another legislation in a different legislative context. This is an informative link, and it has no legal value. For legally-binding links of transposition, use the legislationTransposes property. For example an informative consolidated law of a European Union's member state "applies" the consolidated version of the European Directive implemented in it.
+ * The type of the legislation. Examples of values are "law", "act", "directive", "decree", "regulation", "statutory instrument", "loi organique", "règlement grand-ducal", etc., depending on the country.
*
*
- * @var \OpenActive\Models\SchemaOrg\Legislation|string
+ * @var string|\OpenActive\Models\SchemaOrg\CategoryCode
*/
- protected $legislationApplies;
+ protected $legislationType;
/**
- * The point-in-time at which the provided description of the legislation is valid (e.g. : when looking at the law on the 2016-04-07 (= dateVersion), I get the consolidation of 2015-04-12 of the "National Insurance Contributions Act 2015")
+ * 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;
}
/**
- * @return \OpenActive\Models\SchemaOrg\LegalForceStatus|string
+ * @return string
*/
- public function getLegislationLegalForce()
+ public function getLegislationIdentifier()
{
- return $this->legislationLegalForce;
+ return $this->legislationIdentifier;
}
/**
- * @param \OpenActive\Models\SchemaOrg\LegalForceStatus|string $legislationLegalForce
+ * @param string $legislationIdentifier
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationLegalForce($legislationLegalForce)
+ public function setLegislationIdentifier($legislationIdentifier)
{
$types = [
- "\OpenActive\Models\SchemaOrg\LegalForceStatus",
"string",
];
- $legislationLegalForce = self::checkTypes($legislationLegalForce, $types);
+ $legislationIdentifier = self::checkTypes($legislationIdentifier, $types);
- $this->legislationLegalForce = $legislationLegalForce;
+ $this->legislationIdentifier = $legislationIdentifier;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @return \OpenActive\Models\SchemaOrg\Legislation|string
*/
- public function getLegislationType()
+ public function getLegislationTransposes()
{
- return $this->legislationType;
+ return $this->legislationTransposes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $legislationType
+ * @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 setLegislationType($legislationType)
+ public function setLegislationTransposes($legislationTransposes)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCode",
+ "\OpenActive\Models\SchemaOrg\Legislation",
"string",
];
- $legislationType = self::checkTypes($legislationType, $types);
+ $legislationTransposes = self::checkTypes($legislationTransposes, $types);
- $this->legislationType = $legislationType;
+ $this->legislationTransposes = $legislationTransposes;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea
+ * @return \OpenActive\Models\SchemaOrg\Legislation|string
*/
- public function getJurisdiction()
+ public function getLegislationApplies()
{
- return $this->jurisdiction;
+ return $this->legislationApplies;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\AdministrativeArea $jurisdiction
+ * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationApplies
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setJurisdiction($jurisdiction)
+ public function setLegislationApplies($legislationApplies)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Legislation",
"string",
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
];
- $jurisdiction = self::checkTypes($jurisdiction, $types);
+ $legislationApplies = self::checkTypes($legislationApplies, $types);
- $this->jurisdiction = $jurisdiction;
+ $this->legislationApplies = $legislationApplies;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getLegislationIdentifier()
+ public function getJurisdiction()
{
- return $this->legislationIdentifier;
+ return $this->jurisdiction;
}
/**
- * @param string $legislationIdentifier
+ * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $jurisdiction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationIdentifier($legislationIdentifier)
+ public function setJurisdiction($jurisdiction)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $legislationIdentifier = self::checkTypes($legislationIdentifier, $types);
+ $jurisdiction = self::checkTypes($jurisdiction, $types);
- $this->legislationIdentifier = $legislationIdentifier;
+ $this->jurisdiction = $jurisdiction;
}
/**
* @return \OpenActive\Models\SchemaOrg\Legislation|string
*/
- public function getLegislationChanges()
+ public function getLegislationConsolidates()
{
- return $this->legislationChanges;
+ return $this->legislationConsolidates;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationChanges
+ * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationConsolidates
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationChanges($legislationChanges)
+ public function setLegislationConsolidates($legislationConsolidates)
{
$types = [
"\OpenActive\Models\SchemaOrg\Legislation",
"string",
];
- $legislationChanges = self::checkTypes($legislationChanges, $types);
+ $legislationConsolidates = self::checkTypes($legislationConsolidates, $types);
- $this->legislationChanges = $legislationChanges;
+ $this->legislationConsolidates = $legislationConsolidates;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
public function getLegislationResponsible()
{
@@ -297,15 +298,15 @@ public function getLegislationResponsible()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $legislationResponsible
+ * @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 setLegislationResponsible($legislationResponsible)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
@@ -315,154 +316,153 @@ public function setLegislationResponsible($legislationResponsible)
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return \OpenActive\Models\SchemaOrg\LegalForceStatus|string
*/
- public function getLegislationJurisdiction()
+ public function getLegislationLegalForce()
{
- return $this->legislationJurisdiction;
+ return $this->legislationLegalForce;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $legislationJurisdiction
+ * @param \OpenActive\Models\SchemaOrg\LegalForceStatus|string $legislationLegalForce
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationJurisdiction($legislationJurisdiction)
+ public function setLegislationLegalForce($legislationLegalForce)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "\OpenActive\Models\SchemaOrg\LegalForceStatus",
"string",
];
- $legislationJurisdiction = self::checkTypes($legislationJurisdiction, $types);
+ $legislationLegalForce = self::checkTypes($legislationLegalForce, $types);
- $this->legislationJurisdiction = $legislationJurisdiction;
+ $this->legislationLegalForce = $legislationLegalForce;
}
/**
* @return Date|null
*/
- public function getLegislationDate()
+ public function getLegislationDateVersion()
{
- return $this->legislationDate;
+ return $this->legislationDateVersion;
}
/**
- * @param Date|null $legislationDate
+ * @param Date|null $legislationDateVersion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationDate($legislationDate)
+ public function setLegislationDateVersion($legislationDateVersion)
{
$types = [
"Date",
"null",
];
- $legislationDate = self::checkTypes($legislationDate, $types);
+ $legislationDateVersion = self::checkTypes($legislationDateVersion, $types);
- $this->legislationDate = $legislationDate;
+ $this->legislationDateVersion = $legislationDateVersion;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Legislation|string
*/
- public function getLegislationPassedBy()
+ public function getLegislationChanges()
{
- return $this->legislationPassedBy;
+ return $this->legislationChanges;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $legislationPassedBy
+ * @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 setLegislationPassedBy($legislationPassedBy)
+ public function setLegislationChanges($legislationChanges)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Legislation",
"string",
];
- $legislationPassedBy = self::checkTypes($legislationPassedBy, $types);
+ $legislationChanges = self::checkTypes($legislationChanges, $types);
- $this->legislationPassedBy = $legislationPassedBy;
+ $this->legislationChanges = $legislationChanges;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Legislation|string
+ * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- public function getLegislationConsolidates()
+ public function getLegislationJurisdiction()
{
- return $this->legislationConsolidates;
+ return $this->legislationJurisdiction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationConsolidates
+ * @param string|\OpenActive\Models\SchemaOrg\AdministrativeArea $legislationJurisdiction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationConsolidates($legislationConsolidates)
+ public function setLegislationJurisdiction($legislationJurisdiction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Legislation",
"string",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
];
- $legislationConsolidates = self::checkTypes($legislationConsolidates, $types);
+ $legislationJurisdiction = self::checkTypes($legislationJurisdiction, $types);
- $this->legislationConsolidates = $legislationConsolidates;
+ $this->legislationJurisdiction = $legislationJurisdiction;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Legislation|string
+ * @return string|\OpenActive\Models\SchemaOrg\CategoryCode
*/
- public function getLegislationApplies()
+ public function getLegislationType()
{
- return $this->legislationApplies;
+ return $this->legislationType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationApplies
+ * @param string|\OpenActive\Models\SchemaOrg\CategoryCode $legislationType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationApplies($legislationApplies)
+ public function setLegislationType($legislationType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Legislation",
"string",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
];
- $legislationApplies = self::checkTypes($legislationApplies, $types);
+ $legislationType = self::checkTypes($legislationType, $types);
- $this->legislationApplies = $legislationApplies;
+ $this->legislationType = $legislationType;
}
/**
* @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/LinkRole.php b/src/Models/SchemaOrg/LinkRole.php
index 6ad5e287..ee776e15 100644
--- a/src/Models/SchemaOrg/LinkRole.php
+++ b/src/Models/SchemaOrg/LinkRole.php
@@ -17,76 +17,76 @@ public static function getType()
public static function fieldList() {
$fields = [
- "linkRelationship" => "linkRelationship",
"inLanguage" => "inLanguage",
+ "linkRelationship" => "linkRelationship",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Indicates the relationship type of a Web link.
+ * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $linkRelationship;
+ protected $inLanguage;
/**
- * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].
+ * Indicates the relationship type of a Web link.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var string
*/
- protected $inLanguage;
+ protected $linkRelationship;
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getLinkRelationship()
+ public function getInLanguage()
{
- return $this->linkRelationship;
+ return $this->inLanguage;
}
/**
- * @param string $linkRelationship
+ * @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 setLinkRelationship($linkRelationship)
+ public function setInLanguage($inLanguage)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $linkRelationship = self::checkTypes($linkRelationship, $types);
+ $inLanguage = self::checkTypes($inLanguage, $types);
- $this->linkRelationship = $linkRelationship;
+ $this->inLanguage = $inLanguage;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return string
*/
- public function getInLanguage()
+ public function getLinkRelationship()
{
- return $this->inLanguage;
+ return $this->linkRelationship;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
+ * @param string $linkRelationship
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInLanguage($inLanguage)
+ public function setLinkRelationship($linkRelationship)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Language",
];
- $inLanguage = self::checkTypes($inLanguage, $types);
+ $linkRelationship = self::checkTypes($linkRelationship, $types);
- $this->inLanguage = $inLanguage;
+ $this->linkRelationship = $linkRelationship;
}
}
diff --git a/src/Models/SchemaOrg/ListItem.php b/src/Models/SchemaOrg/ListItem.php
index ac5d7ffd..6e08770e 100644
--- a/src/Models/SchemaOrg/ListItem.php
+++ b/src/Models/SchemaOrg/ListItem.php
@@ -43,7 +43,7 @@ public static function fieldList() {
protected $nextItem;
/**
- * An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists')’.
+ * An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists').
*
*
* @var \OpenActive\Models\SchemaOrg\Thing|string
@@ -51,7 +51,7 @@ public static function fieldList() {
protected $item;
/**
- * A link to the ListItem that preceeds the current one.
+ * A link to the ListItem that precedes the current one.
*
*
* @var \OpenActive\Models\SchemaOrg\ListItem|string
diff --git a/src/Models/SchemaOrg/LoanOrCredit.php b/src/Models/SchemaOrg/LoanOrCredit.php
index 2d6710bb..9adad7ed 100644
--- a/src/Models/SchemaOrg/LoanOrCredit.php
+++ b/src/Models/SchemaOrg/LoanOrCredit.php
@@ -18,14 +18,14 @@ public static function getType()
public static function fieldList() {
$fields = [
"renegotiableLoan" => "renegotiableLoan",
+ "currency" => "currency",
+ "requiredCollateral" => "requiredCollateral",
+ "loanTerm" => "loanTerm",
"loanType" => "loanType",
"recourseLoan" => "recourseLoan",
- "loanTerm" => "loanTerm",
"gracePeriod" => "gracePeriod",
- "requiredCollateral" => "requiredCollateral",
- "currency" => "currency",
- "amount" => "amount",
"loanRepaymentForm" => "loanRepaymentForm",
+ "amount" => "amount",
];
return array_merge(parent::fieldList(), $fields);
@@ -40,20 +40,20 @@ public static function fieldList() {
protected $renegotiableLoan;
/**
- * The type of a loan or credit.
+ * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".
*
*
* @var string
*/
- protected $loanType;
+ protected $currency;
/**
- * The only way you get the money back in the event of default is the security. Recourse is where you still have the opportunity to go back to the borrower for the rest of the money.
+ * 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.
@@ -64,44 +64,44 @@ public static function fieldList() {
protected $loanTerm;
/**
- * The period of time after any due date that the borrower has to fulfil its obligations before a default (failure to pay) is deemed to have occurred.
+ * The type of a loan or credit.
*
*
- * @var DateInterval|string|null
+ * @var string
*/
- protected $gracePeriod;
+ protected $loanType;
/**
- * Assets required to secure loan or credit repayments. It may take form of third party pledge, goods, financial instruments (cash, securities, etc.)
+ * 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|\OpenActive\Models\SchemaOrg\Thing
+ * @var bool|null
*/
- protected $requiredCollateral;
+ protected $recourseLoan;
/**
- * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR".
+ * The period of time after any due date that the borrower has to fulfil its obligations before a default (failure to pay) is deemed to have occurred.
*
*
- * @var string
+ * @var DateInterval|string|null
*/
- protected $currency;
+ protected $gracePeriod;
/**
- * The amount of money.
+ * A form of paying back money previously borrowed from a lender. Repayment usually takes the form of periodic payments that normally include part principal plus interest in each payment.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var \OpenActive\Models\SchemaOrg\RepaymentSpecification|string
*/
- protected $amount;
+ protected $loanRepaymentForm;
/**
- * A form of paying back money previously borrowed from a lender. Repayment usually takes the form of periodic payments that normally include part principal plus interest in each payment.
+ * The amount of money.
*
*
- * @var \OpenActive\Models\SchemaOrg\RepaymentSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- protected $loanRepaymentForm;
+ protected $amount;
/**
* @return bool|null
@@ -131,50 +131,50 @@ public function setRenegotiableLoan($renegotiableLoan)
/**
* @return string
*/
- public function getLoanType()
+ public function getCurrency()
{
- return $this->loanType;
+ return $this->currency;
}
/**
- * @param string $loanType
+ * @param string $currency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLoanType($loanType)
+ public function setCurrency($currency)
{
$types = [
"string",
];
- $loanType = self::checkTypes($loanType, $types);
+ $currency = self::checkTypes($currency, $types);
- $this->loanType = $loanType;
+ $this->currency = $currency;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getRecourseLoan()
+ public function getRequiredCollateral()
{
- return $this->recourseLoan;
+ return $this->requiredCollateral;
}
/**
- * @param bool|null $recourseLoan
+ * @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 setRecourseLoan($recourseLoan)
+ public function setRequiredCollateral($requiredCollateral)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "string",
];
- $recourseLoan = self::checkTypes($recourseLoan, $types);
+ $requiredCollateral = self::checkTypes($requiredCollateral, $types);
- $this->recourseLoan = $recourseLoan;
+ $this->requiredCollateral = $requiredCollateral;
}
/**
@@ -203,130 +203,130 @@ public function setLoanTerm($loanTerm)
}
/**
- * @return DateInterval|string|null
+ * @return string
*/
- public function getGracePeriod()
+ public function getLoanType()
{
- return $this->gracePeriod;
+ return $this->loanType;
}
/**
- * @param DateInterval|string|null $gracePeriod
+ * @param string $loanType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGracePeriod($gracePeriod)
+ public function setLoanType($loanType)
{
$types = [
- "DateInterval",
"string",
- "null",
];
- $gracePeriod = self::checkTypes($gracePeriod, $types);
+ $loanType = self::checkTypes($loanType, $types);
- $this->gracePeriod = $gracePeriod;
+ $this->loanType = $loanType;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Thing
+ * @return bool|null
*/
- public function getRequiredCollateral()
+ public function getRecourseLoan()
{
- return $this->requiredCollateral;
+ return $this->recourseLoan;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Thing $requiredCollateral
+ * @param bool|null $recourseLoan
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRequiredCollateral($requiredCollateral)
+ public function setRecourseLoan($recourseLoan)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\Thing",
+ "bool",
+ "null",
];
- $requiredCollateral = self::checkTypes($requiredCollateral, $types);
+ $recourseLoan = self::checkTypes($recourseLoan, $types);
- $this->requiredCollateral = $requiredCollateral;
+ $this->recourseLoan = $recourseLoan;
}
/**
- * @return string
+ * @return DateInterval|string|null
*/
- public function getCurrency()
+ public function getGracePeriod()
{
- return $this->currency;
+ return $this->gracePeriod;
}
/**
- * @param string $currency
+ * @param DateInterval|string|null $gracePeriod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCurrency($currency)
+ public function setGracePeriod($gracePeriod)
{
$types = [
+ "DateInterval",
"string",
+ "null",
];
- $currency = self::checkTypes($currency, $types);
+ $gracePeriod = self::checkTypes($gracePeriod, $types);
- $this->currency = $currency;
+ $this->gracePeriod = $gracePeriod;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return \OpenActive\Models\SchemaOrg\RepaymentSpecification|string
*/
- public function getAmount()
+ public function getLoanRepaymentForm()
{
- return $this->amount;
+ return $this->loanRepaymentForm;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount
+ * @param \OpenActive\Models\SchemaOrg\RepaymentSpecification|string $loanRepaymentForm
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAmount($amount)
+ public function setLoanRepaymentForm($loanRepaymentForm)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "\OpenActive\Models\SchemaOrg\RepaymentSpecification",
"string",
- "null",
];
- $amount = self::checkTypes($amount, $types);
+ $loanRepaymentForm = self::checkTypes($loanRepaymentForm, $types);
- $this->amount = $amount;
+ $this->loanRepaymentForm = $loanRepaymentForm;
}
/**
- * @return \OpenActive\Models\SchemaOrg\RepaymentSpecification|string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- public function getLoanRepaymentForm()
+ public function getAmount()
{
- return $this->loanRepaymentForm;
+ return $this->amount;
}
/**
- * @param \OpenActive\Models\SchemaOrg\RepaymentSpecification|string $loanRepaymentForm
+ * @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 setLoanRepaymentForm($loanRepaymentForm)
+ public function setAmount($amount)
{
$types = [
- "\OpenActive\Models\SchemaOrg\RepaymentSpecification",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
+ "null",
];
- $loanRepaymentForm = self::checkTypes($loanRepaymentForm, $types);
+ $amount = self::checkTypes($amount, $types);
- $this->loanRepaymentForm = $loanRepaymentForm;
+ $this->amount = $amount;
}
}
diff --git a/src/Models/SchemaOrg/LocalBusiness.php b/src/Models/SchemaOrg/LocalBusiness.php
index 5dc0f3df..ffe42fec 100644
--- a/src/Models/SchemaOrg/LocalBusiness.php
+++ b/src/Models/SchemaOrg/LocalBusiness.php
@@ -17,23 +17,23 @@ public static function getType()
public static function fieldList() {
$fields = [
- "branchOf" => "branchOf",
+ "paymentAccepted" => "paymentAccepted",
"openingHours" => "openingHours",
"priceRange" => "priceRange",
- "paymentAccepted" => "paymentAccepted",
"currenciesAccepted" => "currenciesAccepted",
+ "branchOf" => "branchOf",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical)[[branch]].
+ * Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $branchOf;
+ protected $paymentAccepted;
/**
* 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>
.
@@ -52,44 +52,43 @@ public static function fieldList() {
protected $priceRange;
/**
- * Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.
+ * The currency accepted.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".
*
*
* @var string
*/
- protected $paymentAccepted;
+ protected $currenciesAccepted;
/**
- * 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 larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $currenciesAccepted;
+ protected $branchOf;
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getBranchOf()
+ public function getPaymentAccepted()
{
- return $this->branchOf;
+ return $this->paymentAccepted;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $branchOf
+ * @param string $paymentAccepted
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBranchOf($branchOf)
+ public function setPaymentAccepted($paymentAccepted)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $branchOf = self::checkTypes($branchOf, $types);
+ $paymentAccepted = self::checkTypes($paymentAccepted, $types);
- $this->branchOf = $branchOf;
+ $this->paymentAccepted = $paymentAccepted;
}
/**
@@ -143,49 +142,50 @@ public function setPriceRange($priceRange)
/**
* @return string
*/
- public function getPaymentAccepted()
+ public function getCurrenciesAccepted()
{
- return $this->paymentAccepted;
+ return $this->currenciesAccepted;
}
/**
- * @param string $paymentAccepted
+ * @param string $currenciesAccepted
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPaymentAccepted($paymentAccepted)
+ public function setCurrenciesAccepted($currenciesAccepted)
{
$types = [
"string",
];
- $paymentAccepted = self::checkTypes($paymentAccepted, $types);
+ $currenciesAccepted = self::checkTypes($currenciesAccepted, $types);
- $this->paymentAccepted = $paymentAccepted;
+ $this->currenciesAccepted = $currenciesAccepted;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getCurrenciesAccepted()
+ public function getBranchOf()
{
- return $this->currenciesAccepted;
+ return $this->branchOf;
}
/**
- * @param string $currenciesAccepted
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $branchOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCurrenciesAccepted($currenciesAccepted)
+ public function setBranchOf($branchOf)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $currenciesAccepted = self::checkTypes($currenciesAccepted, $types);
+ $branchOf = self::checkTypes($branchOf, $types);
- $this->currenciesAccepted = $currenciesAccepted;
+ $this->branchOf = $branchOf;
}
}
diff --git a/src/Models/SchemaOrg/LocationFeatureSpecification.php b/src/Models/SchemaOrg/LocationFeatureSpecification.php
index 95978749..e2be7e07 100644
--- a/src/Models/SchemaOrg/LocationFeatureSpecification.php
+++ b/src/Models/SchemaOrg/LocationFeatureSpecification.php
@@ -17,22 +17,14 @@ public static function getType()
public static function fieldList() {
$fields = [
- "hoursAvailable" => "hoursAvailable",
"validFrom" => "validFrom",
"validThrough" => "validThrough",
+ "hoursAvailable" => "hoursAvailable",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * The hours during which this service or contact is available.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
- */
- protected $hoursAvailable;
-
/**
* The date when the item becomes valid.
*
@@ -50,29 +42,12 @@ public static function fieldList() {
protected $validThrough;
/**
- * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
- */
- public function getHoursAvailable()
- {
- return $this->hoursAvailable;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $hoursAvailable
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The hours during which this service or contact is available.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
*/
- public function setHoursAvailable($hoursAvailable)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification",
- "string",
- ];
-
- $hoursAvailable = self::checkTypes($hoursAvailable, $types);
-
- $this->hoursAvailable = $hoursAvailable;
- }
+ protected $hoursAvailable;
/**
* @return Date|DateTime|null
@@ -126,4 +101,29 @@ public function setValidThrough($validThrough)
$this->validThrough = $validThrough;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
+ */
+ public function getHoursAvailable()
+ {
+ return $this->hoursAvailable;
+ }
+
+ /**
+ * @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 setHoursAvailable($hoursAvailable)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification",
+ "string",
+ ];
+
+ $hoursAvailable = self::checkTypes($hoursAvailable, $types);
+
+ $this->hoursAvailable = $hoursAvailable;
+ }
+
}
diff --git a/src/Models/SchemaOrg/LodgingBusiness.php b/src/Models/SchemaOrg/LodgingBusiness.php
index af55db3b..49909261 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",
+ "petsAllowed" => "petsAllowed",
"availableLanguage" => "availableLanguage",
"checkoutTime" => "checkoutTime",
+ "amenityFeature" => "amenityFeature",
"checkinTime" => "checkinTime",
- "petsAllowed" => "petsAllowed",
+ "audience" => "audience",
+ "starRating" => "starRating",
];
return array_merge(parent::fieldList(), $fields);
@@ -40,60 +40,60 @@ public static function fieldList() {
protected $numberOfRooms;
/**
- * An intended audience, i.e. a group for whom something was created.
+ * 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\Audience|string
+ * @var bool|string|null
*/
- protected $audience;
+ protected $petsAllowed;
/**
- * 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 \OpenActive\Models\SchemaOrg\Language|string
*/
- 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.
+ * The latest someone may check out of a lodging establishment.
*
*
- * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
+ * @var DateTime|string|null
*/
- protected $amenityFeature;
+ protected $checkoutTime;
/**
- * 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]]
+ * 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|\OpenActive\Models\SchemaOrg\Language
+ * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
*/
- protected $availableLanguage;
+ protected $amenityFeature;
/**
- * The latest someone may check out of a lodging establishment.
+ * The earliest someone may check into a lodging establishment.
*
*
* @var DateTime|string|null
*/
- protected $checkoutTime;
+ protected $checkinTime;
/**
- * The earliest someone may check into a lodging establishment.
+ * An intended audience, i.e. a group for whom something was created.
*
*
- * @var DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\Audience|string
*/
- protected $checkinTime;
+ protected $audience;
/**
- * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
+ * An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies. Use the author property to indicate the rating organization, e.g. as an Organization with name such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars).
*
*
- * @var bool|string|null
+ * @var \OpenActive\Models\SchemaOrg\Rating|string
*/
- protected $petsAllowed;
+ protected $starRating;
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
@@ -123,119 +123,121 @@ public function setNumberOfRooms($numberOfRooms)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Audience|string
+ * @return bool|string|null
*/
- public function getAudience()
+ public function getPetsAllowed()
{
- return $this->audience;
+ return $this->petsAllowed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
+ * @param bool|string|null $petsAllowed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAudience($audience)
+ public function setPetsAllowed($petsAllowed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Audience",
+ "bool",
"string",
+ "null",
];
- $audience = self::checkTypes($audience, $types);
+ $petsAllowed = self::checkTypes($petsAllowed, $types);
- $this->audience = $audience;
+ $this->petsAllowed = $petsAllowed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Rating|string
+ * @return \OpenActive\Models\SchemaOrg\Language|string
*/
- public function getStarRating()
+ public function getAvailableLanguage()
{
- return $this->starRating;
+ return $this->availableLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Rating|string $starRating
+ * @param \OpenActive\Models\SchemaOrg\Language|string $availableLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStarRating($starRating)
+ public function setAvailableLanguage($availableLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Rating",
+ "\OpenActive\Models\SchemaOrg\Language",
"string",
];
- $starRating = self::checkTypes($starRating, $types);
+ $availableLanguage = self::checkTypes($availableLanguage, $types);
- $this->starRating = $starRating;
+ $this->availableLanguage = $availableLanguage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
+ * @return DateTime|string|null
*/
- public function getAmenityFeature()
+ public function getCheckoutTime()
{
- return $this->amenityFeature;
+ return $this->checkoutTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string $amenityFeature
+ * @param DateTime|string|null $checkoutTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAmenityFeature($amenityFeature)
+ public function setCheckoutTime($checkoutTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification",
- "string",
+ "DateTime",
+ "Time",
+ "null",
];
- $amenityFeature = self::checkTypes($amenityFeature, $types);
+ $checkoutTime = self::checkTypes($checkoutTime, $types);
- $this->amenityFeature = $amenityFeature;
+ $this->checkoutTime = $checkoutTime;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
*/
- public function getAvailableLanguage()
+ public function getAmenityFeature()
{
- return $this->availableLanguage;
+ return $this->amenityFeature;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage
+ * @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 setAvailableLanguage($availableLanguage)
+ public function setAmenityFeature($amenityFeature)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification",
"string",
- "\OpenActive\Models\SchemaOrg\Language",
];
- $availableLanguage = self::checkTypes($availableLanguage, $types);
+ $amenityFeature = self::checkTypes($amenityFeature, $types);
- $this->availableLanguage = $availableLanguage;
+ $this->amenityFeature = $amenityFeature;
}
/**
* @return DateTime|string|null
*/
- public function getCheckoutTime()
+ public function getCheckinTime()
{
- return $this->checkoutTime;
+ return $this->checkinTime;
}
/**
- * @param DateTime|string|null $checkoutTime
+ * @param DateTime|string|null $checkinTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCheckoutTime($checkoutTime)
+ public function setCheckinTime($checkinTime)
{
$types = [
"DateTime",
@@ -243,61 +245,59 @@ public function setCheckoutTime($checkoutTime)
"null",
];
- $checkoutTime = self::checkTypes($checkoutTime, $types);
+ $checkinTime = self::checkTypes($checkinTime, $types);
- $this->checkoutTime = $checkoutTime;
+ $this->checkinTime = $checkinTime;
}
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\Audience|string
*/
- public function getCheckinTime()
+ public function getAudience()
{
- return $this->checkinTime;
+ return $this->audience;
}
/**
- * @param DateTime|string|null $checkinTime
+ * @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 setCheckinTime($checkinTime)
+ public function setAudience($audience)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "string",
];
- $checkinTime = self::checkTypes($checkinTime, $types);
+ $audience = self::checkTypes($audience, $types);
- $this->checkinTime = $checkinTime;
+ $this->audience = $audience;
}
/**
- * @return bool|string|null
+ * @return \OpenActive\Models\SchemaOrg\Rating|string
*/
- public function getPetsAllowed()
+ public function getStarRating()
{
- return $this->petsAllowed;
+ return $this->starRating;
}
/**
- * @param bool|string|null $petsAllowed
+ * @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 setPetsAllowed($petsAllowed)
+ public function setStarRating($starRating)
{
$types = [
- "bool",
+ "\OpenActive\Models\SchemaOrg\Rating",
"string",
- "null",
];
- $petsAllowed = self::checkTypes($petsAllowed, $types);
+ $starRating = self::checkTypes($starRating, $types);
- $this->petsAllowed = $petsAllowed;
+ $this->starRating = $starRating;
}
}
diff --git a/src/Models/SchemaOrg/LodgingReservation.php b/src/Models/SchemaOrg/LodgingReservation.php
index bd520b20..366a764c 100644
--- a/src/Models/SchemaOrg/LodgingReservation.php
+++ b/src/Models/SchemaOrg/LodgingReservation.php
@@ -17,32 +17,32 @@ public static function getType()
public static function fieldList() {
$fields = [
- "lodgingUnitType" => "lodgingUnitType",
"lodgingUnitDescription" => "lodgingUnitDescription",
+ "numChildren" => "numChildren",
"checkoutTime" => "checkoutTime",
- "numAdults" => "numAdults",
+ "lodgingUnitType" => "lodgingUnitType",
"checkinTime" => "checkinTime",
- "numChildren" => "numChildren",
+ "numAdults" => "numAdults",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Textual description of the unit type (including suite vs. room, size of bed, etc.).
+ * A full description of the lodging unit.
*
*
- * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @var string
*/
- protected $lodgingUnitType;
+ protected $lodgingUnitDescription;
/**
- * 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.
@@ -53,12 +53,12 @@ public static function fieldList() {
protected $checkoutTime;
/**
- * 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 \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
*/
- protected $numAdults;
+ protected $lodgingUnitType;
/**
* The earliest someone may check into a lodging establishment.
@@ -69,61 +69,62 @@ public static function fieldList() {
protected $checkinTime;
/**
- * The number of children staying in the unit.
+ * The number of adults staying in the unit.
*
*
- * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null
*/
- protected $numChildren;
+ protected $numAdults;
/**
- * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @return string
*/
- public function getLodgingUnitType()
+ public function getLodgingUnitDescription()
{
- return $this->lodgingUnitType;
+ return $this->lodgingUnitDescription;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $lodgingUnitType
+ * @param string $lodgingUnitDescription
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLodgingUnitType($lodgingUnitType)
+ public function setLodgingUnitDescription($lodgingUnitDescription)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
"string",
- "null",
];
- $lodgingUnitType = self::checkTypes($lodgingUnitType, $types);
+ $lodgingUnitDescription = self::checkTypes($lodgingUnitDescription, $types);
- $this->lodgingUnitType = $lodgingUnitType;
+ $this->lodgingUnitDescription = $lodgingUnitDescription;
}
/**
- * @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;
}
/**
@@ -153,30 +154,29 @@ public function setCheckoutTime($checkoutTime)
}
/**
- * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
*/
- public function getNumAdults()
+ public function getLodgingUnitType()
{
- return $this->numAdults;
+ return $this->lodgingUnitType;
}
/**
- * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numAdults
+ * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $lodgingUnitType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumAdults($numAdults)
+ public function setLodgingUnitType($lodgingUnitType)
{
$types = [
- "int",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
"string",
"null",
];
- $numAdults = self::checkTypes($numAdults, $types);
+ $lodgingUnitType = self::checkTypes($lodgingUnitType, $types);
- $this->numAdults = $numAdults;
+ $this->lodgingUnitType = $lodgingUnitType;
}
/**
@@ -206,30 +206,30 @@ public function setCheckinTime($checkinTime)
}
/**
- * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null
*/
- public function getNumChildren()
+ public function getNumAdults()
{
- return $this->numChildren;
+ return $this->numAdults;
}
/**
- * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numChildren
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null $numAdults
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumChildren($numChildren)
+ public function setNumAdults($numAdults)
{
$types = [
- "int",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "int",
"null",
];
- $numChildren = self::checkTypes($numChildren, $types);
+ $numAdults = self::checkTypes($numAdults, $types);
- $this->numChildren = $numChildren;
+ $this->numAdults = $numAdults;
}
}
diff --git a/src/Models/SchemaOrg/LymphaticVessel.php b/src/Models/SchemaOrg/LymphaticVessel.php
index de4fecdf..d4c33834 100644
--- a/src/Models/SchemaOrg/LymphaticVessel.php
+++ b/src/Models/SchemaOrg/LymphaticVessel.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "runsTo" => "runsTo",
"regionDrained" => "regionDrained",
+ "runsTo" => "runsTo",
"originatesFrom" => "originatesFrom",
];
@@ -26,20 +26,20 @@ public static function fieldList() {
}
/**
- * The vasculature the lymphatic structure runs, or efferents, to.
+ * The anatomical or organ system drained by this vessel; generally refers to a specific part of an organ.
*
*
- * @var \OpenActive\Models\SchemaOrg\Vessel|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $runsTo;
+ protected $regionDrained;
/**
- * The anatomical or organ system drained by this vessel; generally refers to a specific part of an organ.
+ * The vasculature the lymphatic structure runs, or efferents, to.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\Vessel|string
*/
- protected $regionDrained;
+ protected $runsTo;
/**
* The vasculature the lymphatic structure originates, or afferents, from.
@@ -50,54 +50,54 @@ public static function fieldList() {
protected $originatesFrom;
/**
- * @return \OpenActive\Models\SchemaOrg\Vessel|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getRunsTo()
+ public function getRegionDrained()
{
- return $this->runsTo;
+ return $this->regionDrained;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Vessel|string $runsTo
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $regionDrained
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRunsTo($runsTo)
+ public function setRegionDrained($regionDrained)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Vessel",
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $runsTo = self::checkTypes($runsTo, $types);
+ $regionDrained = self::checkTypes($regionDrained, $types);
- $this->runsTo = $runsTo;
+ $this->regionDrained = $regionDrained;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\Vessel|string
*/
- public function getRegionDrained()
+ public function getRunsTo()
{
- return $this->regionDrained;
+ return $this->runsTo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $regionDrained
+ * @param \OpenActive\Models\SchemaOrg\Vessel|string $runsTo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRegionDrained($regionDrained)
+ public function setRunsTo($runsTo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\Vessel",
"string",
];
- $regionDrained = self::checkTypes($regionDrained, $types);
+ $runsTo = self::checkTypes($runsTo, $types);
- $this->regionDrained = $regionDrained;
+ $this->runsTo = $runsTo;
}
/**
diff --git a/src/Models/SchemaOrg/MathSolver.php b/src/Models/SchemaOrg/MathSolver.php
index 73a62ffe..1b269ccd 100644
--- a/src/Models/SchemaOrg/MathSolver.php
+++ b/src/Models/SchemaOrg/MathSolver.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* A mathematical expression (e.g. 'x^2-3x=0') that may be solved for a specific variable, simplified, or transformed. This can take many formats, e.g. LaTeX, Ascii-Math, or math as you would write with a keyboard.
*
*
- * @var \OpenActive\Models\SchemaOrg\SolveMathAction|string
+ * @var string|\OpenActive\Models\SchemaOrg\SolveMathAction
*/
protected $mathExpression;
/**
- * @return \OpenActive\Models\SchemaOrg\SolveMathAction|string
+ * @return string|\OpenActive\Models\SchemaOrg\SolveMathAction
*/
public function getMathExpression()
{
@@ -40,15 +40,15 @@ public function getMathExpression()
}
/**
- * @param \OpenActive\Models\SchemaOrg\SolveMathAction|string $mathExpression
+ * @param string|\OpenActive\Models\SchemaOrg\SolveMathAction $mathExpression
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setMathExpression($mathExpression)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SolveMathAction",
"string",
+ "\OpenActive\Models\SchemaOrg\SolveMathAction",
];
$mathExpression = self::checkTypes($mathExpression, $types);
diff --git a/src/Models/SchemaOrg/MediaObject.php b/src/Models/SchemaOrg/MediaObject.php
index 959cbe73..48d2518b 100644
--- a/src/Models/SchemaOrg/MediaObject.php
+++ b/src/Models/SchemaOrg/MediaObject.php
@@ -17,25 +17,25 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "encodingFormat" => "encodingFormat",
"contentSize" => "contentSize",
- "contentUrl" => "contentUrl",
- "width" => "width",
- "height" => "height",
- "regionsAllowed" => "regionsAllowed",
- "startTime" => "startTime",
- "associatedArticle" => "associatedArticle",
- "ineligibleRegion" => "ineligibleRegion",
"requiresSubscription" => "requiresSubscription",
- "playerType" => "playerType",
+ "associatedArticle" => "associatedArticle",
"encodesCreativeWork" => "encodesCreativeWork",
- "duration" => "duration",
- "encodingFormat" => "encodingFormat",
- "uploadDate" => "uploadDate",
- "embedUrl" => "embedUrl",
+ "regionsAllowed" => "regionsAllowed",
"bitrate" => "bitrate",
"endTime" => "endTime",
+ "height" => "height",
+ "playerType" => "playerType",
"productionCompany" => "productionCompany",
+ "ineligibleRegion" => "ineligibleRegion",
"sha256" => "sha256",
+ "startTime" => "startTime",
+ "embedUrl" => "embedUrl",
+ "duration" => "duration",
+ "width" => "width",
+ "contentUrl" => "contentUrl",
+ "uploadDate" => "uploadDate",
"interpretedAsClaim" => "interpretedAsClaim",
];
@@ -43,77 +43,80 @@ public static function fieldList() {
}
/**
- * File size in (mega/kilo) bytes.
+ * Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)), e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc.
+ *
+ * In cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information.
+ *
+ * Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.
*
*
* @var string
*/
- protected $contentSize;
+ protected $encodingFormat;
/**
- * Actual bytes of the media object, for example the image file or video file.
+ * File size in (mega/kilo)bytes.
*
*
* @var string
*/
- protected $contentUrl;
+ protected $contentSize;
/**
- * The width of the item.
+ * 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
+ * @var bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null
*/
- protected $width;
+ protected $requiresSubscription;
/**
- * The height of the item.
+ * A NewsArticle associated with the Media Object.
*
*
- * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\NewsArticle|string
*/
- protected $height;
+ protected $associatedArticle;
/**
- * 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 CreativeWork encoded by this media object.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $regionsAllowed;
+ protected $encodesCreativeWork;
/**
- * 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 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 DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $startTime;
+ protected $regionsAllowed;
/**
- * A NewsArticle associated with the Media Object.
+ * The bitrate of the media object.
*
*
- * @var \OpenActive\Models\SchemaOrg\NewsArticle|string
+ * @var string
*/
- protected $associatedArticle;
+ protected $bitrate;
/**
- * 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 endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @var DateTime|string|null
*/
- protected $ineligibleRegion;
+ protected $endTime;
/**
- * 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 height of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
*/
- protected $requiresSubscription;
+ protected $height;
/**
* Player type required—for example, Flash or Silverlight.
@@ -124,40 +127,37 @@ public static function fieldList() {
protected $playerType;
/**
- * The CreativeWork encoded by this media object.
+ * 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 $encodesCreativeWork;
+ protected $productionCompany;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * 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 DateInterval|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- protected $duration;
+ protected $ineligibleRegion;
/**
- * Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)) e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc.).
- *
- * In cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information.
- *
- * Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.
+ * The [SHA-2](https://en.wikipedia.org/wiki/SHA-2) SHA256 hash of the content of the item. For example, a zero-length input has value 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
*
*
* @var string
*/
- protected $encodingFormat;
+ protected $sha256;
/**
- * Date when this media object was uploaded to this site.
+ * The 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.
@@ -168,36 +168,36 @@ public static function fieldList() {
protected $embedUrl;
/**
- * The bitrate of the media object.
+ * 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 $bitrate;
+ protected $duration;
/**
- * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
+ * The width of the item.
*
*
- * @var DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $endTime;
+ protected $width;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * Actual bytes of the media object, for example the image file or video file.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $productionCompany;
+ protected $contentUrl;
/**
- * The [SHA-2](https://en.wikipedia.org/wiki/SHA-2) SHA256 hash of the content of the item. For example, a zero-length input has value 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
+ * Date when this media object was uploaded to this site.
*
*
- * @var string
+ * @var Date|null
*/
- protected $sha256;
+ protected $uploadDate;
/**
* Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]].
@@ -210,230 +210,227 @@ public static function fieldList() {
/**
* @return string
*/
- public function getContentSize()
+ public function getEncodingFormat()
{
- return $this->contentSize;
+ return $this->encodingFormat;
}
/**
- * @param string $contentSize
+ * @param string $encodingFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContentSize($contentSize)
+ public function setEncodingFormat($encodingFormat)
{
$types = [
"string",
];
- $contentSize = self::checkTypes($contentSize, $types);
+ $encodingFormat = self::checkTypes($encodingFormat, $types);
- $this->contentSize = $contentSize;
+ $this->encodingFormat = $encodingFormat;
}
/**
* @return string
*/
- public function getContentUrl()
+ public function getContentSize()
{
- return $this->contentUrl;
+ return $this->contentSize;
}
/**
- * @param string $contentUrl
+ * @param string $contentSize
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContentUrl($contentUrl)
+ public function setContentSize($contentSize)
{
$types = [
"string",
];
- $contentUrl = self::checkTypes($contentUrl, $types);
+ $contentSize = self::checkTypes($contentSize, $types);
- $this->contentUrl = $contentUrl;
+ $this->contentSize = $contentSize;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
+ * @return bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null
*/
- public function getWidth()
+ public function getRequiresSubscription()
{
- return $this->width;
+ return $this->requiresSubscription;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $width
+ * @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 setWidth($width)
+ public function setRequiresSubscription($requiresSubscription)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "\OpenActive\Models\SchemaOrg\Distance",
+ "bool",
+ "\OpenActive\Models\SchemaOrg\MediaSubscription",
"string",
+ "null",
];
- $width = self::checkTypes($width, $types);
+ $requiresSubscription = self::checkTypes($requiresSubscription, $types);
- $this->width = $width;
+ $this->requiresSubscription = $requiresSubscription;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\NewsArticle|string
*/
- public function getHeight()
+ public function getAssociatedArticle()
{
- return $this->height;
+ return $this->associatedArticle;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height
+ * @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 setHeight($height)
+ public function setAssociatedArticle($associatedArticle)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Distance",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\NewsArticle",
"string",
];
- $height = self::checkTypes($height, $types);
+ $associatedArticle = self::checkTypes($associatedArticle, $types);
- $this->height = $height;
+ $this->associatedArticle = $associatedArticle;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getRegionsAllowed()
+ public function getEncodesCreativeWork()
{
- return $this->regionsAllowed;
+ return $this->encodesCreativeWork;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $regionsAllowed
+ * @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 setRegionsAllowed($regionsAllowed)
+ public function setEncodesCreativeWork($encodesCreativeWork)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $regionsAllowed = self::checkTypes($regionsAllowed, $types);
+ $encodesCreativeWork = self::checkTypes($encodesCreativeWork, $types);
- $this->regionsAllowed = $regionsAllowed;
+ $this->encodesCreativeWork = $encodesCreativeWork;
}
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getStartTime()
+ public function getRegionsAllowed()
{
- return $this->startTime;
+ return $this->regionsAllowed;
}
/**
- * @param DateTime|string|null $startTime
+ * @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 setStartTime($startTime)
+ public function setRegionsAllowed($regionsAllowed)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "string",
];
- $startTime = self::checkTypes($startTime, $types);
+ $regionsAllowed = self::checkTypes($regionsAllowed, $types);
- $this->startTime = $startTime;
+ $this->regionsAllowed = $regionsAllowed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\NewsArticle|string
+ * @return string
*/
- public function getAssociatedArticle()
+ public function getBitrate()
{
- return $this->associatedArticle;
+ return $this->bitrate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\NewsArticle|string $associatedArticle
+ * @param string $bitrate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssociatedArticle($associatedArticle)
+ public function setBitrate($bitrate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\NewsArticle",
"string",
];
- $associatedArticle = self::checkTypes($associatedArticle, $types);
+ $bitrate = self::checkTypes($bitrate, $types);
- $this->associatedArticle = $associatedArticle;
+ $this->bitrate = $bitrate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @return DateTime|string|null
*/
- public function getIneligibleRegion()
+ public function getEndTime()
{
- return $this->ineligibleRegion;
+ return $this->endTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
+ * @param DateTime|string|null $endTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIneligibleRegion($ineligibleRegion)
+ public function setEndTime($endTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "string",
- "\OpenActive\Models\SchemaOrg\GeoShape",
+ "DateTime",
+ "Time",
+ "null",
];
- $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
+ $endTime = self::checkTypes($endTime, $types);
- $this->ineligibleRegion = $ineligibleRegion;
+ $this->endTime = $endTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
*/
- public function getRequiresSubscription()
+ public function getHeight()
{
- return $this->requiresSubscription;
+ return $this->height;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null $requiresSubscription
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $height
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRequiresSubscription($requiresSubscription)
+ public function setHeight($height)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaSubscription",
- "bool",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Distance",
"string",
- "null",
];
- $requiresSubscription = self::checkTypes($requiresSubscription, $types);
+ $height = self::checkTypes($height, $types);
- $this->requiresSubscription = $requiresSubscription;
+ $this->height = $height;
}
/**
@@ -461,103 +458,104 @@ public function setPlayerType($playerType)
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getEncodesCreativeWork()
+ public function getProductionCompany()
{
- return $this->encodesCreativeWork;
+ return $this->productionCompany;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $encodesCreativeWork
+ * @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 setEncodesCreativeWork($encodesCreativeWork)
+ public function setProductionCompany($productionCompany)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $encodesCreativeWork = self::checkTypes($encodesCreativeWork, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->encodesCreativeWork = $encodesCreativeWork;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return DateInterval|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- public function getDuration()
+ public function getIneligibleRegion()
{
- return $this->duration;
+ return $this->ineligibleRegion;
}
/**
- * @param DateInterval|string|null $duration
+ * @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 setDuration($duration)
+ public function setIneligibleRegion($ineligibleRegion)
{
$types = [
- "DateInterval",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
];
- $duration = self::checkTypes($duration, $types);
+ $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
- $this->duration = $duration;
+ $this->ineligibleRegion = $ineligibleRegion;
}
/**
* @return string
*/
- public function getEncodingFormat()
+ public function getSha256()
{
- return $this->encodingFormat;
+ return $this->sha256;
}
/**
- * @param string $encodingFormat
+ * @param string $sha256
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEncodingFormat($encodingFormat)
+ public function setSha256($sha256)
{
$types = [
"string",
];
- $encodingFormat = self::checkTypes($encodingFormat, $types);
+ $sha256 = self::checkTypes($sha256, $types);
- $this->encodingFormat = $encodingFormat;
+ $this->sha256 = $sha256;
}
/**
- * @return Date|null
+ * @return 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;
}
/**
@@ -585,102 +583,104 @@ public function setEmbedUrl($embedUrl)
}
/**
- * @return string
+ * @return DateInterval|string|null
*/
- public function getBitrate()
+ public function getDuration()
{
- return $this->bitrate;
+ return $this->duration;
}
/**
- * @param string $bitrate
+ * @param DateInterval|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBitrate($bitrate)
+ public function setDuration($duration)
{
$types = [
+ "DateInterval",
"string",
+ "null",
];
- $bitrate = self::checkTypes($bitrate, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->bitrate = $bitrate;
+ $this->duration = $duration;
}
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getEndTime()
+ public function getWidth()
{
- return $this->endTime;
+ return $this->width;
}
/**
- * @param DateTime|string|null $endTime
+ * @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 setEndTime($endTime)
+ public function setWidth($width)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\Distance",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
];
- $endTime = self::checkTypes($endTime, $types);
+ $width = self::checkTypes($width, $types);
- $this->endTime = $endTime;
+ $this->width = $width;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getProductionCompany()
+ public function getContentUrl()
{
- return $this->productionCompany;
+ return $this->contentUrl;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @param string $contentUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionCompany($productionCompany)
+ public function setContentUrl($contentUrl)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $contentUrl = self::checkTypes($contentUrl, $types);
- $this->productionCompany = $productionCompany;
+ $this->contentUrl = $contentUrl;
}
/**
- * @return string
+ * @return Date|null
*/
- public function getSha256()
+ public function getUploadDate()
{
- return $this->sha256;
+ return $this->uploadDate;
}
/**
- * @param string $sha256
+ * @param Date|null $uploadDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSha256($sha256)
+ public function setUploadDate($uploadDate)
{
$types = [
- "string",
+ "Date",
+ "null",
];
- $sha256 = self::checkTypes($sha256, $types);
+ $uploadDate = self::checkTypes($uploadDate, $types);
- $this->sha256 = $sha256;
+ $this->uploadDate = $uploadDate;
}
/**
diff --git a/src/Models/SchemaOrg/MediaReview.php b/src/Models/SchemaOrg/MediaReview.php
index f0f371ee..daf5151e 100644
--- a/src/Models/SchemaOrg/MediaReview.php
+++ b/src/Models/SchemaOrg/MediaReview.php
@@ -17,14 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "originalMediaLink" => "originalMediaLink",
"originalMediaContextDescription" => "originalMediaContextDescription",
"mediaAuthenticityCategory" => "mediaAuthenticityCategory",
- "originalMediaLink" => "originalMediaLink",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * Link to the page containing an original version of the content, or directly to an online copy of the original [[MediaObject]] content, e.g. video file.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\WebPage|string|\OpenActive\Models\SchemaOrg\MediaObject
+ */
+ protected $originalMediaLink;
+
/**
* Describes, in a [[MediaReview]] when dealing with [[DecontextualizedContent]], background information that can contribute to better interpretation of the [[MediaObject]].
*
@@ -42,12 +50,30 @@ public static function fieldList() {
protected $mediaAuthenticityCategory;
/**
- * Link to the page containing an original version of the content, or directly to an online copy of the original [[MediaObject]] content, e.g. video file.
- *
- *
- * @var string|\OpenActive\Models\SchemaOrg\MediaObject|\OpenActive\Models\SchemaOrg\WebPage
+ * @return \OpenActive\Models\SchemaOrg\WebPage|string|\OpenActive\Models\SchemaOrg\MediaObject
*/
- protected $originalMediaLink;
+ public function getOriginalMediaLink()
+ {
+ return $this->originalMediaLink;
+ }
+
+ /**
+ * @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 setOriginalMediaLink($originalMediaLink)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\WebPage",
+ "string",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
+ ];
+
+ $originalMediaLink = self::checkTypes($originalMediaLink, $types);
+
+ $this->originalMediaLink = $originalMediaLink;
+ }
/**
* @return string
@@ -98,30 +124,4 @@ public function setMediaAuthenticityCategory($mediaAuthenticityCategory)
$this->mediaAuthenticityCategory = $mediaAuthenticityCategory;
}
- /**
- * @return string|\OpenActive\Models\SchemaOrg\MediaObject|\OpenActive\Models\SchemaOrg\WebPage
- */
- public function getOriginalMediaLink()
- {
- return $this->originalMediaLink;
- }
-
- /**
- * @param string|\OpenActive\Models\SchemaOrg\MediaObject|\OpenActive\Models\SchemaOrg\WebPage $originalMediaLink
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setOriginalMediaLink($originalMediaLink)
- {
- $types = [
- "string",
- "\OpenActive\Models\SchemaOrg\MediaObject",
- "\OpenActive\Models\SchemaOrg\WebPage",
- ];
-
- $originalMediaLink = self::checkTypes($originalMediaLink, $types);
-
- $this->originalMediaLink = $originalMediaLink;
- }
-
}
diff --git a/src/Models/SchemaOrg/MedicalAudience.php b/src/Models/SchemaOrg/MedicalAudience.php
index 7dcae546..9fb0434c 100644
--- a/src/Models/SchemaOrg/MedicalAudience.php
+++ b/src/Models/SchemaOrg/MedicalAudience.php
@@ -5,7 +5,7 @@
/**
*
*/
-class MedicalAudience extends \OpenActive\Models\SchemaOrg\Audience
+class MedicalAudience extends \OpenActive\Models\SchemaOrg\PeopleAudience
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/MedicalClinic.php b/src/Models/SchemaOrg/MedicalClinic.php
index 9a1a5e33..003ec04c 100644
--- a/src/Models/SchemaOrg/MedicalClinic.php
+++ b/src/Models/SchemaOrg/MedicalClinic.php
@@ -5,7 +5,7 @@
/**
*
*/
-class MedicalClinic extends \OpenActive\Models\SchemaOrg\MedicalOrganization
+class MedicalClinic extends \OpenActive\Models\SchemaOrg\MedicalBusiness
{
/**
* @return string[]|null
@@ -28,7 +28,7 @@ public static function fieldList() {
* A medical service available from this provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTest|string
*/
protected $availableService;
@@ -41,7 +41,7 @@ public static function fieldList() {
protected $medicalSpecialty;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTest|string
*/
public function getAvailableService()
{
@@ -49,16 +49,16 @@ public function getAvailableService()
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string $availableService
+ * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTest|string $availableService
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAvailableService($availableService)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTest",
- "\OpenActive\Models\SchemaOrg\MedicalProcedure",
"\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\MedicalProcedure",
+ "\OpenActive\Models\SchemaOrg\MedicalTest",
"string",
];
diff --git a/src/Models/SchemaOrg/MedicalCode.php b/src/Models/SchemaOrg/MedicalCode.php
index 6a82a1c9..8d0d2be4 100644
--- a/src/Models/SchemaOrg/MedicalCode.php
+++ b/src/Models/SchemaOrg/MedicalCode.php
@@ -5,7 +5,7 @@
/**
*
*/
-class MedicalCode extends \OpenActive\Models\SchemaOrg\MedicalIntangible
+class MedicalCode extends \OpenActive\Models\SchemaOrg\CategoryCode
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/MedicalCondition.php b/src/Models/SchemaOrg/MedicalCondition.php
index 3c751533..cc459360 100644
--- a/src/Models/SchemaOrg/MedicalCondition.php
+++ b/src/Models/SchemaOrg/MedicalCondition.php
@@ -17,34 +17,34 @@ public static function getType()
public static function fieldList() {
$fields = [
- "possibleComplication" => "possibleComplication",
+ "signOrSymptom" => "signOrSymptom",
"naturalProgression" => "naturalProgression",
- "primaryPrevention" => "primaryPrevention",
+ "secondaryPrevention" => "secondaryPrevention",
+ "epidemiology" => "epidemiology",
+ "possibleTreatment" => "possibleTreatment",
+ "riskFactor" => "riskFactor",
"status" => "status",
- "differentialDiagnosis" => "differentialDiagnosis",
- "stage" => "stage",
"pathophysiology" => "pathophysiology",
+ "typicalTest" => "typicalTest",
+ "differentialDiagnosis" => "differentialDiagnosis",
"drug" => "drug",
- "secondaryPrevention" => "secondaryPrevention",
"associatedAnatomy" => "associatedAnatomy",
- "signOrSymptom" => "signOrSymptom",
- "typicalTest" => "typicalTest",
- "epidemiology" => "epidemiology",
- "riskFactor" => "riskFactor",
+ "possibleComplication" => "possibleComplication",
"expectedPrognosis" => "expectedPrognosis",
- "possibleTreatment" => "possibleTreatment",
+ "stage" => "stage",
+ "primaryPrevention" => "primaryPrevention",
];
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.
+ * A sign or symptom of this condition. Signs are objective or physically observable manifestations of the medical condition while symptoms are the subjective experience of the medical condition.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string
*/
- protected $possibleComplication;
+ protected $signOrSymptom;
/**
* The expected progression of the condition if it is not treated and allowed to progress naturally.
@@ -55,139 +55,140 @@ public static function fieldList() {
protected $naturalProgression;
/**
- * A preventative therapy used to prevent an initial occurrence of the medical condition, such as vaccination.
+ * A preventative therapy used to prevent reoccurrence of the medical condition after an initial episode of the condition.
*
*
* @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $primaryPrevention;
+ protected $secondaryPrevention;
/**
- * The status of the study (enumerated).
+ * The characteristics of associated patients, such as age, gender, race etc.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @var string
*/
- protected $status;
+ protected $epidemiology;
/**
- * 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 possible treatment to address this condition, sign or symptom.
*
*
- * @var \OpenActive\Models\SchemaOrg\DDxElement|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $differentialDiagnosis;
+ protected $possibleTreatment;
/**
- * The stage of the condition, if applicable.
+ * 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\MedicalConditionStage|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string
*/
- protected $stage;
+ protected $riskFactor;
/**
- * Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition.
+ * The status of the study (enumerated).
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null
*/
- protected $pathophysiology;
+ protected $status;
/**
- * Specifying a drug or medicine used in a medication procedure.
+ * Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition.
*
*
- * @var \OpenActive\Models\SchemaOrg\Drug|string
+ * @var string
*/
- protected $drug;
+ protected $pathophysiology;
/**
- * A preventative therapy used to prevent reoccurrence of the medical condition after an initial episode of the condition.
+ * A medical test typically performed given this condition.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTest|string
*/
- protected $secondaryPrevention;
+ protected $typicalTest;
/**
- * The anatomy of the underlying organ system or structures associated with this entity.
+ * One of a set of differential diagnoses for the condition. Specifically, a closely-related or competing diagnosis typically considered later in the cognitive process whereby this medical condition is distinguished from others most likely responsible for a similar collection of signs and symptoms to reach the most parsimonious diagnosis or diagnoses in a patient.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string
+ * @var \OpenActive\Models\SchemaOrg\DDxElement|string
*/
- protected $associatedAnatomy;
+ protected $differentialDiagnosis;
/**
- * 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.
+ * Specifying a drug or medicine used in a medication procedure.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string
+ * @var \OpenActive\Models\SchemaOrg\Drug|string
*/
- protected $signOrSymptom;
+ protected $drug;
/**
- * A medical test typically performed given this condition.
+ * The anatomy of the underlying organ system or structures associated with this entity.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTest|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
- protected $typicalTest;
+ protected $associatedAnatomy;
/**
- * The characteristics of associated patients, such as age, gender, race etc.
+ * A possible unexpected and unfavorable evolution of a medical condition. Complications may include worsening of the signs or symptoms of the disease, extension of the condition to other organ systems, etc.
*
*
* @var string
*/
- protected $epidemiology;
+ protected $possibleComplication;
/**
- * 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.
+ * The stage of the condition, if applicable.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalConditionStage|string
*/
- protected $expectedPrognosis;
+ protected $stage;
/**
- * A possible treatment to address this condition, sign or symptom.
+ * A preventative therapy used to prevent an initial occurrence of the medical condition, such as vaccination.
*
*
* @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $possibleTreatment;
+ protected $primaryPrevention;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string
*/
- public function getPossibleComplication()
+ public function getSignOrSymptom()
{
- return $this->possibleComplication;
+ return $this->signOrSymptom;
}
/**
- * @param string $possibleComplication
+ * @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 setPossibleComplication($possibleComplication)
+ public function setSignOrSymptom($signOrSymptom)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalSignOrSymptom",
"string",
];
- $possibleComplication = self::checkTypes($possibleComplication, $types);
+ $signOrSymptom = self::checkTypes($signOrSymptom, $types);
- $this->possibleComplication = $possibleComplication;
+ $this->signOrSymptom = $signOrSymptom;
}
/**
@@ -217,352 +218,351 @@ public function setNaturalProgression($naturalProgression)
/**
* @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getPrimaryPrevention()
+ public function getSecondaryPrevention()
{
- return $this->primaryPrevention;
+ return $this->secondaryPrevention;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $primaryPrevention
+ * @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 setPrimaryPrevention($primaryPrevention)
+ public function setSecondaryPrevention($secondaryPrevention)
{
$types = [
"\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $primaryPrevention = self::checkTypes($primaryPrevention, $types);
+ $secondaryPrevention = self::checkTypes($secondaryPrevention, $types);
- $this->primaryPrevention = $primaryPrevention;
+ $this->secondaryPrevention = $secondaryPrevention;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @return string
*/
- public function getStatus()
+ public function getEpidemiology()
{
- return $this->status;
+ return $this->epidemiology;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status
+ * @param string $epidemiology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStatus($status)
+ public function setEpidemiology($epidemiology)
{
$types = [
"string",
- "\OpenActive\Enums\SchemaOrg\EventStatusType",
- "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
- "null",
];
- $status = self::checkTypes($status, $types);
+ $epidemiology = self::checkTypes($epidemiology, $types);
- $this->status = $status;
+ $this->epidemiology = $epidemiology;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DDxElement|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getDifferentialDiagnosis()
+ public function getPossibleTreatment()
{
- return $this->differentialDiagnosis;
+ return $this->possibleTreatment;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DDxElement|string $differentialDiagnosis
+ * @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 setDifferentialDiagnosis($differentialDiagnosis)
+ public function setPossibleTreatment($possibleTreatment)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DDxElement",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $differentialDiagnosis = self::checkTypes($differentialDiagnosis, $types);
+ $possibleTreatment = self::checkTypes($possibleTreatment, $types);
- $this->differentialDiagnosis = $differentialDiagnosis;
+ $this->possibleTreatment = $possibleTreatment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalConditionStage|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string
*/
- public function getStage()
+ public function getRiskFactor()
{
- return $this->stage;
+ return $this->riskFactor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalConditionStage|string $stage
+ * @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 setStage($stage)
+ public function setRiskFactor($riskFactor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalConditionStage",
+ "\OpenActive\Models\SchemaOrg\MedicalRiskFactor",
"string",
];
- $stage = self::checkTypes($stage, $types);
+ $riskFactor = self::checkTypes($riskFactor, $types);
- $this->stage = $stage;
+ $this->riskFactor = $riskFactor;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null
*/
- public function getPathophysiology()
+ public function getStatus()
{
- return $this->pathophysiology;
+ return $this->status;
}
/**
- * @param string $pathophysiology
+ * @param \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null $status
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPathophysiology($pathophysiology)
+ public function setStatus($status)
{
$types = [
+ "\OpenActive\Enums\SchemaOrg\EventStatusType",
+ "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
"string",
+ "null",
];
- $pathophysiology = self::checkTypes($pathophysiology, $types);
+ $status = self::checkTypes($status, $types);
- $this->pathophysiology = $pathophysiology;
+ $this->status = $status;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Drug|string
+ * @return string
*/
- public function getDrug()
+ public function getPathophysiology()
{
- return $this->drug;
+ return $this->pathophysiology;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Drug|string $drug
+ * @param string $pathophysiology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDrug($drug)
+ public function setPathophysiology($pathophysiology)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Drug",
"string",
];
- $drug = self::checkTypes($drug, $types);
+ $pathophysiology = self::checkTypes($pathophysiology, $types);
- $this->drug = $drug;
+ $this->pathophysiology = $pathophysiology;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTest|string
*/
- public function getSecondaryPrevention()
+ public function getTypicalTest()
{
- return $this->secondaryPrevention;
+ return $this->typicalTest;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $secondaryPrevention
+ * @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 setSecondaryPrevention($secondaryPrevention)
+ public function setTypicalTest($typicalTest)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\MedicalTest",
"string",
];
- $secondaryPrevention = self::checkTypes($secondaryPrevention, $types);
+ $typicalTest = self::checkTypes($typicalTest, $types);
- $this->secondaryPrevention = $secondaryPrevention;
+ $this->typicalTest = $typicalTest;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string
+ * @return \OpenActive\Models\SchemaOrg\DDxElement|string
*/
- public function getAssociatedAnatomy()
+ public function getDifferentialDiagnosis()
{
- return $this->associatedAnatomy;
+ return $this->differentialDiagnosis;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string $associatedAnatomy
+ * @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 setAssociatedAnatomy($associatedAnatomy)
+ public function setDifferentialDiagnosis($differentialDiagnosis)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
- "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
- "\OpenActive\Models\SchemaOrg\SuperficialAnatomy",
+ "\OpenActive\Models\SchemaOrg\DDxElement",
"string",
];
- $associatedAnatomy = self::checkTypes($associatedAnatomy, $types);
+ $differentialDiagnosis = self::checkTypes($differentialDiagnosis, $types);
- $this->associatedAnatomy = $associatedAnatomy;
+ $this->differentialDiagnosis = $differentialDiagnosis;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string
+ * @return \OpenActive\Models\SchemaOrg\Drug|string
*/
- public function getSignOrSymptom()
+ public function getDrug()
{
- return $this->signOrSymptom;
+ return $this->drug;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string $signOrSymptom
+ * @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 setSignOrSymptom($signOrSymptom)
+ public function setDrug($drug)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalSignOrSymptom",
+ "\OpenActive\Models\SchemaOrg\Drug",
"string",
];
- $signOrSymptom = self::checkTypes($signOrSymptom, $types);
+ $drug = self::checkTypes($drug, $types);
- $this->signOrSymptom = $signOrSymptom;
+ $this->drug = $drug;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTest|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
- public function getTypicalTest()
+ public function getAssociatedAnatomy()
{
- return $this->typicalTest;
+ return $this->associatedAnatomy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTest|string $typicalTest
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $associatedAnatomy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTypicalTest($typicalTest)
+ public function setAssociatedAnatomy($associatedAnatomy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTest",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\SuperficialAnatomy",
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
"string",
];
- $typicalTest = self::checkTypes($typicalTest, $types);
+ $associatedAnatomy = self::checkTypes($associatedAnatomy, $types);
- $this->typicalTest = $typicalTest;
+ $this->associatedAnatomy = $associatedAnatomy;
}
/**
* @return string
*/
- public function getEpidemiology()
+ public function getPossibleComplication()
{
- return $this->epidemiology;
+ return $this->possibleComplication;
}
/**
- * @param string $epidemiology
+ * @param string $possibleComplication
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEpidemiology($epidemiology)
+ public function setPossibleComplication($possibleComplication)
{
$types = [
"string",
];
- $epidemiology = self::checkTypes($epidemiology, $types);
+ $possibleComplication = self::checkTypes($possibleComplication, $types);
- $this->epidemiology = $epidemiology;
+ $this->possibleComplication = $possibleComplication;
}
/**
- * @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\MedicalConditionStage|string
*/
- public function getExpectedPrognosis()
+ public function getStage()
{
- return $this->expectedPrognosis;
+ return $this->stage;
}
/**
- * @param string $expectedPrognosis
+ * @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 setExpectedPrognosis($expectedPrognosis)
+ public function setStage($stage)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalConditionStage",
"string",
];
- $expectedPrognosis = self::checkTypes($expectedPrognosis, $types);
+ $stage = self::checkTypes($stage, $types);
- $this->expectedPrognosis = $expectedPrognosis;
+ $this->stage = $stage;
}
/**
* @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getPossibleTreatment()
+ public function getPrimaryPrevention()
{
- return $this->possibleTreatment;
+ return $this->primaryPrevention;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $possibleTreatment
+ * @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 setPossibleTreatment($possibleTreatment)
+ public function setPrimaryPrevention($primaryPrevention)
{
$types = [
"\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $possibleTreatment = self::checkTypes($possibleTreatment, $types);
+ $primaryPrevention = self::checkTypes($primaryPrevention, $types);
- $this->possibleTreatment = $possibleTreatment;
+ $this->primaryPrevention = $primaryPrevention;
}
}
diff --git a/src/Models/SchemaOrg/MedicalDevice.php b/src/Models/SchemaOrg/MedicalDevice.php
index 31653148..1ef9c87a 100644
--- a/src/Models/SchemaOrg/MedicalDevice.php
+++ b/src/Models/SchemaOrg/MedicalDevice.php
@@ -17,24 +17,24 @@ public static function getType()
public static function fieldList() {
$fields = [
- "adverseOutcome" => "adverseOutcome",
- "preOp" => "preOp",
- "seriousAdverseOutcome" => "seriousAdverseOutcome",
"postOp" => "postOp",
- "procedure" => "procedure",
+ "preOp" => "preOp",
"contraindication" => "contraindication",
+ "procedure" => "procedure",
+ "seriousAdverseOutcome" => "seriousAdverseOutcome",
+ "adverseOutcome" => "adverseOutcome",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or is otherwise life-threatening or requires immediate medical attention), tag it as a seriouseAdverseOutcome instead.
+ * A 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.
@@ -45,60 +45,59 @@ public static function fieldList() {
protected $preOp;
/**
- * A possible serious complication and/or serious side effect of this therapy. Serious adverse outcomes include those that are life-threatening; result in death, disability, or permanent damage; require hospitalization or prolong existing hospitalization; cause congenital anomalies or birth defects; or jeopardize the patient and may require medical or surgical intervention to prevent one of the outcomes in this definition.
+ * A contraindication for this therapy.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @var string|\OpenActive\Models\SchemaOrg\MedicalContraindication
*/
- protected $seriousAdverseOutcome;
+ protected $contraindication;
/**
- * A description of the postoperative procedures, care, and/or followups for this device.
+ * A description of the procedure involved in setting up, using, and/or installing the device.
*
*
* @var string
*/
- protected $postOp;
+ protected $procedure;
/**
- * A description of the procedure involved in setting up, using, and/or installing the device.
+ * A possible serious complication and/or serious side effect of this therapy. Serious adverse outcomes include those that are life-threatening; result in death, disability, or permanent damage; require hospitalization or prolong existing hospitalization; cause congenital anomalies or birth defects; or jeopardize the patient and may require medical or surgical intervention to prevent one of the outcomes in this definition.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- protected $procedure;
+ protected $seriousAdverseOutcome;
/**
- * A contraindication for this therapy.
+ * A 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 string|\OpenActive\Models\SchemaOrg\MedicalContraindication
+ * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- protected $contraindication;
+ protected $adverseOutcome;
/**
- * @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;
}
/**
@@ -126,101 +125,102 @@ public function setPreOp($preOp)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @return string|\OpenActive\Models\SchemaOrg\MedicalContraindication
*/
- public function getSeriousAdverseOutcome()
+ public function getContraindication()
{
- return $this->seriousAdverseOutcome;
+ return $this->contraindication;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $seriousAdverseOutcome
+ * @param string|\OpenActive\Models\SchemaOrg\MedicalContraindication $contraindication
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSeriousAdverseOutcome($seriousAdverseOutcome)
+ public function setContraindication($contraindication)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
+ "\OpenActive\Models\SchemaOrg\MedicalContraindication",
];
- $seriousAdverseOutcome = self::checkTypes($seriousAdverseOutcome, $types);
+ $contraindication = self::checkTypes($contraindication, $types);
- $this->seriousAdverseOutcome = $seriousAdverseOutcome;
+ $this->contraindication = $contraindication;
}
/**
* @return string
*/
- public function getPostOp()
+ public function getProcedure()
{
- return $this->postOp;
+ return $this->procedure;
}
/**
- * @param string $postOp
+ * @param string $procedure
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostOp($postOp)
+ public function setProcedure($procedure)
{
$types = [
"string",
];
- $postOp = self::checkTypes($postOp, $types);
+ $procedure = self::checkTypes($procedure, $types);
- $this->postOp = $postOp;
+ $this->procedure = $procedure;
}
/**
- * @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\MedicalEntity|string
*/
- public function getContraindication()
+ public function getAdverseOutcome()
{
- return $this->contraindication;
+ return $this->adverseOutcome;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MedicalContraindication $contraindication
+ * @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 setContraindication($contraindication)
+ public function setAdverseOutcome($adverseOutcome)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
- "\OpenActive\Models\SchemaOrg\MedicalContraindication",
];
- $contraindication = self::checkTypes($contraindication, $types);
+ $adverseOutcome = self::checkTypes($adverseOutcome, $types);
- $this->contraindication = $contraindication;
+ $this->adverseOutcome = $adverseOutcome;
}
}
diff --git a/src/Models/SchemaOrg/MedicalEntity.php b/src/Models/SchemaOrg/MedicalEntity.php
index 3d730b94..14ba2e3b 100644
--- a/src/Models/SchemaOrg/MedicalEntity.php
+++ b/src/Models/SchemaOrg/MedicalEntity.php
@@ -17,283 +17,283 @@ public static function getType()
public static function fieldList() {
$fields = [
- "legalStatus" => "legalStatus",
- "funding" => "funding",
- "study" => "study",
"code" => "code",
- "guideline" => "guideline",
- "recognizingAuthority" => "recognizingAuthority",
"medicineSystem" => "medicineSystem",
+ "recognizingAuthority" => "recognizingAuthority",
+ "study" => "study",
"relevantSpecialty" => "relevantSpecialty",
+ "funding" => "funding",
+ "guideline" => "guideline",
+ "legalStatus" => "legalStatus",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The drug or supplement's legal status, including any controlled substance schedules that apply.
+ * A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\MedicalCode|string
*/
- protected $legalStatus;
+ protected $code;
/**
- * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
+ * The system of medicine that includes this MedicalEntity, for example 'evidence-based', 'homeopathic', 'chiropractic', etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Grant|string
+ * @var \OpenActive\Models\SchemaOrg\MedicineSystem|string
*/
- protected $funding;
+ protected $medicineSystem;
/**
- * A medical study or trial related to this entity.
+ * If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalStudy|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $study;
+ protected $recognizingAuthority;
/**
- * A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.
+ * A medical study or trial related to this entity.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalCode|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalStudy|string
*/
- protected $code;
+ protected $study;
/**
- * A medical guideline related to this entity.
+ * If applicable, a medical specialty in which this entity is relevant.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalGuideline|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- protected $guideline;
+ protected $relevantSpecialty;
/**
- * If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.
+ * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Grant|string
*/
- protected $recognizingAuthority;
+ protected $funding;
/**
- * The system of medicine that includes this MedicalEntity, for example 'evidence-based', 'homeopathic', 'chiropractic', etc.
+ * A medical guideline related to this entity.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicineSystem|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalGuideline|string
*/
- protected $medicineSystem;
+ protected $guideline;
/**
- * If applicable, a medical specialty in which this entity is relevant.
+ * The drug or supplement's legal status, including any controlled substance schedules that apply.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- protected $relevantSpecialty;
+ protected $legalStatus;
/**
- * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\MedicalCode|string
*/
- public function getLegalStatus()
+ public function getCode()
{
- return $this->legalStatus;
+ return $this->code;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $legalStatus
+ * @param \OpenActive\Models\SchemaOrg\MedicalCode|string $code
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegalStatus($legalStatus)
+ public function setCode($code)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
+ "\OpenActive\Models\SchemaOrg\MedicalCode",
"string",
- "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
- "null",
];
- $legalStatus = self::checkTypes($legalStatus, $types);
+ $code = self::checkTypes($code, $types);
- $this->legalStatus = $legalStatus;
+ $this->code = $code;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Grant|string
+ * @return \OpenActive\Models\SchemaOrg\MedicineSystem|string
*/
- public function getFunding()
+ public function getMedicineSystem()
{
- return $this->funding;
+ return $this->medicineSystem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Grant|string $funding
+ * @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 setFunding($funding)
+ public function setMedicineSystem($medicineSystem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Grant",
+ "\OpenActive\Models\SchemaOrg\MedicineSystem",
"string",
];
- $funding = self::checkTypes($funding, $types);
+ $medicineSystem = self::checkTypes($medicineSystem, $types);
- $this->funding = $funding;
+ $this->medicineSystem = $medicineSystem;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalStudy|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getStudy()
+ public function getRecognizingAuthority()
{
- return $this->study;
+ return $this->recognizingAuthority;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalStudy|string $study
+ * @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 setStudy($study)
+ public function setRecognizingAuthority($recognizingAuthority)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalStudy",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $study = self::checkTypes($study, $types);
+ $recognizingAuthority = self::checkTypes($recognizingAuthority, $types);
- $this->study = $study;
+ $this->recognizingAuthority = $recognizingAuthority;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalCode|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalStudy|string
*/
- public function getCode()
+ public function getStudy()
{
- return $this->code;
+ return $this->study;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalCode|string $code
+ * @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 setCode($code)
+ public function setStudy($study)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalCode",
+ "\OpenActive\Models\SchemaOrg\MedicalStudy",
"string",
];
- $code = self::checkTypes($code, $types);
+ $study = self::checkTypes($study, $types);
- $this->code = $code;
+ $this->study = $study;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalGuideline|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- public function getGuideline()
+ public function getRelevantSpecialty()
{
- return $this->guideline;
+ return $this->relevantSpecialty;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalGuideline|string $guideline
+ * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $relevantSpecialty
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGuideline($guideline)
+ public function setRelevantSpecialty($relevantSpecialty)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalGuideline",
+ "\OpenActive\Models\SchemaOrg\MedicalSpecialty",
"string",
];
- $guideline = self::checkTypes($guideline, $types);
+ $relevantSpecialty = self::checkTypes($relevantSpecialty, $types);
- $this->guideline = $guideline;
+ $this->relevantSpecialty = $relevantSpecialty;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Grant|string
*/
- public function getRecognizingAuthority()
+ public function getFunding()
{
- return $this->recognizingAuthority;
+ return $this->funding;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $recognizingAuthority
+ * @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 setRecognizingAuthority($recognizingAuthority)
+ public function setFunding($funding)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Grant",
"string",
];
- $recognizingAuthority = self::checkTypes($recognizingAuthority, $types);
+ $funding = self::checkTypes($funding, $types);
- $this->recognizingAuthority = $recognizingAuthority;
+ $this->funding = $funding;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicineSystem|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalGuideline|string
*/
- public function getMedicineSystem()
+ public function getGuideline()
{
- return $this->medicineSystem;
+ return $this->guideline;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicineSystem|string $medicineSystem
+ * @param \OpenActive\Models\SchemaOrg\MedicalGuideline|string $guideline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMedicineSystem($medicineSystem)
+ public function setGuideline($guideline)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicineSystem",
+ "\OpenActive\Models\SchemaOrg\MedicalGuideline",
"string",
];
- $medicineSystem = self::checkTypes($medicineSystem, $types);
+ $guideline = self::checkTypes($guideline, $types);
- $this->medicineSystem = $medicineSystem;
+ $this->guideline = $guideline;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- public function getRelevantSpecialty()
+ public function getLegalStatus()
{
- return $this->relevantSpecialty;
+ return $this->legalStatus;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $relevantSpecialty
+ * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null $legalStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRelevantSpecialty($relevantSpecialty)
+ public function setLegalStatus($legalStatus)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalSpecialty",
+ "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
+ "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
"string",
+ "null",
];
- $relevantSpecialty = self::checkTypes($relevantSpecialty, $types);
+ $legalStatus = self::checkTypes($legalStatus, $types);
- $this->relevantSpecialty = $relevantSpecialty;
+ $this->legalStatus = $legalStatus;
}
}
diff --git a/src/Models/SchemaOrg/MedicalGuideline.php b/src/Models/SchemaOrg/MedicalGuideline.php
index 63d3aa89..4b9ad77d 100644
--- a/src/Models/SchemaOrg/MedicalGuideline.php
+++ b/src/Models/SchemaOrg/MedicalGuideline.php
@@ -17,15 +17,23 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "guidelineSubject" => "guidelineSubject",
"evidenceLevel" => "evidenceLevel",
"evidenceOrigin" => "evidenceOrigin",
- "guidelineSubject" => "guidelineSubject",
"guidelineDate" => "guidelineDate",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The medical conditions, treatments, etc. that are the subject of the guideline.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ */
+ protected $guidelineSubject;
+
/**
* Strength of evidence of the data used to formulate the guideline (enumerated).
*
@@ -42,14 +50,6 @@ public static function fieldList() {
*/
protected $evidenceOrigin;
- /**
- * The medical conditions, treatments, etc. that are the subject of the guideline.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
- */
- protected $guidelineSubject;
-
/**
* Date on which this guideline's recommendation was made.
*
@@ -59,77 +59,77 @@ public static function fieldList() {
protected $guidelineDate;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- public function getEvidenceLevel()
+ public function getGuidelineSubject()
{
- return $this->evidenceLevel;
+ return $this->guidelineSubject;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string $evidenceLevel
+ * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $guidelineSubject
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEvidenceLevel($evidenceLevel)
+ public function setGuidelineSubject($guidelineSubject)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEvidenceLevel",
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
];
- $evidenceLevel = self::checkTypes($evidenceLevel, $types);
+ $guidelineSubject = self::checkTypes($guidelineSubject, $types);
- $this->evidenceLevel = $evidenceLevel;
+ $this->guidelineSubject = $guidelineSubject;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string
*/
- public function getEvidenceOrigin()
+ public function getEvidenceLevel()
{
- return $this->evidenceOrigin;
+ return $this->evidenceLevel;
}
/**
- * @param string $evidenceOrigin
+ * @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 setEvidenceOrigin($evidenceOrigin)
+ public function setEvidenceLevel($evidenceLevel)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalEvidenceLevel",
"string",
];
- $evidenceOrigin = self::checkTypes($evidenceOrigin, $types);
+ $evidenceLevel = self::checkTypes($evidenceLevel, $types);
- $this->evidenceOrigin = $evidenceOrigin;
+ $this->evidenceLevel = $evidenceLevel;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @return string
*/
- public function getGuidelineSubject()
+ public function getEvidenceOrigin()
{
- return $this->guidelineSubject;
+ return $this->evidenceOrigin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $guidelineSubject
+ * @param string $evidenceOrigin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGuidelineSubject($guidelineSubject)
+ public function setEvidenceOrigin($evidenceOrigin)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
];
- $guidelineSubject = self::checkTypes($guidelineSubject, $types);
+ $evidenceOrigin = self::checkTypes($evidenceOrigin, $types);
- $this->guidelineSubject = $guidelineSubject;
+ $this->evidenceOrigin = $evidenceOrigin;
}
/**
diff --git a/src/Models/SchemaOrg/MedicalOrganization.php b/src/Models/SchemaOrg/MedicalOrganization.php
index f726aab1..70b3a3e3 100644
--- a/src/Models/SchemaOrg/MedicalOrganization.php
+++ b/src/Models/SchemaOrg/MedicalOrganization.php
@@ -17,24 +17,24 @@ public static function getType()
public static function fieldList() {
$fields = [
- "isAcceptingNewPatients" => "isAcceptingNewPatients",
- "healthPlanNetworkId" => "healthPlanNetworkId",
"medicalSpecialty" => "medicalSpecialty",
+ "healthPlanNetworkId" => "healthPlanNetworkId",
+ "isAcceptingNewPatients" => "isAcceptingNewPatients",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Whether the provider is accepting new patients.
+ * A medical specialty of the provider.
*
*
- * @var bool|null
+ * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- protected $isAcceptingNewPatients;
+ protected $medicalSpecialty;
/**
- * 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,36 +42,36 @@ public static function fieldList() {
protected $healthPlanNetworkId;
/**
- * A medical specialty of the provider.
+ * Whether the provider is accepting new patients.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ * @var bool|null
*/
- protected $medicalSpecialty;
+ protected $isAcceptingNewPatients;
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- public function getIsAcceptingNewPatients()
+ public function getMedicalSpecialty()
{
- return $this->isAcceptingNewPatients;
+ return $this->medicalSpecialty;
}
/**
- * @param bool|null $isAcceptingNewPatients
+ * @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 setIsAcceptingNewPatients($isAcceptingNewPatients)
+ public function setMedicalSpecialty($medicalSpecialty)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\MedicalSpecialty",
+ "string",
];
- $isAcceptingNewPatients = self::checkTypes($isAcceptingNewPatients, $types);
+ $medicalSpecialty = self::checkTypes($medicalSpecialty, $types);
- $this->isAcceptingNewPatients = $isAcceptingNewPatients;
+ $this->medicalSpecialty = $medicalSpecialty;
}
/**
@@ -99,28 +99,28 @@ public function setHealthPlanNetworkId($healthPlanNetworkId)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ * @return bool|null
*/
- public function getMedicalSpecialty()
+ public function getIsAcceptingNewPatients()
{
- return $this->medicalSpecialty;
+ return $this->isAcceptingNewPatients;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $medicalSpecialty
+ * @param bool|null $isAcceptingNewPatients
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMedicalSpecialty($medicalSpecialty)
+ public function setIsAcceptingNewPatients($isAcceptingNewPatients)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalSpecialty",
- "string",
+ "bool",
+ "null",
];
- $medicalSpecialty = self::checkTypes($medicalSpecialty, $types);
+ $isAcceptingNewPatients = self::checkTypes($isAcceptingNewPatients, $types);
- $this->medicalSpecialty = $medicalSpecialty;
+ $this->isAcceptingNewPatients = $isAcceptingNewPatients;
}
}
diff --git a/src/Models/SchemaOrg/MedicalProcedure.php b/src/Models/SchemaOrg/MedicalProcedure.php
index e92c5117..1ba1e5f0 100644
--- a/src/Models/SchemaOrg/MedicalProcedure.php
+++ b/src/Models/SchemaOrg/MedicalProcedure.php
@@ -17,141 +17,140 @@ public static function getType()
public static function fieldList() {
$fields = [
- "procedureType" => "procedureType",
- "preparation" => "preparation",
"bodyLocation" => "bodyLocation",
- "status" => "status",
"howPerformed" => "howPerformed",
+ "procedureType" => "procedureType",
+ "status" => "status",
"followup" => "followup",
+ "preparation" => "preparation",
];
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.
+ * How the procedure is performed.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @var string
*/
- protected $preparation;
+ protected $howPerformed;
/**
- * Location in the body of the anatomical structure.
+ * The type of procedure, for example Surgical, Noninvasive, or Percutaneous.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalProcedureType|string
*/
- protected $bodyLocation;
+ protected $procedureType;
/**
* The status of the study (enumerated).
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @var \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null
*/
protected $status;
/**
- * How the procedure is performed.
+ * Typical or recommended followup care after the procedure is performed.
*
*
* @var string
*/
- protected $howPerformed;
+ protected $followup;
/**
- * Typical or recommended followup care after the procedure is performed.
+ * Typical preparation that a patient must undergo before having the procedure performed.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\MedicalEntity
*/
- protected $followup;
+ protected $preparation;
/**
- * @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 getHowPerformed()
{
- return $this->preparation;
+ return $this->howPerformed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $preparation
+ * @param string $howPerformed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPreparation($preparation)
+ public function setHowPerformed($howPerformed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
];
- $preparation = self::checkTypes($preparation, $types);
+ $howPerformed = self::checkTypes($howPerformed, $types);
- $this->preparation = $preparation;
+ $this->howPerformed = $howPerformed;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalProcedureType|string
*/
- public function getBodyLocation()
+ public function getProcedureType()
{
- return $this->bodyLocation;
+ return $this->procedureType;
}
/**
- * @param string $bodyLocation
+ * @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 setBodyLocation($bodyLocation)
+ public function setProcedureType($procedureType)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalProcedureType",
"string",
];
- $bodyLocation = self::checkTypes($bodyLocation, $types);
+ $procedureType = self::checkTypes($procedureType, $types);
- $this->bodyLocation = $bodyLocation;
+ $this->procedureType = $procedureType;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @return \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null
*/
public function getStatus()
{
@@ -159,16 +158,16 @@ public function getStatus()
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status
+ * @param \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null $status
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setStatus($status)
{
$types = [
- "string",
"\OpenActive\Enums\SchemaOrg\EventStatusType",
"\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
+ "string",
"null",
];
@@ -180,49 +179,50 @@ public function setStatus($status)
/**
* @return string
*/
- public function getHowPerformed()
+ public function getFollowup()
{
- return $this->howPerformed;
+ return $this->followup;
}
/**
- * @param string $howPerformed
+ * @param string $followup
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHowPerformed($howPerformed)
+ public function setFollowup($followup)
{
$types = [
"string",
];
- $howPerformed = self::checkTypes($howPerformed, $types);
+ $followup = self::checkTypes($followup, $types);
- $this->howPerformed = $howPerformed;
+ $this->followup = $followup;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\MedicalEntity
*/
- public function getFollowup()
+ public function getPreparation()
{
- return $this->followup;
+ return $this->preparation;
}
/**
- * @param string $followup
+ * @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 setFollowup($followup)
+ public function setPreparation($preparation)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
];
- $followup = self::checkTypes($followup, $types);
+ $preparation = self::checkTypes($preparation, $types);
- $this->followup = $followup;
+ $this->preparation = $preparation;
}
}
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..3c678bb7 100644
--- a/src/Models/SchemaOrg/MedicalStudy.php
+++ b/src/Models/SchemaOrg/MedicalStudy.php
@@ -17,182 +17,182 @@ public static function getType()
public static function fieldList() {
$fields = [
- "healthCondition" => "healthCondition",
- "status" => "status",
"studySubject" => "studySubject",
"studyLocation" => "studyLocation",
+ "status" => "status",
"sponsor" => "sponsor",
+ "healthCondition" => "healthCondition",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Specifying the health condition(s) of a patient, medical study, or other target audience.
+ * A subject of the study, i.e. one of the medical conditions, therapies, devices, drugs, etc. investigated by the study.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- protected $healthCondition;
+ protected $studySubject;
/**
- * The status of the study (enumerated).
+ * The location in which the study is taking/took place.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $status;
+ protected $studyLocation;
/**
- * A subject of the study, i.e. one of the medical conditions, therapies, devices, drugs, etc. investigated by the study.
+ * The status of the study (enumerated).
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @var \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null
*/
- protected $studySubject;
+ protected $status;
/**
- * The location in which the study is taking/took place.
+ * 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\AdministrativeArea|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $studyLocation;
+ protected $sponsor;
/**
- * 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.
+ * Specifying the health condition(s) of a patient, medical study, or other target audience.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- protected $sponsor;
+ protected $healthCondition;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- public function getHealthCondition()
+ public function getStudySubject()
{
- return $this->healthCondition;
+ return $this->studySubject;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $healthCondition
+ * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $studySubject
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthCondition($healthCondition)
+ public function setStudySubject($studySubject)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalCondition",
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
];
- $healthCondition = self::checkTypes($healthCondition, $types);
+ $studySubject = self::checkTypes($studySubject, $types);
- $this->healthCondition = $healthCondition;
+ $this->studySubject = $studySubject;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getStatus()
+ public function getStudyLocation()
{
- return $this->status;
+ return $this->studyLocation;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status
+ * @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 setStatus($status)
+ public function setStudyLocation($studyLocation)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
- "\OpenActive\Enums\SchemaOrg\EventStatusType",
- "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
- "null",
];
- $status = self::checkTypes($status, $types);
+ $studyLocation = self::checkTypes($studyLocation, $types);
- $this->status = $status;
+ $this->studyLocation = $studyLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @return \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null
*/
- public function getStudySubject()
+ public function getStatus()
{
- return $this->studySubject;
+ return $this->status;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $studySubject
+ * @param \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null $status
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStudySubject($studySubject)
+ public function setStatus($status)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
+ "\OpenActive\Enums\SchemaOrg\EventStatusType",
+ "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
"string",
+ "null",
];
- $studySubject = self::checkTypes($studySubject, $types);
+ $status = self::checkTypes($status, $types);
- $this->studySubject = $studySubject;
+ $this->status = $status;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getStudyLocation()
+ public function getSponsor()
{
- return $this->studyLocation;
+ return $this->sponsor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $studyLocation
+ * @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 setStudyLocation($studyLocation)
+ public function setSponsor($sponsor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $studyLocation = self::checkTypes($studyLocation, $types);
+ $sponsor = self::checkTypes($sponsor, $types);
- $this->studyLocation = $studyLocation;
+ $this->sponsor = $sponsor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- public function getSponsor()
+ public function getHealthCondition()
{
- return $this->sponsor;
+ return $this->healthCondition;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
+ * @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 setSponsor($sponsor)
+ public function setHealthCondition($healthCondition)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MedicalCondition",
"string",
];
- $sponsor = self::checkTypes($sponsor, $types);
+ $healthCondition = self::checkTypes($healthCondition, $types);
- $this->sponsor = $sponsor;
+ $this->healthCondition = $healthCondition;
}
}
diff --git a/src/Models/SchemaOrg/MedicalTest.php b/src/Models/SchemaOrg/MedicalTest.php
index 76a74b88..255fc981 100644
--- a/src/Models/SchemaOrg/MedicalTest.php
+++ b/src/Models/SchemaOrg/MedicalTest.php
@@ -18,10 +18,10 @@ public static function getType()
public static function fieldList() {
$fields = [
"usedToDiagnose" => "usedToDiagnose",
- "affectedBy" => "affectedBy",
- "normalRange" => "normalRange",
"signDetected" => "signDetected",
"usesDevice" => "usesDevice",
+ "normalRange" => "normalRange",
+ "affectedBy" => "affectedBy",
];
return array_merge(parent::fieldList(), $fields);
@@ -36,36 +36,36 @@ public static function fieldList() {
protected $usedToDiagnose;
/**
- * Drugs that affect the test's results.
+ * A sign detected by the test.
*
*
- * @var \OpenActive\Models\SchemaOrg\Drug|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalSign|string
*/
- protected $affectedBy;
+ protected $signDetected;
/**
- * Range of acceptable values for a typical patient, when applicable.
+ * 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.
+ * Range of acceptable values for a typical patient, when applicable.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalSign|string
+ * @var \OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- protected $signDetected;
+ protected $normalRange;
/**
- * 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
@@ -93,104 +93,104 @@ public function setUsedToDiagnose($usedToDiagnose)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Drug|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalSign|string
*/
- public function getAffectedBy()
+ public function getSignDetected()
{
- return $this->affectedBy;
+ return $this->signDetected;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Drug|string $affectedBy
+ * @param \OpenActive\Models\SchemaOrg\MedicalSign|string $signDetected
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAffectedBy($affectedBy)
+ public function setSignDetected($signDetected)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Drug",
+ "\OpenActive\Models\SchemaOrg\MedicalSign",
"string",
];
- $affectedBy = self::checkTypes($affectedBy, $types);
+ $signDetected = self::checkTypes($signDetected, $types);
- $this->affectedBy = $affectedBy;
+ $this->signDetected = $signDetected;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\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;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalSign|string
+ * @return \OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- public function getSignDetected()
+ public function getNormalRange()
{
- return $this->signDetected;
+ return $this->normalRange;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalSign|string $signDetected
+ * @param \OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null $normalRange
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSignDetected($signDetected)
+ public function setNormalRange($normalRange)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalSign",
+ "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
"string",
+ "null",
];
- $signDetected = self::checkTypes($signDetected, $types);
+ $normalRange = self::checkTypes($normalRange, $types);
- $this->signDetected = $signDetected;
+ $this->normalRange = $normalRange;
}
/**
- * @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..0a4d1749 100644
--- a/src/Models/SchemaOrg/MedicalTherapy.php
+++ b/src/Models/SchemaOrg/MedicalTherapy.php
@@ -17,14 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "contraindication" => "contraindication",
"duplicateTherapy" => "duplicateTherapy",
"seriousAdverseOutcome" => "seriousAdverseOutcome",
- "contraindication" => "contraindication",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * A contraindication for this therapy.
+ *
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\MedicalContraindication
+ */
+ protected $contraindication;
+
/**
* A therapy that duplicates or overlaps this one.
*
@@ -42,12 +50,29 @@ public static function fieldList() {
protected $seriousAdverseOutcome;
/**
- * A contraindication for this therapy.
- *
- *
- * @var string|\OpenActive\Models\SchemaOrg\MedicalContraindication
+ * @return string|\OpenActive\Models\SchemaOrg\MedicalContraindication
*/
- protected $contraindication;
+ public function getContraindication()
+ {
+ return $this->contraindication;
+ }
+
+ /**
+ * @param string|\OpenActive\Models\SchemaOrg\MedicalContraindication $contraindication
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setContraindication($contraindication)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Models\SchemaOrg\MedicalContraindication",
+ ];
+
+ $contraindication = self::checkTypes($contraindication, $types);
+
+ $this->contraindication = $contraindication;
+ }
/**
* @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
@@ -99,29 +124,4 @@ public function setSeriousAdverseOutcome($seriousAdverseOutcome)
$this->seriousAdverseOutcome = $seriousAdverseOutcome;
}
- /**
- * @return string|\OpenActive\Models\SchemaOrg\MedicalContraindication
- */
- public function getContraindication()
- {
- return $this->contraindication;
- }
-
- /**
- * @param string|\OpenActive\Models\SchemaOrg\MedicalContraindication $contraindication
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setContraindication($contraindication)
- {
- $types = [
- "string",
- "\OpenActive\Models\SchemaOrg\MedicalContraindication",
- ];
-
- $contraindication = self::checkTypes($contraindication, $types);
-
- $this->contraindication = $contraindication;
- }
-
}
diff --git a/src/Models/SchemaOrg/MedicalWebPage.php b/src/Models/SchemaOrg/MedicalWebPage.php
index ae5b9502..80a11499 100644
--- a/src/Models/SchemaOrg/MedicalWebPage.php
+++ b/src/Models/SchemaOrg/MedicalWebPage.php
@@ -36,7 +36,7 @@ public static function fieldList() {
* Medical audience for page.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalAudience|\OpenActive\Models\SchemaOrg\MedicalAudienceType|string
*/
protected $medicalAudience;
@@ -65,7 +65,7 @@ public function setAspect($aspect)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalAudience|\OpenActive\Models\SchemaOrg\MedicalAudienceType|string
*/
public function getMedicalAudience()
{
@@ -73,15 +73,15 @@ public function getMedicalAudience()
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string $medicalAudience
+ * @param \OpenActive\Models\SchemaOrg\MedicalAudience|\OpenActive\Models\SchemaOrg\MedicalAudienceType|string $medicalAudience
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setMedicalAudience($medicalAudience)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalAudienceType",
"\OpenActive\Models\SchemaOrg\MedicalAudience",
+ "\OpenActive\Models\SchemaOrg\MedicalAudienceType",
"string",
];
diff --git a/src/Models/SchemaOrg/Menu.php b/src/Models/SchemaOrg/Menu.php
index 6253ba92..f7938999 100644
--- a/src/Models/SchemaOrg/Menu.php
+++ b/src/Models/SchemaOrg/Menu.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "hasMenuSection" => "hasMenuSection",
"hasMenuItem" => "hasMenuItem",
+ "hasMenuSection" => "hasMenuSection",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A subgrouping of the menu (by dishes, course, serving time period, etc.).
+ * A food or drink item contained in a menu or menu section.
*
*
- * @var \OpenActive\Models\SchemaOrg\MenuSection|string
+ * @var \OpenActive\Models\SchemaOrg\MenuItem|string
*/
- protected $hasMenuSection;
+ protected $hasMenuItem;
/**
- * A food or drink item contained in a menu or menu section.
+ * A subgrouping of the menu (by dishes, course, serving time period, etc.).
*
*
- * @var \OpenActive\Models\SchemaOrg\MenuItem|string
+ * @var \OpenActive\Models\SchemaOrg\MenuSection|string
*/
- protected $hasMenuItem;
+ protected $hasMenuSection;
/**
- * @return \OpenActive\Models\SchemaOrg\MenuSection|string
+ * @return \OpenActive\Models\SchemaOrg\MenuItem|string
*/
- public function getHasMenuSection()
+ public function getHasMenuItem()
{
- return $this->hasMenuSection;
+ return $this->hasMenuItem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MenuSection|string $hasMenuSection
+ * @param \OpenActive\Models\SchemaOrg\MenuItem|string $hasMenuItem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMenuSection($hasMenuSection)
+ public function setHasMenuItem($hasMenuItem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MenuSection",
+ "\OpenActive\Models\SchemaOrg\MenuItem",
"string",
];
- $hasMenuSection = self::checkTypes($hasMenuSection, $types);
+ $hasMenuItem = self::checkTypes($hasMenuItem, $types);
- $this->hasMenuSection = $hasMenuSection;
+ $this->hasMenuItem = $hasMenuItem;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MenuItem|string
+ * @return \OpenActive\Models\SchemaOrg\MenuSection|string
*/
- public function getHasMenuItem()
+ public function getHasMenuSection()
{
- return $this->hasMenuItem;
+ return $this->hasMenuSection;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MenuItem|string $hasMenuItem
+ * @param \OpenActive\Models\SchemaOrg\MenuSection|string $hasMenuSection
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMenuItem($hasMenuItem)
+ public function setHasMenuSection($hasMenuSection)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MenuItem",
+ "\OpenActive\Models\SchemaOrg\MenuSection",
"string",
];
- $hasMenuItem = self::checkTypes($hasMenuItem, $types);
+ $hasMenuSection = self::checkTypes($hasMenuSection, $types);
- $this->hasMenuItem = $hasMenuItem;
+ $this->hasMenuSection = $hasMenuSection;
}
}
diff --git a/src/Models/SchemaOrg/MenuItem.php b/src/Models/SchemaOrg/MenuItem.php
index 1dc921ac..773a046c 100644
--- a/src/Models/SchemaOrg/MenuItem.php
+++ b/src/Models/SchemaOrg/MenuItem.php
@@ -17,39 +17,31 @@ public static function getType()
public static function fieldList() {
$fields = [
- "menuAddOn" => "menuAddOn",
"offers" => "offers",
- "suitableForDiet" => "suitableForDiet",
+ "menuAddOn" => "menuAddOn",
"nutrition" => "nutrition",
+ "suitableForDiet" => "suitableForDiet",
];
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.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\MenuSection|string
- */
- protected $menuAddOn;
-
/**
* An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
*
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
protected $offers;
/**
- * Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc.
+ * 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\Enums\SchemaOrg\RestrictedDiet|null
+ * @var \OpenActive\Models\SchemaOrg\MenuSection|\OpenActive\Models\SchemaOrg\MenuItem|string
*/
- protected $suitableForDiet;
+ protected $menuAddOn;
/**
* Nutrition information about the recipe or menu item.
@@ -60,33 +52,15 @@ public static function fieldList() {
protected $nutrition;
/**
- * @return \OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\MenuSection|string
- */
- public function getMenuAddOn()
- {
- return $this->menuAddOn;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\MenuSection|string $menuAddOn
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc.
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\RestrictedDiet|null
*/
- public function setMenuAddOn($menuAddOn)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\MenuItem",
- "\OpenActive\Models\SchemaOrg\MenuSection",
- "string",
- ];
-
- $menuAddOn = self::checkTypes($menuAddOn, $types);
-
- $this->menuAddOn = $menuAddOn;
- }
+ protected $suitableForDiet;
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
public function getOffers()
{
@@ -94,15 +68,15 @@ public function getOffers()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @param \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string $offers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setOffers($offers)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
"\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\Offer",
"string",
];
@@ -112,28 +86,29 @@ public function setOffers($offers)
}
/**
- * @return \OpenActive\Enums\SchemaOrg\RestrictedDiet|null
+ * @return \OpenActive\Models\SchemaOrg\MenuSection|\OpenActive\Models\SchemaOrg\MenuItem|string
*/
- public function getSuitableForDiet()
+ public function getMenuAddOn()
{
- return $this->suitableForDiet;
+ return $this->menuAddOn;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\RestrictedDiet|null $suitableForDiet
+ * @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 setSuitableForDiet($suitableForDiet)
+ public function setMenuAddOn($menuAddOn)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\RestrictedDiet",
- "null",
+ "\OpenActive\Models\SchemaOrg\MenuSection",
+ "\OpenActive\Models\SchemaOrg\MenuItem",
+ "string",
];
- $suitableForDiet = self::checkTypes($suitableForDiet, $types);
+ $menuAddOn = self::checkTypes($menuAddOn, $types);
- $this->suitableForDiet = $suitableForDiet;
+ $this->menuAddOn = $menuAddOn;
}
/**
@@ -161,4 +136,29 @@ public function setNutrition($nutrition)
$this->nutrition = $nutrition;
}
+ /**
+ * @return \OpenActive\Enums\SchemaOrg\RestrictedDiet|null
+ */
+ public function getSuitableForDiet()
+ {
+ return $this->suitableForDiet;
+ }
+
+ /**
+ * @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 setSuitableForDiet($suitableForDiet)
+ {
+ $types = [
+ "\OpenActive\Enums\SchemaOrg\RestrictedDiet",
+ "null",
+ ];
+
+ $suitableForDiet = self::checkTypes($suitableForDiet, $types);
+
+ $this->suitableForDiet = $suitableForDiet;
+ }
+
}
diff --git a/src/Models/SchemaOrg/MenuSection.php b/src/Models/SchemaOrg/MenuSection.php
index d96ae4c7..4df9a52c 100644
--- a/src/Models/SchemaOrg/MenuSection.php
+++ b/src/Models/SchemaOrg/MenuSection.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "hasMenuSection" => "hasMenuSection",
"hasMenuItem" => "hasMenuItem",
+ "hasMenuSection" => "hasMenuSection",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A subgrouping of the menu (by dishes, course, serving time period, etc.).
+ * A food or drink item contained in a menu or menu section.
*
*
- * @var \OpenActive\Models\SchemaOrg\MenuSection|string
+ * @var \OpenActive\Models\SchemaOrg\MenuItem|string
*/
- protected $hasMenuSection;
+ protected $hasMenuItem;
/**
- * A food or drink item contained in a menu or menu section.
+ * A subgrouping of the menu (by dishes, course, serving time period, etc.).
*
*
- * @var \OpenActive\Models\SchemaOrg\MenuItem|string
+ * @var \OpenActive\Models\SchemaOrg\MenuSection|string
*/
- protected $hasMenuItem;
+ protected $hasMenuSection;
/**
- * @return \OpenActive\Models\SchemaOrg\MenuSection|string
+ * @return \OpenActive\Models\SchemaOrg\MenuItem|string
*/
- public function getHasMenuSection()
+ public function getHasMenuItem()
{
- return $this->hasMenuSection;
+ return $this->hasMenuItem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MenuSection|string $hasMenuSection
+ * @param \OpenActive\Models\SchemaOrg\MenuItem|string $hasMenuItem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMenuSection($hasMenuSection)
+ public function setHasMenuItem($hasMenuItem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MenuSection",
+ "\OpenActive\Models\SchemaOrg\MenuItem",
"string",
];
- $hasMenuSection = self::checkTypes($hasMenuSection, $types);
+ $hasMenuItem = self::checkTypes($hasMenuItem, $types);
- $this->hasMenuSection = $hasMenuSection;
+ $this->hasMenuItem = $hasMenuItem;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MenuItem|string
+ * @return \OpenActive\Models\SchemaOrg\MenuSection|string
*/
- public function getHasMenuItem()
+ public function getHasMenuSection()
{
- return $this->hasMenuItem;
+ return $this->hasMenuSection;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MenuItem|string $hasMenuItem
+ * @param \OpenActive\Models\SchemaOrg\MenuSection|string $hasMenuSection
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMenuItem($hasMenuItem)
+ public function setHasMenuSection($hasMenuSection)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MenuItem",
+ "\OpenActive\Models\SchemaOrg\MenuSection",
"string",
];
- $hasMenuItem = self::checkTypes($hasMenuItem, $types);
+ $hasMenuSection = self::checkTypes($hasMenuSection, $types);
- $this->hasMenuItem = $hasMenuItem;
+ $this->hasMenuSection = $hasMenuSection;
}
}
diff --git a/src/Models/SchemaOrg/MerchantReturnPolicy.php b/src/Models/SchemaOrg/MerchantReturnPolicy.php
index e57e8719..9a707b48 100644
--- a/src/Models/SchemaOrg/MerchantReturnPolicy.php
+++ b/src/Models/SchemaOrg/MerchantReturnPolicy.php
@@ -17,47 +17,47 @@ 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",
+ "merchantReturnLink" => "merchantReturnLink",
+ "returnPolicyCategory" => "returnPolicyCategory",
"returnMethod" => "returnMethod",
+ "itemDefectReturnFees" => "itemDefectReturnFees",
+ "merchantReturnDays" => "merchantReturnDays",
"additionalProperty" => "additionalProperty",
- "customerRemorseReturnLabelSource" => "customerRemorseReturnLabelSource",
+ "refundType" => "refundType",
+ "returnLabelSource" => "returnLabelSource",
"customerRemorseReturnFees" => "customerRemorseReturnFees",
- "returnPolicySeasonalOverride" => "returnPolicySeasonalOverride",
- "applicableCountry" => "applicableCountry",
+ "restockingFee" => "restockingFee",
+ "itemDefectReturnShippingFeesAmount" => "itemDefectReturnShippingFeesAmount",
"returnFees" => "returnFees",
+ "customerRemorseReturnLabelSource" => "customerRemorseReturnLabelSource",
+ "itemDefectReturnLabelSource" => "itemDefectReturnLabelSource",
+ "applicableCountry" => "applicableCountry",
+ "customerRemorseReturnShippingFeesAmount" => "customerRemorseReturnShippingFeesAmount",
+ "returnPolicySeasonalOverride" => "returnPolicySeasonalOverride",
+ "returnShippingFeesAmount" => "returnShippingFeesAmount",
+ "returnPolicyCountry" => "returnPolicyCountry",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Specifies an applicable return policy (from an enumeration).
+ * Are in-store returns offered? (For more advanced return methods use the [[returnMethod]] property.)
*
*
- * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
+ * @var bool|null
*/
- protected $returnPolicyCategory;
+ protected $inStoreReturnsOffered;
/**
- * The country where the product has to be sent to for returns, for example "Ireland" using the [[name]] property of [[Country]]. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1). Note that this can be different from the country where the product was originally shipped from or sent too.
+ * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns.
*
*
- * @var \OpenActive\Models\SchemaOrg\Country|string
+ * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
*/
- protected $returnPolicyCountry;
+ protected $itemCondition;
/**
* Specifies a Web page or service by URL, for product returns.
@@ -68,20 +68,20 @@ public static function fieldList() {
protected $merchantReturnLink;
/**
- * 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.
+ * Specifies an applicable return policy (from an enumeration).
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
*/
- protected $restockingFee;
+ protected $returnPolicyCategory;
/**
- * Amount of shipping costs for defect product returns. Applicable when property [[itemDefectReturnFees]] equals [[ReturnShippingFees]].
+ * The type of return method offered, specified from an enumeration.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @var \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
*/
- protected $itemDefectReturnShippingFeesAmount;
+ protected $returnMethod;
/**
* The type of return fees for returns of defect products.
@@ -92,28 +92,29 @@ public static function fieldList() {
protected $itemDefectReturnFees;
/**
- * Are in-store returns offered? (for more advanced return methods use the [[returnMethod]] property)
+ * Specifies either a fixed return date or the number of days (from the delivery date) that a product can be returned. Used when the [[returnPolicyCategory]] property is specified as [[MerchantReturnFiniteReturnWindow]].
*
*
- * @var bool|null
+ * @var Date|DateTime|int|null
*/
- protected $inStoreReturnsOffered;
+ protected $merchantReturnDays;
/**
- * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns.
+ * A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.\n\nNote: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism.
+ *
*
*
- * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- protected $itemCondition;
+ protected $additionalProperty;
/**
- * The method (from an enumeration) by which the customer obtains a return shipping label for a defect product.
+ * A refund type, from an enumerated list.
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
+ * @var \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null
*/
- protected $itemDefectReturnLabelSource;
+ protected $refundType;
/**
* The method (from an enumeration) by which the customer obtains a return shipping label for a product returned for any reason.
@@ -124,69 +125,68 @@ public static function fieldList() {
protected $returnLabelSource;
/**
- * The amount of shipping costs if a product is returned due to customer remorse. Applicable when property [[customerRemorseReturnFees]] equals [[ReturnShippingFees]].
+ * The type of return fees if the product is returned due to customer remorse.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- protected $customerRemorseReturnShippingFeesAmount;
+ protected $customerRemorseReturnFees;
/**
- * A refund type, from an enumerated list.
+ * Use [[MonetaryAmount]] to specify a fixed restocking fee for product returns, or use [[Number]] to specify a percentage of the product price paid by the customer.
*
*
- * @var \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null
+ * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
*/
- protected $refundType;
+ protected $restockingFee;
/**
- * Amount of shipping costs for product returns (for any reason). Applicable when property [[returnFees]] equals [[ReturnShippingFees]].
+ * Amount of shipping costs for defect product returns. Applicable when property [[itemDefectReturnFees]] equals [[ReturnShippingFees]].
*
*
* @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $returnShippingFeesAmount;
+ protected $itemDefectReturnShippingFeesAmount;
/**
- * Specifies either a fixed return date or the number of days (from the delivery date) that a product can be returned. Used when the [[returnPolicyCategory]] property is specified as [[MerchantReturnFiniteReturnWindow]].
+ * The type of return fees for purchased products (for any return reason).
*
*
- * @var Date|DateTime|int|null
+ * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- protected $merchantReturnDays;
+ protected $returnFees;
/**
- * The type of return method offered, specified from an enumeration.
+ * The method (from an enumeration) by which the customer obtains a return shipping label for a product returned due to customer remorse.
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
+ * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- protected $returnMethod;
+ protected $customerRemorseReturnLabelSource;
/**
- * 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 method (from an enumeration) by which the customer obtains a return shipping label for a defect product.
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- protected $additionalProperty;
+ protected $itemDefectReturnLabelSource;
/**
- * 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 amount of shipping costs if a product is returned due to customer remorse. Applicable when property [[customerRemorseReturnFees]] equals [[ReturnShippingFees]].
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $customerRemorseReturnFees;
+ protected $customerRemorseReturnShippingFeesAmount;
/**
* Seasonal override of a return policy.
@@ -197,69 +197,69 @@ public static function fieldList() {
protected $returnPolicySeasonalOverride;
/**
- * A country where a particular merchant return policy applies to, for example the two-letter ISO 3166-1 alpha-2 country code.
+ * Amount of shipping costs for product returns (for any reason). Applicable when property [[returnFees]] equals [[ReturnShippingFees]].
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Country
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $applicableCountry;
+ protected $returnShippingFeesAmount;
/**
- * The type of return fees for purchased products (for any return reason)
+ * The 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 $returnFees;
+ protected $returnPolicyCountry;
/**
- * @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
+ * @return bool|null
*/
- public function getReturnPolicyCategory()
+ public function getInStoreReturnsOffered()
{
- return $this->returnPolicyCategory;
+ return $this->inStoreReturnsOffered;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null $returnPolicyCategory
+ * @param bool|null $inStoreReturnsOffered
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReturnPolicyCategory($returnPolicyCategory)
+ public function setInStoreReturnsOffered($inStoreReturnsOffered)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration",
+ "bool",
"null",
];
- $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types);
+ $inStoreReturnsOffered = self::checkTypes($inStoreReturnsOffered, $types);
- $this->returnPolicyCategory = $returnPolicyCategory;
+ $this->inStoreReturnsOffered = $inStoreReturnsOffered;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
*/
- public function getReturnPolicyCountry()
+ public function getItemCondition()
{
- return $this->returnPolicyCountry;
+ return $this->itemCondition;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $returnPolicyCountry
+ * @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 setReturnPolicyCountry($returnPolicyCountry)
+ public function setItemCondition($itemCondition)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
- "string",
+ "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
+ "null",
];
- $returnPolicyCountry = self::checkTypes($returnPolicyCountry, $types);
+ $itemCondition = self::checkTypes($itemCondition, $types);
- $this->returnPolicyCountry = $returnPolicyCountry;
+ $this->itemCondition = $itemCondition;
}
/**
@@ -287,55 +287,53 @@ public function setMerchantReturnLink($merchantReturnLink)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
*/
- public function getRestockingFee()
+ public function getReturnPolicyCategory()
{
- return $this->restockingFee;
+ return $this->returnPolicyCategory;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $restockingFee
+ * @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 setRestockingFee($restockingFee)
+ public function setReturnPolicyCategory($returnPolicyCategory)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
- "Number",
+ "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration",
"null",
];
- $restockingFee = self::checkTypes($restockingFee, $types);
+ $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types);
- $this->restockingFee = $restockingFee;
+ $this->returnPolicyCategory = $returnPolicyCategory;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @return \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
*/
- public function getItemDefectReturnShippingFeesAmount()
+ public function getReturnMethod()
{
- return $this->itemDefectReturnShippingFeesAmount;
+ return $this->returnMethod;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $itemDefectReturnShippingFeesAmount
+ * @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 setItemDefectReturnShippingFeesAmount($itemDefectReturnShippingFeesAmount)
+ public function setReturnMethod($returnMethod)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
+ "\OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration",
+ "null",
];
- $itemDefectReturnShippingFeesAmount = self::checkTypes($itemDefectReturnShippingFeesAmount, $types);
+ $returnMethod = self::checkTypes($returnMethod, $types);
- $this->itemDefectReturnShippingFeesAmount = $itemDefectReturnShippingFeesAmount;
+ $this->returnMethod = $returnMethod;
}
/**
@@ -364,78 +362,80 @@ public function setItemDefectReturnFees($itemDefectReturnFees)
}
/**
- * @return bool|null
+ * @return Date|DateTime|int|null
*/
- public function getInStoreReturnsOffered()
+ public function getMerchantReturnDays()
{
- return $this->inStoreReturnsOffered;
+ return $this->merchantReturnDays;
}
/**
- * @param bool|null $inStoreReturnsOffered
+ * @param Date|DateTime|int|null $merchantReturnDays
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInStoreReturnsOffered($inStoreReturnsOffered)
+ public function setMerchantReturnDays($merchantReturnDays)
{
$types = [
- "bool",
+ "Date",
+ "DateTime",
+ "int",
"null",
];
- $inStoreReturnsOffered = self::checkTypes($inStoreReturnsOffered, $types);
+ $merchantReturnDays = self::checkTypes($merchantReturnDays, $types);
- $this->inStoreReturnsOffered = $inStoreReturnsOffered;
+ $this->merchantReturnDays = $merchantReturnDays;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- public function getItemCondition()
+ public function getAdditionalProperty()
{
- return $this->itemCondition;
+ return $this->additionalProperty;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition
+ * @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 setItemCondition($itemCondition)
+ public function setAdditionalProperty($additionalProperty)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
- "null",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "string",
];
- $itemCondition = self::checkTypes($itemCondition, $types);
+ $additionalProperty = self::checkTypes($additionalProperty, $types);
- $this->itemCondition = $itemCondition;
+ $this->additionalProperty = $additionalProperty;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
+ * @return \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null
*/
- public function getItemDefectReturnLabelSource()
+ public function getRefundType()
{
- return $this->itemDefectReturnLabelSource;
+ return $this->refundType;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $itemDefectReturnLabelSource
+ * @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 setItemDefectReturnLabelSource($itemDefectReturnLabelSource)
+ public function setRefundType($refundType)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
+ "\OpenActive\Enums\SchemaOrg\RefundTypeEnumeration",
"null",
];
- $itemDefectReturnLabelSource = self::checkTypes($itemDefectReturnLabelSource, $types);
+ $refundType = self::checkTypes($refundType, $types);
- $this->itemDefectReturnLabelSource = $itemDefectReturnLabelSource;
+ $this->refundType = $refundType;
}
/**
@@ -464,205 +464,205 @@ public function setReturnLabelSource($returnLabelSource)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- public function getCustomerRemorseReturnShippingFeesAmount()
+ public function getCustomerRemorseReturnFees()
{
- return $this->customerRemorseReturnShippingFeesAmount;
+ return $this->customerRemorseReturnFees;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $customerRemorseReturnShippingFeesAmount
+ * @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 setCustomerRemorseReturnShippingFeesAmount($customerRemorseReturnShippingFeesAmount)
+ public function setCustomerRemorseReturnFees($customerRemorseReturnFees)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
+ "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
+ "null",
];
- $customerRemorseReturnShippingFeesAmount = self::checkTypes($customerRemorseReturnShippingFeesAmount, $types);
+ $customerRemorseReturnFees = self::checkTypes($customerRemorseReturnFees, $types);
- $this->customerRemorseReturnShippingFeesAmount = $customerRemorseReturnShippingFeesAmount;
+ $this->customerRemorseReturnFees = $customerRemorseReturnFees;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null
+ * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
*/
- public function getRefundType()
+ public function getRestockingFee()
{
- return $this->refundType;
+ return $this->restockingFee;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null $refundType
+ * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $restockingFee
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRefundType($refundType)
+ public function setRestockingFee($restockingFee)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\RefundTypeEnumeration",
+ "Number",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
"null",
];
- $refundType = self::checkTypes($refundType, $types);
+ $restockingFee = self::checkTypes($restockingFee, $types);
- $this->refundType = $refundType;
+ $this->restockingFee = $restockingFee;
}
/**
* @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getReturnShippingFeesAmount()
+ public function getItemDefectReturnShippingFeesAmount()
{
- return $this->returnShippingFeesAmount;
+ return $this->itemDefectReturnShippingFeesAmount;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $returnShippingFeesAmount
+ * @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 setReturnShippingFeesAmount($returnShippingFeesAmount)
+ public function setItemDefectReturnShippingFeesAmount($itemDefectReturnShippingFeesAmount)
{
$types = [
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
];
- $returnShippingFeesAmount = self::checkTypes($returnShippingFeesAmount, $types);
+ $itemDefectReturnShippingFeesAmount = self::checkTypes($itemDefectReturnShippingFeesAmount, $types);
- $this->returnShippingFeesAmount = $returnShippingFeesAmount;
+ $this->itemDefectReturnShippingFeesAmount = $itemDefectReturnShippingFeesAmount;
}
/**
- * @return Date|DateTime|int|null
+ * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- public function getMerchantReturnDays()
+ public function getReturnFees()
{
- return $this->merchantReturnDays;
+ return $this->returnFees;
}
/**
- * @param Date|DateTime|int|null $merchantReturnDays
+ * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $returnFees
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMerchantReturnDays($merchantReturnDays)
+ public function setReturnFees($returnFees)
{
$types = [
- "Date",
- "DateTime",
- "int",
+ "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
"null",
];
- $merchantReturnDays = self::checkTypes($merchantReturnDays, $types);
+ $returnFees = self::checkTypes($returnFees, $types);
- $this->merchantReturnDays = $merchantReturnDays;
+ $this->returnFees = $returnFees;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
+ * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- public function getReturnMethod()
+ public function getCustomerRemorseReturnLabelSource()
{
- return $this->returnMethod;
+ return $this->customerRemorseReturnLabelSource;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null $returnMethod
+ * @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 setReturnMethod($returnMethod)
+ public function setCustomerRemorseReturnLabelSource($customerRemorseReturnLabelSource)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration",
+ "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
"null",
];
- $returnMethod = self::checkTypes($returnMethod, $types);
+ $customerRemorseReturnLabelSource = self::checkTypes($customerRemorseReturnLabelSource, $types);
- $this->returnMethod = $returnMethod;
+ $this->customerRemorseReturnLabelSource = $customerRemorseReturnLabelSource;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- public function getAdditionalProperty()
+ public function getItemDefectReturnLabelSource()
{
- return $this->additionalProperty;
+ return $this->itemDefectReturnLabelSource;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty
+ * @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 setAdditionalProperty($additionalProperty)
+ public function setItemDefectReturnLabelSource($itemDefectReturnLabelSource)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
- "string",
+ "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
+ "null",
];
- $additionalProperty = self::checkTypes($additionalProperty, $types);
+ $itemDefectReturnLabelSource = self::checkTypes($itemDefectReturnLabelSource, $types);
- $this->additionalProperty = $additionalProperty;
+ $this->itemDefectReturnLabelSource = $itemDefectReturnLabelSource;
}
/**
- * @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 \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getCustomerRemorseReturnFees()
+ public function getCustomerRemorseReturnShippingFeesAmount()
{
- return $this->customerRemorseReturnFees;
+ return $this->customerRemorseReturnShippingFeesAmount;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $customerRemorseReturnFees
+ * @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 setCustomerRemorseReturnFees($customerRemorseReturnFees)
+ public function setCustomerRemorseReturnShippingFeesAmount($customerRemorseReturnShippingFeesAmount)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
- "null",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
];
- $customerRemorseReturnFees = self::checkTypes($customerRemorseReturnFees, $types);
+ $customerRemorseReturnShippingFeesAmount = self::checkTypes($customerRemorseReturnShippingFeesAmount, $types);
- $this->customerRemorseReturnFees = $customerRemorseReturnFees;
+ $this->customerRemorseReturnShippingFeesAmount = $customerRemorseReturnShippingFeesAmount;
}
/**
@@ -691,53 +691,53 @@ public function setReturnPolicySeasonalOverride($returnPolicySeasonalOverride)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Country
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getApplicableCountry()
+ public function getReturnShippingFeesAmount()
{
- return $this->applicableCountry;
+ return $this->returnShippingFeesAmount;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Country $applicableCountry
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $returnShippingFeesAmount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicableCountry($applicableCountry)
+ public function setReturnShippingFeesAmount($returnShippingFeesAmount)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "\OpenActive\Models\SchemaOrg\Country",
];
- $applicableCountry = self::checkTypes($applicableCountry, $types);
+ $returnShippingFeesAmount = self::checkTypes($returnShippingFeesAmount, $types);
- $this->applicableCountry = $applicableCountry;
+ $this->returnShippingFeesAmount = $returnShippingFeesAmount;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @return string|\OpenActive\Models\SchemaOrg\Country
*/
- public function getReturnFees()
+ public function getReturnPolicyCountry()
{
- return $this->returnFees;
+ return $this->returnPolicyCountry;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $returnFees
+ * @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 setReturnFees($returnFees)
+ public function setReturnPolicyCountry($returnPolicyCountry)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\Country",
];
- $returnFees = self::checkTypes($returnFees, $types);
+ $returnPolicyCountry = self::checkTypes($returnPolicyCountry, $types);
- $this->returnFees = $returnFees;
+ $this->returnPolicyCountry = $returnPolicyCountry;
}
}
diff --git a/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php b/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php
index 042d983d..c75afa0b 100644
--- a/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php
+++ b/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php
@@ -19,8 +19,8 @@ public static function fieldList() {
$fields = [
"returnPolicyCategory" => "returnPolicyCategory",
"startDate" => "startDate",
- "endDate" => "endDate",
"merchantReturnDays" => "merchantReturnDays",
+ "endDate" => "endDate",
];
return array_merge(parent::fieldList(), $fields);
@@ -43,20 +43,20 @@ public static function fieldList() {
protected $startDate;
/**
- * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * Specifies either a fixed return date or the number of days (from the delivery date) that a product can be returned. Used when the [[returnPolicyCategory]] property is specified as [[MerchantReturnFiniteReturnWindow]].
*
*
- * @var Date|DateTime|null
+ * @var Date|DateTime|int|null
*/
- protected $endDate;
+ protected $merchantReturnDays;
/**
- * Specifies either a fixed return date or the number of days (from the delivery date) that a product can be returned. Used when the [[returnPolicyCategory]] property is specified as [[MerchantReturnFiniteReturnWindow]].
+ * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var Date|DateTime|int|null
+ * @var Date|DateTime|null
*/
- protected $merchantReturnDays;
+ protected $endDate;
/**
* @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
@@ -110,56 +110,56 @@ public function setStartDate($startDate)
}
/**
- * @return Date|DateTime|null
+ * @return Date|DateTime|int|null
*/
- public function getEndDate()
+ public function getMerchantReturnDays()
{
- return $this->endDate;
+ return $this->merchantReturnDays;
}
/**
- * @param Date|DateTime|null $endDate
+ * @param Date|DateTime|int|null $merchantReturnDays
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndDate($endDate)
+ public function setMerchantReturnDays($merchantReturnDays)
{
$types = [
"Date",
"DateTime",
+ "int",
"null",
];
- $endDate = self::checkTypes($endDate, $types);
+ $merchantReturnDays = self::checkTypes($merchantReturnDays, $types);
- $this->endDate = $endDate;
+ $this->merchantReturnDays = $merchantReturnDays;
}
/**
- * @return Date|DateTime|int|null
+ * @return Date|DateTime|null
*/
- public function getMerchantReturnDays()
+ public function getEndDate()
{
- return $this->merchantReturnDays;
+ return $this->endDate;
}
/**
- * @param Date|DateTime|int|null $merchantReturnDays
+ * @param Date|DateTime|null $endDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMerchantReturnDays($merchantReturnDays)
+ public function setEndDate($endDate)
{
$types = [
"Date",
"DateTime",
- "int",
"null",
];
- $merchantReturnDays = self::checkTypes($merchantReturnDays, $types);
+ $endDate = self::checkTypes($endDate, $types);
- $this->merchantReturnDays = $merchantReturnDays;
+ $this->endDate = $endDate;
}
}
diff --git a/src/Models/SchemaOrg/Message.php b/src/Models/SchemaOrg/Message.php
index 6803a9a6..940a9de1 100644
--- a/src/Models/SchemaOrg/Message.php
+++ b/src/Models/SchemaOrg/Message.php
@@ -17,35 +17,35 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "ccRecipient" => "ccRecipient",
"bccRecipient" => "bccRecipient",
- "recipient" => "recipient",
"dateReceived" => "dateReceived",
- "ccRecipient" => "ccRecipient",
- "messageAttachment" => "messageAttachment",
+ "recipient" => "recipient",
"toRecipient" => "toRecipient",
- "dateSent" => "dateSent",
"dateRead" => "dateRead",
"sender" => "sender",
+ "messageAttachment" => "messageAttachment",
+ "dateSent" => "dateSent",
];
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 copied on a message.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $bccRecipient;
+ protected $ccRecipient;
/**
- * A sub property of participant. The participant who is at the receiving end of the action.
+ * A sub property of recipient. The recipient blind copied on a message.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $recipient;
+ protected $bccRecipient;
/**
* The date/time the message was received if a single recipient exists.
@@ -56,106 +56,105 @@ public static function fieldList() {
protected $dateReceived;
/**
- * A sub property of recipient. The recipient copied on a message.
+ * A sub property of participant. The participant who is at the receiving end of the action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $ccRecipient;
+ protected $recipient;
/**
- * A CreativeWork attached to the message.
+ * A sub property of recipient. The recipient who was directly sent the message.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $messageAttachment;
+ protected $toRecipient;
/**
- * A sub property of recipient. The recipient who was directly sent the message.
+ * The date/time at which the message has been read by the recipient if a single recipient exists.
*
*
- * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var Date|DateTime|null
*/
- protected $toRecipient;
+ protected $dateRead;
/**
- * The date/time at which the message was sent.
+ * A sub property of participant. The participant who is at the sending end of the action.
*
*
- * @var DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $dateSent;
+ protected $sender;
/**
- * The date/time at which the message has been read by the recipient if a single recipient exists.
+ * A CreativeWork attached to the message.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $dateRead;
+ protected $messageAttachment;
/**
- * A sub property of participant. The participant who is at the sending end of the action.
+ * The date/time at which the message was sent.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var DateTime|null
*/
- protected $sender;
+ protected $dateSent;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getBccRecipient()
+ public function getCcRecipient()
{
- return $this->bccRecipient;
+ return $this->ccRecipient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $bccRecipient
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $ccRecipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBccRecipient($bccRecipient)
+ public function setCcRecipient($ccRecipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $bccRecipient = self::checkTypes($bccRecipient, $types);
+ $ccRecipient = self::checkTypes($ccRecipient, $types);
- $this->bccRecipient = $bccRecipient;
+ $this->ccRecipient = $ccRecipient;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getRecipient()
+ public function getBccRecipient()
{
- return $this->recipient;
+ return $this->bccRecipient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $bccRecipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecipient($recipient)
+ public function setBccRecipient($bccRecipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $recipient = self::checkTypes($recipient, $types);
+ $bccRecipient = self::checkTypes($bccRecipient, $types);
- $this->recipient = $recipient;
+ $this->bccRecipient = $bccRecipient;
}
/**
@@ -184,161 +183,162 @@ public function setDateReceived($dateReceived)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getCcRecipient()
+ public function getRecipient()
{
- return $this->ccRecipient;
+ return $this->recipient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string $ccRecipient
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCcRecipient($ccRecipient)
+ public function setRecipient($recipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $ccRecipient = self::checkTypes($ccRecipient, $types);
+ $recipient = self::checkTypes($recipient, $types);
- $this->ccRecipient = $ccRecipient;
+ $this->recipient = $recipient;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getMessageAttachment()
+ public function getToRecipient()
{
- return $this->messageAttachment;
+ return $this->toRecipient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $messageAttachment
+ * @param \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $toRecipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMessageAttachment($messageAttachment)
+ public function setToRecipient($toRecipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $messageAttachment = self::checkTypes($messageAttachment, $types);
+ $toRecipient = self::checkTypes($toRecipient, $types);
- $this->messageAttachment = $messageAttachment;
+ $this->toRecipient = $toRecipient;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return Date|DateTime|null
*/
- public function getToRecipient()
+ public function getDateRead()
{
- return $this->toRecipient;
+ return $this->dateRead;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string $toRecipient
+ * @param Date|DateTime|null $dateRead
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setToRecipient($toRecipient)
+ public function setDateRead($dateRead)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ContactPoint",
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $toRecipient = self::checkTypes($toRecipient, $types);
+ $dateRead = self::checkTypes($dateRead, $types);
- $this->toRecipient = $toRecipient;
+ $this->dateRead = $dateRead;
}
/**
- * @return DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getDateSent()
+ public function getSender()
{
- return $this->dateSent;
+ return $this->sender;
}
/**
- * @param DateTime|null $dateSent
+ * @param \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $sender
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateSent($dateSent)
+ public function setSender($sender)
{
$types = [
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $dateSent = self::checkTypes($dateSent, $types);
+ $sender = self::checkTypes($sender, $types);
- $this->dateSent = $dateSent;
+ $this->sender = $sender;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getDateRead()
+ public function getMessageAttachment()
{
- return $this->dateRead;
+ return $this->messageAttachment;
}
/**
- * @param Date|DateTime|null $dateRead
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $messageAttachment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateRead($dateRead)
+ public function setMessageAttachment($messageAttachment)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $dateRead = self::checkTypes($dateRead, $types);
+ $messageAttachment = self::checkTypes($messageAttachment, $types);
- $this->dateRead = $dateRead;
+ $this->messageAttachment = $messageAttachment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return DateTime|null
*/
- public function getSender()
+ public function getDateSent()
{
- return $this->sender;
+ return $this->dateSent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string $sender
+ * @param DateTime|null $dateSent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSender($sender)
+ public function setDateSent($dateSent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "DateTime",
+ "null",
];
- $sender = self::checkTypes($sender, $types);
+ $dateSent = self::checkTypes($dateSent, $types);
- $this->sender = $sender;
+ $this->dateSent = $dateSent;
}
}
diff --git a/src/Models/SchemaOrg/MolecularEntity.php b/src/Models/SchemaOrg/MolecularEntity.php
index 4a7fb865..003071ea 100644
--- a/src/Models/SchemaOrg/MolecularEntity.php
+++ b/src/Models/SchemaOrg/MolecularEntity.php
@@ -17,43 +17,35 @@ public static function getType()
public static function fieldList() {
$fields = [
- "inChIKey" => "inChIKey",
- "iupacName" => "iupacName",
- "monoisotopicMolecularWeight" => "monoisotopicMolecularWeight",
+ "smiles" => "smiles",
+ "inChI" => "inChI",
"molecularFormula" => "molecularFormula",
- "potentialUse" => "potentialUse",
+ "monoisotopicMolecularWeight" => "monoisotopicMolecularWeight",
"chemicalRole" => "chemicalRole",
+ "inChIKey" => "inChIKey",
+ "potentialUse" => "potentialUse",
+ "iupacName" => "iupacName",
"molecularWeight" => "molecularWeight",
- "inChI" => "inChI",
- "smiles" => "smiles",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * InChIKey is a hashed version of the full InChI (using the SHA-256 algorithm).
+ * 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 $inChIKey;
+ protected $smiles;
/**
- * Systematic method of naming chemical compounds as recommended by the International Union of Pure and Applied Chemistry (IUPAC).
+ * Non-proprietary identifier for molecular entity that can be used in printed and electronic data sources thus enabling easier linking of diverse data compilations.
*
*
* @var string
*/
- protected $iupacName;
-
- /**
- * 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>.
- *
- *
- * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
- */
- protected $monoisotopicMolecularWeight;
+ protected $inChI;
/**
* The empirical formula is the simplest whole number ratio of all the atoms in a molecule.
@@ -64,12 +56,12 @@ public static function fieldList() {
protected $molecularFormula;
/**
- * Intended use of the BioChemEntity by humans.
+ * The monoisotopic mass is the sum of the masses of the atoms in a molecule using the unbound, ground-state, rest mass of the principal (most abundant) isotope for each element instead of the isotopic average mass. Please include the units in the form '<Number> <unit>', for example '770.230488 g/mol' or as '<QuantitativeValue>.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- protected $potentialUse;
+ protected $monoisotopicMolecularWeight;
/**
* A role played by the BioChemEntity within a chemical context.
@@ -80,247 +72,255 @@ 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.
+ * Intended use of the BioChemEntity by humans.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $inChI;
+ protected $potentialUse;
/**
- * A specification in form of a line notation for describing the structure of chemical species using short ASCII strings. Double bond stereochemistry \ indicators may need to be escaped in the string in formats where the backslash is an escape character.
+ * Systematic method of naming chemical compounds as recommended by the International Union of Pure and Applied Chemistry (IUPAC).
*
*
* @var string
*/
- protected $smiles;
+ protected $iupacName;
+
+ /**
+ * 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 $molecularWeight;
/**
* @return string
*/
- public function getInChIKey()
+ public function getSmiles()
{
- return $this->inChIKey;
+ return $this->smiles;
}
/**
- * @param string $inChIKey
+ * @param string $smiles
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInChIKey($inChIKey)
+ public function setSmiles($smiles)
{
$types = [
"string",
];
- $inChIKey = self::checkTypes($inChIKey, $types);
+ $smiles = self::checkTypes($smiles, $types);
- $this->inChIKey = $inChIKey;
+ $this->smiles = $smiles;
}
/**
* @return string
*/
- public function getIupacName()
+ public function getInChI()
{
- return $this->iupacName;
+ return $this->inChI;
}
/**
- * @param string $iupacName
+ * @param string $inChI
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIupacName($iupacName)
+ public function setInChI($inChI)
{
$types = [
"string",
];
- $iupacName = self::checkTypes($iupacName, $types);
+ $inChI = self::checkTypes($inChI, $types);
- $this->iupacName = $iupacName;
+ $this->inChI = $inChI;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @return string
*/
- public function getMonoisotopicMolecularWeight()
+ public function getMolecularFormula()
{
- return $this->monoisotopicMolecularWeight;
+ return $this->molecularFormula;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $monoisotopicMolecularWeight
+ * @param string $molecularFormula
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMonoisotopicMolecularWeight($monoisotopicMolecularWeight)
+ public function setMolecularFormula($molecularFormula)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $monoisotopicMolecularWeight = self::checkTypes($monoisotopicMolecularWeight, $types);
+ $molecularFormula = self::checkTypes($molecularFormula, $types);
- $this->monoisotopicMolecularWeight = $monoisotopicMolecularWeight;
+ $this->molecularFormula = $molecularFormula;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- public function getMolecularFormula()
+ public function getMonoisotopicMolecularWeight()
{
- return $this->molecularFormula;
+ return $this->monoisotopicMolecularWeight;
}
/**
- * @param string $molecularFormula
+ * @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 setMolecularFormula($molecularFormula)
+ public function setMonoisotopicMolecularWeight($monoisotopicMolecularWeight)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $molecularFormula = self::checkTypes($molecularFormula, $types);
+ $monoisotopicMolecularWeight = self::checkTypes($monoisotopicMolecularWeight, $types);
- $this->molecularFormula = $molecularFormula;
+ $this->monoisotopicMolecularWeight = $monoisotopicMolecularWeight;
}
/**
* @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getPotentialUse()
+ public function getChemicalRole()
{
- return $this->potentialUse;
+ return $this->chemicalRole;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $potentialUse
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $chemicalRole
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPotentialUse($potentialUse)
+ public function setChemicalRole($chemicalRole)
{
$types = [
"\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $potentialUse = self::checkTypes($potentialUse, $types);
+ $chemicalRole = self::checkTypes($chemicalRole, $types);
- $this->potentialUse = $potentialUse;
+ $this->chemicalRole = $chemicalRole;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string
*/
- public function getChemicalRole()
+ public function getInChIKey()
{
- return $this->chemicalRole;
+ return $this->inChIKey;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $chemicalRole
+ * @param string $inChIKey
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setChemicalRole($chemicalRole)
+ public function setInChIKey($inChIKey)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $chemicalRole = self::checkTypes($chemicalRole, $types);
+ $inChIKey = self::checkTypes($inChIKey, $types);
- $this->chemicalRole = $chemicalRole;
+ $this->inChIKey = $inChIKey;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getMolecularWeight()
+ public function getPotentialUse()
{
- return $this->molecularWeight;
+ return $this->potentialUse;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $molecularWeight
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $potentialUse
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMolecularWeight($molecularWeight)
+ public function setPotentialUse($potentialUse)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $molecularWeight = self::checkTypes($molecularWeight, $types);
+ $potentialUse = self::checkTypes($potentialUse, $types);
- $this->molecularWeight = $molecularWeight;
+ $this->potentialUse = $potentialUse;
}
/**
* @return string
*/
- public function getInChI()
+ public function getIupacName()
{
- return $this->inChI;
+ return $this->iupacName;
}
/**
- * @param string $inChI
+ * @param string $iupacName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInChI($inChI)
+ public function setIupacName($iupacName)
{
$types = [
"string",
];
- $inChI = self::checkTypes($inChI, $types);
+ $iupacName = self::checkTypes($iupacName, $types);
- $this->inChI = $inChI;
+ $this->iupacName = $iupacName;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- public function getSmiles()
+ public function getMolecularWeight()
{
- return $this->smiles;
+ return $this->molecularWeight;
}
/**
- * @param string $smiles
+ * @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 setSmiles($smiles)
+ public function setMolecularWeight($molecularWeight)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $smiles = self::checkTypes($smiles, $types);
+ $molecularWeight = self::checkTypes($molecularWeight, $types);
- $this->smiles = $smiles;
+ $this->molecularWeight = $molecularWeight;
}
}
diff --git a/src/Models/SchemaOrg/MonetaryAmount.php b/src/Models/SchemaOrg/MonetaryAmount.php
index 016e1527..f3367e7c 100644
--- a/src/Models/SchemaOrg/MonetaryAmount.php
+++ b/src/Models/SchemaOrg/MonetaryAmount.php
@@ -17,217 +17,217 @@ public static function getType()
public static function fieldList() {
$fields = [
- "maxValue" => "maxValue",
- "minValue" => "minValue",
"validFrom" => "validFrom",
- "value" => "value",
"currency" => "currency",
+ "value" => "value",
"validThrough" => "validThrough",
+ "maxValue" => "maxValue",
+ "minValue" => "minValue",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The upper value of some characteristic or property.
+ * The date when the item becomes valid.
*
*
- * @var Number|null
+ * @var Date|DateTime|null
*/
- protected $maxValue;
+ protected $validFrom;
/**
- * The lower value of some characteristic or property.
+ * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".
*
*
- * @var Number|null
+ * @var string
*/
- protected $minValue;
+ protected $currency;
/**
- * The date when the item becomes valid.
+ * 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 Date|DateTime|null
+ * @var bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null
*/
- protected $validFrom;
+ protected $value;
/**
- * The value of the quantitative value or property value node.\n\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\n* For [[PropertyValue]], it can be 'Text;', 'Number', 'Boolean', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
+ * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
*
*
- * @var string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null
+ * @var Date|DateTime|null
*/
- protected $value;
+ protected $validThrough;
/**
- * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR".
+ * The upper value of some characteristic or property.
*
*
- * @var string
+ * @var Number|null
*/
- protected $currency;
+ protected $maxValue;
/**
- * 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 lower value of some characteristic or property.
*
*
- * @var Date|DateTime|null
+ * @var Number|null
*/
- protected $validThrough;
+ protected $minValue;
/**
- * @return Number|null
+ * @return Date|DateTime|null
*/
- public function getMaxValue()
+ public function getValidFrom()
{
- return $this->maxValue;
+ return $this->validFrom;
}
/**
- * @param Number|null $maxValue
+ * @param Date|DateTime|null $validFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaxValue($maxValue)
+ public function setValidFrom($validFrom)
{
$types = [
- "Number",
+ "Date",
+ "DateTime",
"null",
];
- $maxValue = self::checkTypes($maxValue, $types);
+ $validFrom = self::checkTypes($validFrom, $types);
- $this->maxValue = $maxValue;
+ $this->validFrom = $validFrom;
}
/**
- * @return Number|null
+ * @return string
*/
- public function getMinValue()
+ public function getCurrency()
{
- return $this->minValue;
+ return $this->currency;
}
/**
- * @param Number|null $minValue
+ * @param string $currency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMinValue($minValue)
+ public function setCurrency($currency)
{
$types = [
- "Number",
- "null",
+ "string",
];
- $minValue = self::checkTypes($minValue, $types);
+ $currency = self::checkTypes($currency, $types);
- $this->minValue = $minValue;
+ $this->currency = $currency;
}
/**
- * @return Date|DateTime|null
+ * @return bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null
*/
- public function getValidFrom()
+ public function getValue()
{
- return $this->validFrom;
+ return $this->value;
}
/**
- * @param Date|DateTime|null $validFrom
+ * @param bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null $value
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidFrom($validFrom)
+ public function setValue($value)
{
$types = [
- "Date",
- "DateTime",
+ "bool",
+ "string",
+ "Number",
+ "\OpenActive\Models\SchemaOrg\StructuredValue",
"null",
];
- $validFrom = self::checkTypes($validFrom, $types);
+ $value = self::checkTypes($value, $types);
- $this->validFrom = $validFrom;
+ $this->value = $value;
}
/**
- * @return string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null
+ * @return Date|DateTime|null
*/
- public function getValue()
+ public function getValidThrough()
{
- return $this->value;
+ return $this->validThrough;
}
/**
- * @param string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null $value
+ * @param Date|DateTime|null $validThrough
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValue($value)
+ public function setValidThrough($validThrough)
{
$types = [
- "string",
- "Number",
- "\OpenActive\Models\SchemaOrg\StructuredValue",
- "bool",
+ "Date",
+ "DateTime",
"null",
];
- $value = self::checkTypes($value, $types);
+ $validThrough = self::checkTypes($validThrough, $types);
- $this->value = $value;
+ $this->validThrough = $validThrough;
}
/**
- * @return string
+ * @return Number|null
*/
- public function getCurrency()
+ public function getMaxValue()
{
- return $this->currency;
+ return $this->maxValue;
}
/**
- * @param string $currency
+ * @param Number|null $maxValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCurrency($currency)
+ public function setMaxValue($maxValue)
{
$types = [
- "string",
+ "Number",
+ "null",
];
- $currency = self::checkTypes($currency, $types);
+ $maxValue = self::checkTypes($maxValue, $types);
- $this->currency = $currency;
+ $this->maxValue = $maxValue;
}
/**
- * @return Date|DateTime|null
+ * @return Number|null
*/
- public function getValidThrough()
+ public function getMinValue()
{
- return $this->validThrough;
+ return $this->minValue;
}
/**
- * @param Date|DateTime|null $validThrough
+ * @param Number|null $minValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidThrough($validThrough)
+ public function setMinValue($minValue)
{
$types = [
- "Date",
- "DateTime",
+ "Number",
"null",
];
- $validThrough = self::checkTypes($validThrough, $types);
+ $minValue = self::checkTypes($minValue, $types);
- $this->validThrough = $validThrough;
+ $this->minValue = $minValue;
}
}
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..78665006 100644
--- a/src/Models/SchemaOrg/MonetaryGrant.php
+++ b/src/Models/SchemaOrg/MonetaryGrant.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;
@@ -67,7 +67,7 @@ public function setFunder($funder)
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
public function getAmount()
{
@@ -75,16 +75,16 @@ public function getAmount()
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $amount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAmount($amount)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
"null",
];
diff --git a/src/Models/SchemaOrg/MoneyTransfer.php b/src/Models/SchemaOrg/MoneyTransfer.php
index 840cab16..cdc5afbf 100644
--- a/src/Models/SchemaOrg/MoneyTransfer.php
+++ b/src/Models/SchemaOrg/MoneyTransfer.php
@@ -28,7 +28,7 @@ public static function fieldList() {
* A bank or bank’s branch, financial institution or international financial institution operating the beneficiary’s bank account or releasing funds for the beneficiary.
*
*
- * @var \OpenActive\Models\SchemaOrg\BankOrCreditUnion|string
+ * @var string|\OpenActive\Models\SchemaOrg\BankOrCreditUnion
*/
protected $beneficiaryBank;
@@ -36,12 +36,12 @@ public static function fieldList() {
* The amount of money.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
protected $amount;
/**
- * @return \OpenActive\Models\SchemaOrg\BankOrCreditUnion|string
+ * @return string|\OpenActive\Models\SchemaOrg\BankOrCreditUnion
*/
public function getBeneficiaryBank()
{
@@ -49,15 +49,15 @@ public function getBeneficiaryBank()
}
/**
- * @param \OpenActive\Models\SchemaOrg\BankOrCreditUnion|string $beneficiaryBank
+ * @param string|\OpenActive\Models\SchemaOrg\BankOrCreditUnion $beneficiaryBank
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setBeneficiaryBank($beneficiaryBank)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BankOrCreditUnion",
"string",
+ "\OpenActive\Models\SchemaOrg\BankOrCreditUnion",
];
$beneficiaryBank = self::checkTypes($beneficiaryBank, $types);
@@ -66,7 +66,7 @@ public function setBeneficiaryBank($beneficiaryBank)
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
public function getAmount()
{
@@ -74,16 +74,16 @@ public function getAmount()
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $amount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAmount($amount)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
"null",
];
diff --git a/src/Models/SchemaOrg/MoveAction.php b/src/Models/SchemaOrg/MoveAction.php
index 03efe8fd..ee53b750 100644
--- a/src/Models/SchemaOrg/MoveAction.php
+++ b/src/Models/SchemaOrg/MoveAction.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "fromLocation" => "fromLocation",
"toLocation" => "toLocation",
+ "fromLocation" => "fromLocation",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A sub property of location. The original location of the object or the agent before the action.
+ * A sub property of location. The final location of the object or the agent after the action.
*
*
* @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $fromLocation;
+ protected $toLocation;
/**
- * A sub property of location. The final location of the object or the agent after the action.
+ * A sub property of location. The original location of the object or the agent before the action.
*
*
* @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $toLocation;
+ protected $fromLocation;
/**
* @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getFromLocation()
+ public function getToLocation()
{
- return $this->fromLocation;
+ return $this->toLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation
+ * @param \OpenActive\Models\SchemaOrg\Place|string $toLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFromLocation($fromLocation)
+ public function setToLocation($toLocation)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $fromLocation = self::checkTypes($fromLocation, $types);
+ $toLocation = self::checkTypes($toLocation, $types);
- $this->fromLocation = $fromLocation;
+ $this->toLocation = $toLocation;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getToLocation()
+ public function getFromLocation()
{
- return $this->toLocation;
+ return $this->fromLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $toLocation
+ * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setToLocation($toLocation)
+ public function setFromLocation($fromLocation)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $toLocation = self::checkTypes($toLocation, $types);
+ $fromLocation = self::checkTypes($fromLocation, $types);
- $this->toLocation = $toLocation;
+ $this->fromLocation = $fromLocation;
}
}
diff --git a/src/Models/SchemaOrg/Movie.php b/src/Models/SchemaOrg/Movie.php
index c86efcb6..8ed3ffac 100644
--- a/src/Models/SchemaOrg/Movie.php
+++ b/src/Models/SchemaOrg/Movie.php
@@ -17,22 +17,30 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "actors" => "actors",
"countryOfOrigin" => "countryOfOrigin",
- "director" => "director",
"titleEIDR" => "titleEIDR",
- "subtitleLanguage" => "subtitleLanguage",
- "actor" => "actor",
"trailer" => "trailer",
- "duration" => "duration",
"productionCompany" => "productionCompany",
- "actors" => "actors",
"musicBy" => "musicBy",
"directors" => "directors",
+ "duration" => "duration",
+ "subtitleLanguage" => "subtitleLanguage",
+ "director" => "director",
+ "actor" => "actor",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Person|string
+ */
+ protected $actors;
+
/**
* The country of origin of something, including products as well as creative works such as movie and TV content.
*
@@ -45,20 +53,12 @@ public static function fieldList() {
*/
protected $countryOfOrigin;
- /**
- * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Person|string
- */
- protected $director;
-
/**
* An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing at the most general/abstract level, a work of film or television.
*
* For example, the motion picture known as "Ghostbusters" has a titleEIDR of "10.5240/7EC7-228A-510A-053E-CBB8-J". This title (or work) may have several variants, which EIDR calls "edits". See [[editEIDR]].
*
- * Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description.
+ * Since schema.org types like [[Movie]], [[TVEpisode]], [[TVSeason]], and [[TVSeries]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description.
*
*
*
@@ -67,117 +67,117 @@ 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).
+ * The trailer of a movie or TV/radio series, season, episode, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Language|string
+ * @var \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- protected $subtitleLanguage;
+ protected $trailer;
/**
- * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $actor;
+ protected $productionCompany;
/**
- * The trailer of a movie or tv/radio series, season, episode, etc.
+ * The composer of the soundtrack.
*
*
- * @var \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- protected $trailer;
+ 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 production company or studio responsible for the item e.g. series, video game, episode etc.
+ * 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\Organization|string
+ * @var DateInterval|string|null
*/
- protected $productionCompany;
+ protected $duration;
/**
- * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
+ * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47).
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $actors;
+ protected $subtitleLanguage;
/**
- * 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., or in an event. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $directors;
+ protected $actor;
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getCountryOfOrigin()
+ public function getActors()
{
- return $this->countryOfOrigin;
+ return $this->actors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin
+ * @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 setCountryOfOrigin($countryOfOrigin)
+ public function setActors($actors)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
+ $actors = self::checkTypes($actors, $types);
- $this->countryOfOrigin = $countryOfOrigin;
+ $this->actors = $actors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Country|string
*/
- public function getDirector()
+ public function getCountryOfOrigin()
{
- return $this->director;
+ return $this->countryOfOrigin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @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 setDirector($director)
+ public function setCountryOfOrigin($countryOfOrigin)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Country",
"string",
];
- $director = self::checkTypes($director, $types);
+ $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
- $this->director = $director;
+ $this->countryOfOrigin = $countryOfOrigin;
}
/**
@@ -205,205 +205,205 @@ public function setTitleEIDR($titleEIDR)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Language|string
+ * @return \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- public function getSubtitleLanguage()
+ public function getTrailer()
{
- return $this->subtitleLanguage;
+ return $this->trailer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage
+ * @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 setSubtitleLanguage($subtitleLanguage)
+ public function setTrailer($trailer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Language",
+ "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
];
- $subtitleLanguage = self::checkTypes($subtitleLanguage, $types);
+ $trailer = self::checkTypes($trailer, $types);
- $this->subtitleLanguage = $subtitleLanguage;
+ $this->trailer = $trailer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getActor()
+ public function getProductionCompany()
{
- return $this->actor;
+ return $this->productionCompany;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @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 setActor($actor)
+ public function setProductionCompany($productionCompany)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $actor = self::checkTypes($actor, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->actor = $actor;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- public function getTrailer()
+ public function getMusicBy()
{
- return $this->trailer;
+ return $this->musicBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
+ * @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 setTrailer($trailer)
+ public function setMusicBy($musicBy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\VideoObject",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
"string",
];
- $trailer = self::checkTypes($trailer, $types);
+ $musicBy = self::checkTypes($musicBy, $types);
- $this->trailer = $trailer;
+ $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\Organization|string
+ * @return DateInterval|string|null
*/
- public function getProductionCompany()
+ public function getDuration()
{
- return $this->productionCompany;
+ return $this->duration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @param DateInterval|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionCompany($productionCompany)
+ public function setDuration($duration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "DateInterval",
"string",
+ "null",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->productionCompany = $productionCompany;
+ $this->duration = $duration;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getActors()
+ public function getSubtitleLanguage()
{
- return $this->actors;
+ return $this->subtitleLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actors
+ * @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 setActors($actors)
+ public function setSubtitleLanguage($subtitleLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $actors = self::checkTypes($actors, $types);
+ $subtitleLanguage = self::checkTypes($subtitleLanguage, $types);
- $this->actors = $actors;
+ $this->subtitleLanguage = $subtitleLanguage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @return \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 getActor()
{
- return $this->directors;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @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 setDirectors($directors)
+ public function setActor($actor)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->directors = $directors;
+ $this->actor = $actor;
}
}
diff --git a/src/Models/SchemaOrg/MovieSeries.php b/src/Models/SchemaOrg/MovieSeries.php
index e262dec2..788ab5c7 100644
--- a/src/Models/SchemaOrg/MovieSeries.php
+++ b/src/Models/SchemaOrg/MovieSeries.php
@@ -17,36 +17,28 @@ public static function getType()
public static function fieldList() {
$fields = [
- "director" => "director",
- "actor" => "actor",
+ "actors" => "actors",
"trailer" => "trailer",
"productionCompany" => "productionCompany",
- "actors" => "actors",
"musicBy" => "musicBy",
"directors" => "directors",
+ "director" => "director",
+ "actor" => "actor",
];
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.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Person|string
- */
- protected $director;
-
- /**
- * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
+ * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $actor;
+ protected $actors;
/**
- * The trailer of a movie or tv/radio series, season, episode, etc.
+ * The trailer of a movie or TV/radio series, season, episode, etc.
*
*
* @var \OpenActive\Models\SchemaOrg\VideoObject|string
@@ -54,21 +46,13 @@ public static function fieldList() {
protected $trailer;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
* @var \OpenActive\Models\SchemaOrg\Organization|string
*/
protected $productionCompany;
- /**
- * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Person|string
- */
- protected $actors;
-
/**
* The composer of the soundtrack.
*
@@ -78,7 +62,7 @@ public static function fieldList() {
protected $musicBy;
/**
- * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
+ * 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
@@ -86,53 +70,44 @@ public static function fieldList() {
protected $directors;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * 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
*/
- public function getDirector()
- {
- return $this->director;
- }
+ protected $director;
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * 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
*/
- public function setDirector($director)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
- ];
-
- $director = self::checkTypes($director, $types);
-
- $this->director = $director;
- }
+ protected $actor;
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getActor()
+ public function getActors()
{
- return $this->actor;
+ return $this->actors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @param \OpenActive\Models\SchemaOrg\Person|string $actors
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActor($actor)
+ public function setActors($actors)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $actor = self::checkTypes($actor, $types);
+ $actors = self::checkTypes($actors, $types);
- $this->actor = $actor;
+ $this->actors = $actors;
}
/**
@@ -185,80 +160,105 @@ public function setProductionCompany($productionCompany)
$this->productionCompany = $productionCompany;
}
+ /**
+ * @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
*/
- 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 getActor()
{
- return $this->directors;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @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 setDirectors($directors)
+ public function setActor($actor)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->directors = $directors;
+ $this->actor = $actor;
}
}
diff --git a/src/Models/SchemaOrg/Muscle.php b/src/Models/SchemaOrg/Muscle.php
index c9754755..92ead841 100644
--- a/src/Models/SchemaOrg/Muscle.php
+++ b/src/Models/SchemaOrg/Muscle.php
@@ -17,31 +17,31 @@ public static function getType()
public static function fieldList() {
$fields = [
- "insertion" => "insertion",
- "antagonist" => "antagonist",
- "nerve" => "nerve",
"bloodSupply" => "bloodSupply",
"muscleAction" => "muscleAction",
+ "nerve" => "nerve",
+ "insertion" => "insertion",
+ "antagonist" => "antagonist",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The place of attachment of a muscle, or what the muscle moves.
+ * The blood vessel that carries blood from the heart to the muscle.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\Vessel|string
*/
- protected $insertion;
+ protected $bloodSupply;
/**
- * The muscle whose action counteracts the specified muscle.
+ * The movement the muscle generates.
*
*
- * @var \OpenActive\Models\SchemaOrg\Muscle|string
+ * @var string
*/
- protected $antagonist;
+ protected $muscleAction;
/**
* The underlying innervation associated with the muscle.
@@ -52,69 +52,68 @@ public static function fieldList() {
protected $nerve;
/**
- * The blood vessel that carries blood from the heart to the muscle.
+ * The place of attachment of a muscle, or what the muscle moves.
*
*
- * @var \OpenActive\Models\SchemaOrg\Vessel|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $bloodSupply;
+ protected $insertion;
/**
- * The movement the muscle generates.
+ * 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
+ * @return \OpenActive\Models\SchemaOrg\Vessel|string
*/
- public function getInsertion()
+ public function getBloodSupply()
{
- return $this->insertion;
+ return $this->bloodSupply;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $insertion
+ * @param \OpenActive\Models\SchemaOrg\Vessel|string $bloodSupply
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInsertion($insertion)
+ public function setBloodSupply($bloodSupply)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\Vessel",
"string",
];
- $insertion = self::checkTypes($insertion, $types);
+ $bloodSupply = self::checkTypes($bloodSupply, $types);
- $this->insertion = $insertion;
+ $this->bloodSupply = $bloodSupply;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Muscle|string
+ * @return string
*/
- public function getAntagonist()
+ public function getMuscleAction()
{
- return $this->antagonist;
+ return $this->muscleAction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Muscle|string $antagonist
+ * @param string $muscleAction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAntagonist($antagonist)
+ public function setMuscleAction($muscleAction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Muscle",
"string",
];
- $antagonist = self::checkTypes($antagonist, $types);
+ $muscleAction = self::checkTypes($muscleAction, $types);
- $this->antagonist = $antagonist;
+ $this->muscleAction = $muscleAction;
}
/**
@@ -143,52 +142,53 @@ public function setNerve($nerve)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Vessel|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getBloodSupply()
+ public function getInsertion()
{
- return $this->bloodSupply;
+ return $this->insertion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Vessel|string $bloodSupply
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $insertion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBloodSupply($bloodSupply)
+ public function setInsertion($insertion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Vessel",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $bloodSupply = self::checkTypes($bloodSupply, $types);
+ $insertion = self::checkTypes($insertion, $types);
- $this->bloodSupply = $bloodSupply;
+ $this->insertion = $insertion;
}
/**
- * @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..e8a1fe1a 100644
--- a/src/Models/SchemaOrg/MusicAlbum.php
+++ b/src/Models/SchemaOrg/MusicAlbum.php
@@ -17,9 +17,9 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "albumRelease" => "albumRelease",
"albumProductionType" => "albumProductionType",
"albumReleaseType" => "albumReleaseType",
- "albumRelease" => "albumRelease",
"byArtist" => "byArtist",
];
@@ -27,28 +27,28 @@ public static function fieldList() {
}
/**
- * Classification of the album by it's type of content: soundtrack, live album, studio album, etc.
+ * A release of this album.
*
*
- * @var \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null
+ * @var \OpenActive\Models\SchemaOrg\MusicRelease|string
*/
- protected $albumProductionType;
+ protected $albumRelease;
/**
- * The kind of release which this album is: single, EP or album.
+ * Classification of the album by its type of content: soundtrack, live album, studio album, etc.
*
*
- * @var \OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType|null
+ * @var \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null
*/
- protected $albumReleaseType;
+ protected $albumProductionType;
/**
- * A release of this album.
+ * The kind of release which this album is: single, EP or album.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicRelease|string
+ * @var \OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType|null
*/
- protected $albumRelease;
+ protected $albumReleaseType;
/**
* The artist that performed this album or recording.
@@ -58,6 +58,31 @@ public static function fieldList() {
*/
protected $byArtist;
+ /**
+ * @return \OpenActive\Models\SchemaOrg\MusicRelease|string
+ */
+ public function getAlbumRelease()
+ {
+ return $this->albumRelease;
+ }
+
+ /**
+ * @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 setAlbumRelease($albumRelease)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\MusicRelease",
+ "string",
+ ];
+
+ $albumRelease = self::checkTypes($albumRelease, $types);
+
+ $this->albumRelease = $albumRelease;
+ }
+
/**
* @return \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null
*/
@@ -108,31 +133,6 @@ public function setAlbumReleaseType($albumReleaseType)
$this->albumReleaseType = $albumReleaseType;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\MusicRelease|string
- */
- public function getAlbumRelease()
- {
- return $this->albumRelease;
- }
-
- /**
- * @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 setAlbumRelease($albumRelease)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\MusicRelease",
- "string",
- ];
-
- $albumRelease = self::checkTypes($albumRelease, $types);
-
- $this->albumRelease = $albumRelease;
- }
-
/**
* @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
diff --git a/src/Models/SchemaOrg/MusicComposition.php b/src/Models/SchemaOrg/MusicComposition.php
index c1427176..51ff4eb2 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 = [
- "iswcCode" => "iswcCode",
- "composer" => "composer",
- "musicCompositionForm" => "musicCompositionForm",
"includedComposition" => "includedComposition",
- "recordedAs" => "recordedAs",
+ "musicalKey" => "musicalKey",
"firstPerformance" => "firstPerformance",
"musicArrangement" => "musicArrangement",
+ "composer" => "composer",
"lyrics" => "lyrics",
- "musicalKey" => "musicalKey",
+ "recordedAs" => "recordedAs",
"lyricist" => "lyricist",
+ "iswcCode" => "iswcCode",
+ "musicCompositionForm" => "musicCompositionForm",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The International Standard Musical Work Code for the composition.
+ * Smaller compositions included in this work (e.g. a movement in a symphony).
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- protected $iswcCode;
+ protected $includedComposition;
/**
- * The person or organization who wrote a composition, or who is the composer of a work performed at some event.
+ * The key, mode, or scale this composition uses.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $composer;
+ protected $musicalKey;
/**
- * 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).
+ * An arrangement derived from the composition.
*
*
* @var \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- protected $includedComposition;
+ protected $musicArrangement;
/**
- * An audio recording of the work.
+ * The person or organization who wrote a composition, or who is the composer of a work performed at some event.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $recordedAs;
+ protected $composer;
/**
- * The date and place the work was first performed.
+ * The words in the song.
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $firstPerformance;
+ protected $lyrics;
/**
- * An arrangement derived from the composition.
+ * An audio recording of the work.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- protected $musicArrangement;
+ protected $recordedAs;
/**
- * The words in the song.
+ * The person who wrote the words.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $lyrics;
+ protected $lyricist;
/**
- * The key, mode, or scale this composition uses.
+ * The International Standard Musical Work Code for the composition.
*
*
* @var string
*/
- protected $musicalKey;
+ protected $iswcCode;
/**
- * The person who wrote the words.
+ * The type of composition (e.g. overture, sonata, symphony, etc.).
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $lyricist;
+ protected $musicCompositionForm;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- public function getIswcCode()
+ public function getIncludedComposition()
{
- return $this->iswcCode;
+ return $this->includedComposition;
}
/**
- * @param string $iswcCode
+ * @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 setIswcCode($iswcCode)
+ public function setIncludedComposition($includedComposition)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MusicComposition",
"string",
];
- $iswcCode = self::checkTypes($iswcCode, $types);
+ $includedComposition = self::checkTypes($includedComposition, $types);
- $this->iswcCode = $iswcCode;
+ $this->includedComposition = $includedComposition;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getComposer()
+ public function getMusicalKey()
{
- return $this->composer;
+ return $this->musicalKey;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $composer
+ * @param string $musicalKey
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setComposer($composer)
+ public function setMusicalKey($musicalKey)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $composer = self::checkTypes($composer, $types);
+ $musicalKey = self::checkTypes($musicalKey, $types);
- $this->composer = $composer;
+ $this->musicalKey = $musicalKey;
}
/**
- * @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
*/
- public function getIncludedComposition()
+ public function getMusicArrangement()
{
- return $this->includedComposition;
+ return $this->musicArrangement;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $includedComposition
+ * @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 setIncludedComposition($includedComposition)
+ public function setMusicArrangement($musicArrangement)
{
$types = [
"\OpenActive\Models\SchemaOrg\MusicComposition",
"string",
];
- $includedComposition = self::checkTypes($includedComposition, $types);
+ $musicArrangement = self::checkTypes($musicArrangement, $types);
- $this->includedComposition = $includedComposition;
+ $this->musicArrangement = $musicArrangement;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getRecordedAs()
+ public function getComposer()
{
- return $this->recordedAs;
+ return $this->composer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $recordedAs
+ * @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 setRecordedAs($recordedAs)
+ public function setComposer($composer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicRecording",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $recordedAs = self::checkTypes($recordedAs, $types);
+ $composer = self::checkTypes($composer, $types);
- $this->recordedAs = $recordedAs;
+ $this->composer = $composer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getFirstPerformance()
+ public function getLyrics()
{
- return $this->firstPerformance;
+ return $this->lyrics;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $firstPerformance
+ * @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 setFirstPerformance($firstPerformance)
+ public function setLyrics($lyrics)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $firstPerformance = self::checkTypes($firstPerformance, $types);
+ $lyrics = self::checkTypes($lyrics, $types);
- $this->firstPerformance = $firstPerformance;
+ $this->lyrics = $lyrics;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- public function getMusicArrangement()
+ public function getRecordedAs()
{
- return $this->musicArrangement;
+ return $this->recordedAs;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $musicArrangement
+ * @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 setMusicArrangement($musicArrangement)
+ public function setRecordedAs($recordedAs)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicComposition",
+ "\OpenActive\Models\SchemaOrg\MusicRecording",
"string",
];
- $musicArrangement = self::checkTypes($musicArrangement, $types);
+ $recordedAs = self::checkTypes($recordedAs, $types);
- $this->musicArrangement = $musicArrangement;
+ $this->recordedAs = $recordedAs;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getLyrics()
+ public function getLyricist()
{
- return $this->lyrics;
+ return $this->lyricist;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $lyrics
+ * @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 setLyrics($lyrics)
+ public function setLyricist($lyricist)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $lyrics = self::checkTypes($lyrics, $types);
+ $lyricist = self::checkTypes($lyricist, $types);
- $this->lyrics = $lyrics;
+ $this->lyricist = $lyricist;
}
/**
* @return string
*/
- public function getMusicalKey()
+ public function getIswcCode()
{
- return $this->musicalKey;
+ return $this->iswcCode;
}
/**
- * @param string $musicalKey
+ * @param string $iswcCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMusicalKey($musicalKey)
+ public function setIswcCode($iswcCode)
{
$types = [
"string",
];
- $musicalKey = self::checkTypes($musicalKey, $types);
+ $iswcCode = self::checkTypes($iswcCode, $types);
- $this->musicalKey = $musicalKey;
+ $this->iswcCode = $iswcCode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getLyricist()
+ public function getMusicCompositionForm()
{
- return $this->lyricist;
+ return $this->musicCompositionForm;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $lyricist
+ * @param string $musicCompositionForm
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLyricist($lyricist)
+ public function setMusicCompositionForm($musicCompositionForm)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $lyricist = self::checkTypes($lyricist, $types);
+ $musicCompositionForm = self::checkTypes($musicCompositionForm, $types);
- $this->lyricist = $lyricist;
+ $this->musicCompositionForm = $musicCompositionForm;
}
}
diff --git a/src/Models/SchemaOrg/MusicGroup.php b/src/Models/SchemaOrg/MusicGroup.php
index 6d520149..2f0f0b2d 100644
--- a/src/Models/SchemaOrg/MusicGroup.php
+++ b/src/Models/SchemaOrg/MusicGroup.php
@@ -18,11 +18,11 @@ public static function getType()
public static function fieldList() {
$fields = [
"tracks" => "tracks",
+ "track" => "track",
+ "album" => "album",
"genre" => "genre",
"musicGroupMember" => "musicGroupMember",
"albums" => "albums",
- "track" => "track",
- "album" => "album",
];
return array_merge(parent::fieldList(), $fields);
@@ -37,44 +37,44 @@ public static function fieldList() {
protected $tracks;
/**
- * Genre of the creative work, broadcast channel or group.
+ * A music recording (track)—usually a single song. If an ItemList is given, the list should contain items of type MusicRecording.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\ItemList|string
*/
- protected $genre;
+ protected $track;
/**
- * A member of a music group—for example, John, Paul, George, or Ringo.
+ * A music album.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- protected $musicGroupMember;
+ protected $album;
/**
- * A collection of music albums.
+ * Genre of the creative work, broadcast channel or group.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @var string
*/
- protected $albums;
+ protected $genre;
/**
- * 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 collection of music albums.
*
*
* @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- protected $album;
+ protected $albums;
/**
* @return \OpenActive\Models\SchemaOrg\MusicRecording|string
@@ -102,128 +102,128 @@ public function setTracks($tracks)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\ItemList|string
*/
- public function getGenre()
+ public function getTrack()
{
- return $this->genre;
+ return $this->track;
}
/**
- * @param string $genre
+ * @param \OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\ItemList|string $track
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGenre($genre)
+ public function setTrack($track)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MusicRecording",
+ "\OpenActive\Models\SchemaOrg\ItemList",
"string",
];
- $genre = self::checkTypes($genre, $types);
+ $track = self::checkTypes($track, $types);
- $this->genre = $genre;
+ $this->track = $track;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- public function getMusicGroupMember()
+ public function getAlbum()
{
- return $this->musicGroupMember;
+ return $this->album;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $musicGroupMember
+ * @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 setMusicGroupMember($musicGroupMember)
+ public function setAlbum($album)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicAlbum",
"string",
];
- $musicGroupMember = self::checkTypes($musicGroupMember, $types);
+ $album = self::checkTypes($album, $types);
- $this->musicGroupMember = $musicGroupMember;
+ $this->album = $album;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @return string
*/
- public function getAlbums()
+ public function getGenre()
{
- return $this->albums;
+ return $this->genre;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $albums
+ * @param string $genre
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlbums($albums)
+ public function setGenre($genre)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicAlbum",
"string",
];
- $albums = self::checkTypes($albums, $types);
+ $genre = self::checkTypes($genre, $types);
- $this->albums = $albums;
+ $this->genre = $genre;
}
/**
- * @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
*/
- public function getAlbum()
+ public function getAlbums()
{
- return $this->album;
+ return $this->albums;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $album
+ * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $albums
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlbum($album)
+ public function setAlbums($albums)
{
$types = [
"\OpenActive\Models\SchemaOrg\MusicAlbum",
"string",
];
- $album = self::checkTypes($album, $types);
+ $albums = self::checkTypes($albums, $types);
- $this->album = $album;
+ $this->albums = $albums;
}
}
diff --git a/src/Models/SchemaOrg/MusicPlaylist.php b/src/Models/SchemaOrg/MusicPlaylist.php
index b445413a..7e942094 100644
--- a/src/Models/SchemaOrg/MusicPlaylist.php
+++ b/src/Models/SchemaOrg/MusicPlaylist.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"tracks" => "tracks",
- "numTracks" => "numTracks",
"track" => "track",
+ "numTracks" => "numTracks",
];
return array_merge(parent::fieldList(), $fields);
@@ -34,20 +34,20 @@ public static function fieldList() {
protected $tracks;
/**
- * The number of tracks in this album or playlist.
+ * A music recording (track)—usually a single song. If an ItemList is given, the list should contain items of type MusicRecording.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\ItemList|string
*/
- protected $numTracks;
+ protected $track;
/**
- * A music recording (track)—usually a single song. If an ItemList is given, the list should contain items of type MusicRecording.
+ * The number of tracks in this album or playlist.
*
*
- * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @var int|null
*/
- protected $track;
+ protected $numTracks;
/**
* @return \OpenActive\Models\SchemaOrg\MusicRecording|string
@@ -75,54 +75,54 @@ public function setTracks($tracks)
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\ItemList|string
*/
- public function getNumTracks()
+ public function getTrack()
{
- return $this->numTracks;
+ return $this->track;
}
/**
- * @param int|null $numTracks
+ * @param \OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\ItemList|string $track
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumTracks($numTracks)
+ public function setTrack($track)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\MusicRecording",
+ "\OpenActive\Models\SchemaOrg\ItemList",
+ "string",
];
- $numTracks = self::checkTypes($numTracks, $types);
+ $track = self::checkTypes($track, $types);
- $this->numTracks = $numTracks;
+ $this->track = $track;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @return int|null
*/
- public function getTrack()
+ public function getNumTracks()
{
- return $this->track;
+ return $this->numTracks;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string $track
+ * @param int|null $numTracks
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTrack($track)
+ public function setNumTracks($numTracks)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ItemList",
- "\OpenActive\Models\SchemaOrg\MusicRecording",
- "string",
+ "int",
+ "null",
];
- $track = self::checkTypes($track, $types);
+ $numTracks = self::checkTypes($numTracks, $types);
- $this->track = $track;
+ $this->numTracks = $numTracks;
}
}
diff --git a/src/Models/SchemaOrg/MusicRecording.php b/src/Models/SchemaOrg/MusicRecording.php
index 9784c961..29937c0a 100644
--- a/src/Models/SchemaOrg/MusicRecording.php
+++ b/src/Models/SchemaOrg/MusicRecording.php
@@ -17,48 +17,48 @@ public static function getType()
public static function fieldList() {
$fields = [
- "isrcCode" => "isrcCode",
"inPlaylist" => "inPlaylist",
- "inAlbum" => "inAlbum",
"recordingOf" => "recordingOf",
- "duration" => "duration",
+ "isrcCode" => "isrcCode",
"byArtist" => "byArtist",
+ "duration" => "duration",
+ "inAlbum" => "inAlbum",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The International Standard Recording Code for the recording.
+ * The playlist to which this recording belongs.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MusicPlaylist|string
*/
- protected $isrcCode;
+ protected $inPlaylist;
/**
- * The playlist to which this recording belongs.
+ * The composition this track is a recording of.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicPlaylist|string
+ * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- protected $inPlaylist;
+ protected $recordingOf;
/**
- * The album to which this recording belongs.
+ * The International Standard Recording Code for the recording.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @var string
*/
- protected $inAlbum;
+ protected $isrcCode;
/**
- * The composition this track is a recording of.
+ * The artist that performed this album or recording.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- protected $recordingOf;
+ protected $byArtist;
/**
* The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
@@ -69,110 +69,111 @@ public static function fieldList() {
protected $duration;
/**
- * The artist that performed this album or recording.
+ * The album to which this recording belongs.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- protected $byArtist;
+ protected $inAlbum;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MusicPlaylist|string
*/
- public function getIsrcCode()
+ public function getInPlaylist()
{
- return $this->isrcCode;
+ return $this->inPlaylist;
}
/**
- * @param string $isrcCode
+ * @param \OpenActive\Models\SchemaOrg\MusicPlaylist|string $inPlaylist
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsrcCode($isrcCode)
+ public function setInPlaylist($inPlaylist)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MusicPlaylist",
"string",
];
- $isrcCode = self::checkTypes($isrcCode, $types);
+ $inPlaylist = self::checkTypes($inPlaylist, $types);
- $this->isrcCode = $isrcCode;
+ $this->inPlaylist = $inPlaylist;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicPlaylist|string
+ * @return \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- public function getInPlaylist()
+ public function getRecordingOf()
{
- return $this->inPlaylist;
+ return $this->recordingOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicPlaylist|string $inPlaylist
+ * @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 setInPlaylist($inPlaylist)
+ public function setRecordingOf($recordingOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicPlaylist",
+ "\OpenActive\Models\SchemaOrg\MusicComposition",
"string",
];
- $inPlaylist = self::checkTypes($inPlaylist, $types);
+ $recordingOf = self::checkTypes($recordingOf, $types);
- $this->inPlaylist = $inPlaylist;
+ $this->recordingOf = $recordingOf;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @return string
*/
- public function getInAlbum()
+ public function getIsrcCode()
{
- return $this->inAlbum;
+ return $this->isrcCode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $inAlbum
+ * @param string $isrcCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInAlbum($inAlbum)
+ public function setIsrcCode($isrcCode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicAlbum",
"string",
];
- $inAlbum = self::checkTypes($inAlbum, $types);
+ $isrcCode = self::checkTypes($isrcCode, $types);
- $this->inAlbum = $inAlbum;
+ $this->isrcCode = $isrcCode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- public function getRecordingOf()
+ public function getByArtist()
{
- return $this->recordingOf;
+ return $this->byArtist;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $recordingOf
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $byArtist
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecordingOf($recordingOf)
+ public function setByArtist($byArtist)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicComposition",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
"string",
];
- $recordingOf = self::checkTypes($recordingOf, $types);
+ $byArtist = self::checkTypes($byArtist, $types);
- $this->recordingOf = $recordingOf;
+ $this->byArtist = $byArtist;
}
/**
@@ -202,29 +203,28 @@ public function setDuration($duration)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- public function getByArtist()
+ public function getInAlbum()
{
- return $this->byArtist;
+ return $this->inAlbum;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $byArtist
+ * @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 setByArtist($byArtist)
+ public function setInAlbum($inAlbum)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\MusicGroup",
+ "\OpenActive\Models\SchemaOrg\MusicAlbum",
"string",
];
- $byArtist = self::checkTypes($byArtist, $types);
+ $inAlbum = self::checkTypes($inAlbum, $types);
- $this->byArtist = $byArtist;
+ $this->inAlbum = $inAlbum;
}
}
diff --git a/src/Models/SchemaOrg/MusicRelease.php b/src/Models/SchemaOrg/MusicRelease.php
index 163cea5a..bd86d2d2 100644
--- a/src/Models/SchemaOrg/MusicRelease.php
+++ b/src/Models/SchemaOrg/MusicRelease.php
@@ -17,48 +17,48 @@ public static function getType()
public static function fieldList() {
$fields = [
- "releaseOf" => "releaseOf",
+ "creditedTo" => "creditedTo",
+ "catalogNumber" => "catalogNumber",
"musicReleaseFormat" => "musicReleaseFormat",
"duration" => "duration",
- "creditedTo" => "creditedTo",
"recordLabel" => "recordLabel",
- "catalogNumber" => "catalogNumber",
+ "releaseOf" => "releaseOf",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The album this is a release of.
+ * 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\MusicAlbum|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $releaseOf;
+ protected $creditedTo;
/**
- * Format of this release (the type of recording media used, ie. compact disc, digital media, LP, etc.).
+ * The catalog number for the release.
*
*
- * @var \OpenActive\Enums\SchemaOrg\MusicReleaseFormatType|null
+ * @var string
*/
- protected $musicReleaseFormat;
+ protected $catalogNumber;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * Format of this release (the type of recording media used, i.e. compact disc, digital media, LP, etc.).
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Enums\SchemaOrg\MusicReleaseFormatType|null
*/
- protected $duration;
+ protected $musicReleaseFormat;
/**
- * The group the release is credited to if different than the byArtist. For example, Red and Blue is credited to "Stefani Germanotta Band", but by Lady Gaga.
+ * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var DateInterval|string|null
*/
- protected $creditedTo;
+ protected $duration;
/**
* The label that issued the release.
@@ -69,36 +69,61 @@ public static function fieldList() {
protected $recordLabel;
/**
- * The catalog number for the release.
+ * The album this is a release of.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- protected $catalogNumber;
+ protected $releaseOf;
/**
- * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getReleaseOf()
+ public function getCreditedTo()
{
- return $this->releaseOf;
+ return $this->creditedTo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $releaseOf
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $creditedTo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReleaseOf($releaseOf)
+ public function setCreditedTo($creditedTo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicAlbum",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $releaseOf = self::checkTypes($releaseOf, $types);
+ $creditedTo = self::checkTypes($creditedTo, $types);
- $this->releaseOf = $releaseOf;
+ $this->creditedTo = $creditedTo;
+ }
+
+ /**
+ * @return string
+ */
+ public function getCatalogNumber()
+ {
+ return $this->catalogNumber;
+ }
+
+ /**
+ * @param string $catalogNumber
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setCatalogNumber($catalogNumber)
+ {
+ $types = [
+ "string",
+ ];
+
+ $catalogNumber = self::checkTypes($catalogNumber, $types);
+
+ $this->catalogNumber = $catalogNumber;
}
/**
@@ -152,32 +177,6 @@ public function setDuration($duration)
$this->duration = $duration;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
- */
- public function getCreditedTo()
- {
- return $this->creditedTo;
- }
-
- /**
- * @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 setCreditedTo($creditedTo)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
- ];
-
- $creditedTo = self::checkTypes($creditedTo, $types);
-
- $this->creditedTo = $creditedTo;
- }
-
/**
* @return \OpenActive\Models\SchemaOrg\Organization|string
*/
@@ -204,27 +203,28 @@ public function setRecordLabel($recordLabel)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- public function getCatalogNumber()
+ public function getReleaseOf()
{
- return $this->catalogNumber;
+ return $this->releaseOf;
}
/**
- * @param string $catalogNumber
+ * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $releaseOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCatalogNumber($catalogNumber)
+ public function setReleaseOf($releaseOf)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MusicAlbum",
"string",
];
- $catalogNumber = self::checkTypes($catalogNumber, $types);
+ $releaseOf = self::checkTypes($releaseOf, $types);
- $this->catalogNumber = $catalogNumber;
+ $this->releaseOf = $releaseOf;
}
}
diff --git a/src/Models/SchemaOrg/Nerve.php b/src/Models/SchemaOrg/Nerve.php
index 3063b8b5..a01cac9c 100644
--- a/src/Models/SchemaOrg/Nerve.php
+++ b/src/Models/SchemaOrg/Nerve.php
@@ -17,146 +17,146 @@ public static function getType()
public static function fieldList() {
$fields = [
- "sensoryUnit" => "sensoryUnit",
"branch" => "branch",
- "sourcedFrom" => "sourcedFrom",
"nerveMotor" => "nerveMotor",
+ "sensoryUnit" => "sensoryUnit",
+ "sourcedFrom" => "sourcedFrom",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The neurological pathway extension that inputs and sends information to the brain or spinal cord.
+ * The branches that delineate from the nerve bundle. Not to be confused with [[branchOf]].
*
*
- * @var \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $sensoryUnit;
+ protected $branch;
/**
- * The branches that delineate from the nerve bundle. Not to be confused with [[branchOf]].
+ * The neurological pathway extension that involves muscle control.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\Muscle|string
*/
- protected $branch;
+ protected $nerveMotor;
/**
- * The neurological pathway that originates the neurons.
+ * The neurological pathway extension that inputs and sends information to the brain or spinal cord.
*
*
- * @var \OpenActive\Models\SchemaOrg\BrainStructure|string
+ * @var \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $sourcedFrom;
+ protected $sensoryUnit;
/**
- * The neurological pathway extension that involves muscle control.
+ * The neurological pathway that originates the neurons.
*
*
- * @var \OpenActive\Models\SchemaOrg\Muscle|string
+ * @var \OpenActive\Models\SchemaOrg\BrainStructure|string
*/
- protected $nerveMotor;
+ protected $sourcedFrom;
/**
- * @return \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getSensoryUnit()
+ public function getBranch()
{
- return $this->sensoryUnit;
+ return $this->branch;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $sensoryUnit
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $branch
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSensoryUnit($sensoryUnit)
+ public function setBranch($branch)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SuperficialAnatomy",
"\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $sensoryUnit = self::checkTypes($sensoryUnit, $types);
+ $branch = self::checkTypes($branch, $types);
- $this->sensoryUnit = $sensoryUnit;
+ $this->branch = $branch;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\Muscle|string
*/
- public function getBranch()
+ public function getNerveMotor()
{
- return $this->branch;
+ return $this->nerveMotor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $branch
+ * @param \OpenActive\Models\SchemaOrg\Muscle|string $nerveMotor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBranch($branch)
+ public function setNerveMotor($nerveMotor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\Muscle",
"string",
];
- $branch = self::checkTypes($branch, $types);
+ $nerveMotor = self::checkTypes($nerveMotor, $types);
- $this->branch = $branch;
+ $this->nerveMotor = $nerveMotor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BrainStructure|string
+ * @return \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getSourcedFrom()
+ public function getSensoryUnit()
{
- return $this->sourcedFrom;
+ return $this->sensoryUnit;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BrainStructure|string $sourcedFrom
+ * @param \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $sensoryUnit
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSourcedFrom($sourcedFrom)
+ public function setSensoryUnit($sensoryUnit)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BrainStructure",
+ "\OpenActive\Models\SchemaOrg\SuperficialAnatomy",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $sourcedFrom = self::checkTypes($sourcedFrom, $types);
+ $sensoryUnit = self::checkTypes($sensoryUnit, $types);
- $this->sourcedFrom = $sourcedFrom;
+ $this->sensoryUnit = $sensoryUnit;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Muscle|string
+ * @return \OpenActive\Models\SchemaOrg\BrainStructure|string
*/
- public function getNerveMotor()
+ public function getSourcedFrom()
{
- return $this->nerveMotor;
+ return $this->sourcedFrom;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Muscle|string $nerveMotor
+ * @param \OpenActive\Models\SchemaOrg\BrainStructure|string $sourcedFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNerveMotor($nerveMotor)
+ public function setSourcedFrom($sourcedFrom)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Muscle",
+ "\OpenActive\Models\SchemaOrg\BrainStructure",
"string",
];
- $nerveMotor = self::checkTypes($nerveMotor, $types);
+ $sourcedFrom = self::checkTypes($sourcedFrom, $types);
- $this->nerveMotor = $nerveMotor;
+ $this->sourcedFrom = $sourcedFrom;
}
}
diff --git a/src/Models/SchemaOrg/NewsArticle.php b/src/Models/SchemaOrg/NewsArticle.php
index b020062d..7e00683e 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",
- "printColumn" => "printColumn",
+ "dateline" => "dateline",
"printPage" => "printPage",
"printSection" => "printSection",
- "dateline" => "dateline",
+ "printColumn" => "printColumn",
];
return array_merge(parent::fieldList(), $fields);
@@ -36,12 +36,17 @@ 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).
@@ -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".
- *
+ * The number of the column in which the NewsArticle appears in the print edition.
*
*
* @var string
*/
- protected $dateline;
+ protected $printColumn;
/**
* @return string
@@ -99,25 +99,25 @@ 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;
}
/**
@@ -171,25 +171,25 @@ public function setPrintSection($printSection)
/**
* @return string
*/
- public function getDateline()
+ public function getPrintColumn()
{
- return $this->dateline;
+ return $this->printColumn;
}
/**
- * @param string $dateline
+ * @param string $printColumn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateline($dateline)
+ public function setPrintColumn($printColumn)
{
$types = [
"string",
];
- $dateline = self::checkTypes($dateline, $types);
+ $printColumn = self::checkTypes($printColumn, $types);
- $this->dateline = $dateline;
+ $this->printColumn = $printColumn;
}
}
diff --git a/src/Models/SchemaOrg/NewsMediaOrganization.php b/src/Models/SchemaOrg/NewsMediaOrganization.php
index fc8abd3d..d9a98175 100644
--- a/src/Models/SchemaOrg/NewsMediaOrganization.php
+++ b/src/Models/SchemaOrg/NewsMediaOrganization.php
@@ -17,45 +17,37 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "missionCoveragePrioritiesPolicy" => "missionCoveragePrioritiesPolicy",
"ownershipFundingInfo" => "ownershipFundingInfo",
- "correctionsPolicy" => "correctionsPolicy",
- "diversityStaffingReport" => "diversityStaffingReport",
"diversityPolicy" => "diversityPolicy",
- "ethicsPolicy" => "ethicsPolicy",
- "missionCoveragePrioritiesPolicy" => "missionCoveragePrioritiesPolicy",
+ "noBylinesPolicy" => "noBylinesPolicy",
"actionableFeedbackPolicy" => "actionableFeedbackPolicy",
+ "verificationFactCheckingPolicy" => "verificationFactCheckingPolicy",
"masthead" => "masthead",
+ "ethicsPolicy" => "ethicsPolicy",
+ "correctionsPolicy" => "correctionsPolicy",
+ "diversityStaffingReport" => "diversityStaffingReport",
"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.
- *
- *
- * @var string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork
- */
- protected $ownershipFundingInfo;
-
- /**
- * For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.
+ * For a [[NewsMediaOrganization]], a statement on coverage priorities, including any public agenda or stance on issues.
*
*
* @var string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $correctionsPolicy;
+ protected $missionCoveragePrioritiesPolicy;
/**
- * 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 an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Article
+ * @var string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\AboutPage
*/
- protected $diversityStaffingReport;
+ protected $ownershipFundingInfo;
/**
* 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.
@@ -66,335 +58,343 @@ public static function fieldList() {
protected $diversityPolicy;
/**
- * Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.
+ * For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement explaining when authors of articles are not named in bylines.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $ethicsPolicy;
+ protected $noBylinesPolicy;
/**
- * For a [[NewsMediaOrganization]], a statement on coverage priorities, including any public agenda or stance on issues.
+ * For 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\CreativeWork|string
*/
- protected $missionCoveragePrioritiesPolicy;
+ protected $actionableFeedbackPolicy;
/**
- * 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.
+ * Disclosure about verification and fact-checking processes for a [[NewsMediaOrganization]] or other fact-checking [[Organization]].
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $actionableFeedbackPolicy;
+ protected $verificationFactCheckingPolicy;
/**
* For a [[NewsMediaOrganization]], a link to the masthead page or a page listing top editorial management.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
protected $masthead;
/**
- * For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.
+ * Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $unnamedSourcesPolicy;
+ protected $ethicsPolicy;
/**
- * Disclosure about verification and fact-checking processes for a [[NewsMediaOrganization]] or other fact-checking [[Organization]].
+ * 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 $verificationFactCheckingPolicy;
+ protected $correctionsPolicy;
/**
- * For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement explaining when authors of articles are not named in bylines.
+ * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.
+ *
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\Article
+ */
+ protected $diversityStaffingReport;
+
+ /**
+ * For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.
*
*
* @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $noBylinesPolicy;
+ protected $unnamedSourcesPolicy;
/**
- * @return string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getOwnershipFundingInfo()
+ public function getMissionCoveragePrioritiesPolicy()
{
- return $this->ownershipFundingInfo;
+ return $this->missionCoveragePrioritiesPolicy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork $ownershipFundingInfo
+ * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $missionCoveragePrioritiesPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOwnershipFundingInfo($ownershipFundingInfo)
+ public function setMissionCoveragePrioritiesPolicy($missionCoveragePrioritiesPolicy)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\AboutPage",
"\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types);
+ $missionCoveragePrioritiesPolicy = self::checkTypes($missionCoveragePrioritiesPolicy, $types);
- $this->ownershipFundingInfo = $ownershipFundingInfo;
+ $this->missionCoveragePrioritiesPolicy = $missionCoveragePrioritiesPolicy;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\AboutPage
*/
- public function getCorrectionsPolicy()
+ public function getOwnershipFundingInfo()
{
- return $this->correctionsPolicy;
+ return $this->ownershipFundingInfo;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $correctionsPolicy
+ * @param string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\AboutPage $ownershipFundingInfo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCorrectionsPolicy($correctionsPolicy)
+ public function setOwnershipFundingInfo($ownershipFundingInfo)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\AboutPage",
];
- $correctionsPolicy = self::checkTypes($correctionsPolicy, $types);
+ $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types);
- $this->correctionsPolicy = $correctionsPolicy;
+ $this->ownershipFundingInfo = $ownershipFundingInfo;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Article
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getDiversityStaffingReport()
+ public function getDiversityPolicy()
{
- return $this->diversityStaffingReport;
+ return $this->diversityPolicy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Article $diversityStaffingReport
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $diversityPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDiversityStaffingReport($diversityStaffingReport)
+ public function setDiversityPolicy($diversityPolicy)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
- "\OpenActive\Models\SchemaOrg\Article",
];
- $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types);
+ $diversityPolicy = self::checkTypes($diversityPolicy, $types);
- $this->diversityStaffingReport = $diversityStaffingReport;
+ $this->diversityPolicy = $diversityPolicy;
}
/**
* @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getDiversityPolicy()
+ public function getNoBylinesPolicy()
{
- return $this->diversityPolicy;
+ return $this->noBylinesPolicy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $diversityPolicy
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $noBylinesPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDiversityPolicy($diversityPolicy)
+ public function setNoBylinesPolicy($noBylinesPolicy)
{
$types = [
"\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $diversityPolicy = self::checkTypes($diversityPolicy, $types);
+ $noBylinesPolicy = self::checkTypes($noBylinesPolicy, $types);
- $this->diversityPolicy = $diversityPolicy;
+ $this->noBylinesPolicy = $noBylinesPolicy;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getEthicsPolicy()
+ public function getActionableFeedbackPolicy()
{
- return $this->ethicsPolicy;
+ return $this->actionableFeedbackPolicy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $ethicsPolicy
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $actionableFeedbackPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEthicsPolicy($ethicsPolicy)
+ public function setActionableFeedbackPolicy($actionableFeedbackPolicy)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $ethicsPolicy = self::checkTypes($ethicsPolicy, $types);
+ $actionableFeedbackPolicy = self::checkTypes($actionableFeedbackPolicy, $types);
- $this->ethicsPolicy = $ethicsPolicy;
+ $this->actionableFeedbackPolicy = $actionableFeedbackPolicy;
}
/**
* @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getMissionCoveragePrioritiesPolicy()
+ public function getVerificationFactCheckingPolicy()
{
- return $this->missionCoveragePrioritiesPolicy;
+ return $this->verificationFactCheckingPolicy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $missionCoveragePrioritiesPolicy
+ * @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 setMissionCoveragePrioritiesPolicy($missionCoveragePrioritiesPolicy)
+ public function setVerificationFactCheckingPolicy($verificationFactCheckingPolicy)
{
$types = [
"\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $missionCoveragePrioritiesPolicy = self::checkTypes($missionCoveragePrioritiesPolicy, $types);
+ $verificationFactCheckingPolicy = self::checkTypes($verificationFactCheckingPolicy, $types);
- $this->missionCoveragePrioritiesPolicy = $missionCoveragePrioritiesPolicy;
+ $this->verificationFactCheckingPolicy = $verificationFactCheckingPolicy;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getActionableFeedbackPolicy()
+ public function getMasthead()
{
- return $this->actionableFeedbackPolicy;
+ return $this->masthead;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $actionableFeedbackPolicy
+ * @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 setActionableFeedbackPolicy($actionableFeedbackPolicy)
+ public function setMasthead($masthead)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $actionableFeedbackPolicy = self::checkTypes($actionableFeedbackPolicy, $types);
+ $masthead = self::checkTypes($masthead, $types);
- $this->actionableFeedbackPolicy = $actionableFeedbackPolicy;
+ $this->masthead = $masthead;
}
/**
* @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 string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getUnnamedSourcesPolicy()
+ public function getCorrectionsPolicy()
{
- return $this->unnamedSourcesPolicy;
+ return $this->correctionsPolicy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $unnamedSourcesPolicy
+ * @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 setUnnamedSourcesPolicy($unnamedSourcesPolicy)
+ public function setCorrectionsPolicy($correctionsPolicy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $unnamedSourcesPolicy = self::checkTypes($unnamedSourcesPolicy, $types);
+ $correctionsPolicy = self::checkTypes($correctionsPolicy, $types);
- $this->unnamedSourcesPolicy = $unnamedSourcesPolicy;
+ $this->correctionsPolicy = $correctionsPolicy;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return string|\OpenActive\Models\SchemaOrg\Article
*/
- public function getVerificationFactCheckingPolicy()
+ public function getDiversityStaffingReport()
{
- return $this->verificationFactCheckingPolicy;
+ return $this->diversityStaffingReport;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $verificationFactCheckingPolicy
+ * @param string|\OpenActive\Models\SchemaOrg\Article $diversityStaffingReport
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVerificationFactCheckingPolicy($verificationFactCheckingPolicy)
+ public function setDiversityStaffingReport($diversityStaffingReport)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Article",
];
- $verificationFactCheckingPolicy = self::checkTypes($verificationFactCheckingPolicy, $types);
+ $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types);
- $this->verificationFactCheckingPolicy = $verificationFactCheckingPolicy;
+ $this->diversityStaffingReport = $diversityStaffingReport;
}
/**
* @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..39466287 100644
--- a/src/Models/SchemaOrg/NutritionInformation.php
+++ b/src/Models/SchemaOrg/NutritionInformation.php
@@ -17,17 +17,17 @@ 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",
"fiberContent" => "fiberContent",
"unsaturatedFatContent" => "unsaturatedFatContent",
+ "sodiumContent" => "sodiumContent",
+ "proteinContent" => "proteinContent",
+ "cholesterolContent" => "cholesterolContent",
+ "servingSize" => "servingSize",
+ "calories" => "calories",
+ "sugarContent" => "sugarContent",
+ "fatContent" => "fatContent",
"saturatedFatContent" => "saturatedFatContent",
];
@@ -35,36 +35,36 @@ public static function fieldList() {
}
/**
- * The number of grams of fat.
+ * The number of grams of carbohydrates.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $fatContent;
+ protected $carbohydrateContent;
/**
- * 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 number of grams of fiber.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $proteinContent;
+ protected $fiberContent;
/**
- * The number of calories.
+ * The number of grams of unsaturated fat.
*
*
- * @var \OpenActive\Models\SchemaOrg\Energy|string
+ * @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $calories;
+ protected $unsaturatedFatContent;
/**
* The number of milligrams of sodium.
@@ -75,52 +75,52 @@ public static function fieldList() {
protected $sodiumContent;
/**
- * The number of milligrams of cholesterol.
+ * The number of grams of protein.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $cholesterolContent;
+ protected $proteinContent;
/**
- * The number of grams of sugar.
+ * The number of milligrams of cholesterol.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $sugarContent;
+ protected $cholesterolContent;
/**
- * The number of grams of carbohydrates.
+ * The serving size, in terms of the number of volume or mass.
*
*
- * @var \OpenActive\Models\SchemaOrg\Mass|string
+ * @var string
*/
- protected $carbohydrateContent;
+ protected $servingSize;
/**
- * The number of grams of trans fat.
+ * The number of calories.
*
*
- * @var \OpenActive\Models\SchemaOrg\Mass|string
+ * @var \OpenActive\Models\SchemaOrg\Energy|string
*/
- protected $transFatContent;
+ protected $calories;
/**
- * The number of grams of fiber.
+ * The number of grams of sugar.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $fiberContent;
+ protected $sugarContent;
/**
- * The number of grams of unsaturated fat.
+ * The number of grams of fat.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $unsaturatedFatContent;
+ protected $fatContent;
/**
* The number of grams of saturated fat.
@@ -133,100 +133,101 @@ public static function fieldList() {
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getFatContent()
+ public function getCarbohydrateContent()
{
- return $this->fatContent;
+ return $this->carbohydrateContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $fatContent
+ * @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 setFatContent($fatContent)
+ public function setCarbohydrateContent($carbohydrateContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $fatContent = self::checkTypes($fatContent, $types);
+ $carbohydrateContent = self::checkTypes($carbohydrateContent, $types);
- $this->fatContent = $fatContent;
+ $this->carbohydrateContent = $carbohydrateContent;
}
/**
- * @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
*/
- public function getProteinContent()
+ public function getFiberContent()
{
- return $this->proteinContent;
+ return $this->fiberContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $proteinContent
+ * @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 setProteinContent($proteinContent)
+ public function setFiberContent($fiberContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $proteinContent = self::checkTypes($proteinContent, $types);
+ $fiberContent = self::checkTypes($fiberContent, $types);
- $this->proteinContent = $proteinContent;
+ $this->fiberContent = $fiberContent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Energy|string
+ * @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getCalories()
+ public function getUnsaturatedFatContent()
{
- return $this->calories;
+ return $this->unsaturatedFatContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Energy|string $calories
+ * @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 setCalories($calories)
+ public function setUnsaturatedFatContent($unsaturatedFatContent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Energy",
+ "\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $calories = self::checkTypes($calories, $types);
+ $unsaturatedFatContent = self::checkTypes($unsaturatedFatContent, $types);
- $this->calories = $calories;
+ $this->unsaturatedFatContent = $unsaturatedFatContent;
}
/**
@@ -257,151 +258,150 @@ public function setSodiumContent($sodiumContent)
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getCholesterolContent()
+ public function getProteinContent()
{
- return $this->cholesterolContent;
+ return $this->proteinContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $cholesterolContent
+ * @param \OpenActive\Models\SchemaOrg\Mass|string $proteinContent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCholesterolContent($cholesterolContent)
+ public function setProteinContent($proteinContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $cholesterolContent = self::checkTypes($cholesterolContent, $types);
+ $proteinContent = self::checkTypes($proteinContent, $types);
- $this->cholesterolContent = $cholesterolContent;
+ $this->proteinContent = $proteinContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getSugarContent()
+ public function getCholesterolContent()
{
- return $this->sugarContent;
+ return $this->cholesterolContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $sugarContent
+ * @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 setSugarContent($sugarContent)
+ public function setCholesterolContent($cholesterolContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $sugarContent = self::checkTypes($sugarContent, $types);
+ $cholesterolContent = self::checkTypes($cholesterolContent, $types);
- $this->sugarContent = $sugarContent;
+ $this->cholesterolContent = $cholesterolContent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Mass|string
+ * @return string
*/
- public function getCarbohydrateContent()
+ public function getServingSize()
{
- return $this->carbohydrateContent;
+ return $this->servingSize;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $carbohydrateContent
+ * @param string $servingSize
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCarbohydrateContent($carbohydrateContent)
+ public function setServingSize($servingSize)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $carbohydrateContent = self::checkTypes($carbohydrateContent, $types);
+ $servingSize = self::checkTypes($servingSize, $types);
- $this->carbohydrateContent = $carbohydrateContent;
+ $this->servingSize = $servingSize;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Mass|string
+ * @return \OpenActive\Models\SchemaOrg\Energy|string
*/
- public function getTransFatContent()
+ public function getCalories()
{
- return $this->transFatContent;
+ return $this->calories;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $transFatContent
+ * @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 setTransFatContent($transFatContent)
+ public function setCalories($calories)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Mass",
+ "\OpenActive\Models\SchemaOrg\Energy",
"string",
];
- $transFatContent = self::checkTypes($transFatContent, $types);
+ $calories = self::checkTypes($calories, $types);
- $this->transFatContent = $transFatContent;
+ $this->calories = $calories;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getFiberContent()
+ public function getSugarContent()
{
- return $this->fiberContent;
+ return $this->sugarContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $fiberContent
+ * @param \OpenActive\Models\SchemaOrg\Mass|string $sugarContent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFiberContent($fiberContent)
+ public function setSugarContent($sugarContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $fiberContent = self::checkTypes($fiberContent, $types);
+ $sugarContent = self::checkTypes($sugarContent, $types);
- $this->fiberContent = $fiberContent;
+ $this->sugarContent = $sugarContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getUnsaturatedFatContent()
+ public function getFatContent()
{
- return $this->unsaturatedFatContent;
+ return $this->fatContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $unsaturatedFatContent
+ * @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 setUnsaturatedFatContent($unsaturatedFatContent)
+ public function setFatContent($fatContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $unsaturatedFatContent = self::checkTypes($unsaturatedFatContent, $types);
+ $fatContent = self::checkTypes($fatContent, $types);
- $this->unsaturatedFatContent = $unsaturatedFatContent;
+ $this->fatContent = $fatContent;
}
/**
diff --git a/src/Models/SchemaOrg/Observation.php b/src/Models/SchemaOrg/Observation.php
index 95b9a4a5..eb9e061d 100644
--- a/src/Models/SchemaOrg/Observation.php
+++ b/src/Models/SchemaOrg/Observation.php
@@ -5,7 +5,7 @@
/**
*
*/
-class Observation extends \OpenActive\Models\SchemaOrg\Intangible
+class Observation extends \OpenActive\Models\SchemaOrg\QuantitativeValue
{
/**
* @return string[]|null
@@ -17,40 +17,91 @@ public static function getType()
public static function fieldList() {
$fields = [
- "measuredValue" => "measuredValue",
- "observedNode" => "observedNode",
+ "observationPeriod" => "observationPeriod",
+ "variableMeasured" => "variableMeasured",
+ "observationAbout" => "observationAbout",
+ "measurementTechnique" => "measurementTechnique",
+ "measurementDenominator" => "measurementDenominator",
+ "marginOfError" => "marginOfError",
"measuredProperty" => "measuredProperty",
+ "measurementMethod" => "measurementMethod",
"observationDate" => "observationDate",
- "marginOfError" => "marginOfError",
+ "measurementQualifier" => "measurementQualifier",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The measuredValue of an [[Observation]].
+ * The length of time an Observation took place over. The format follows `P[0-9]*[Y|M|D|h|m|s]`. For example, P1Y is Period 1 Year, P3M is Period 3 Months, P3h is Period 3 hours.
+ *
+ *
+ * @var string
+ */
+ protected $observationPeriod;
+
+ /**
+ * The variableMeasured property can indicate (repeated as necessary) the variables that are measured in some dataset, either described as text or as pairs of identifier and description using PropertyValue, or more explicitly as a [[StatisticalVariable]].
+ *
+ *
+ * @var \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Models\SchemaOrg\PropertyValue|null
+ */
+ protected $variableMeasured;
+
+ /**
+ * The [[observationAbout]] property identifies an entity, often a [[Place]], associated with an [[Observation]].
*
*
- * @var \OpenActive\Models\SchemaOrg\DataType
+ * @var \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\Place|string
*/
- protected $measuredValue;
+ protected $observationAbout;
/**
- * The observedNode of an [[Observation]], often a [[StatisticalPopulation]].
+ * 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\StatisticalPopulation|string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
- protected $observedNode;
+ protected $measurementTechnique;
/**
- * The measuredProperty of an [[Observation]], either a schema.org property, a property from other RDF-compatible systems e.g. W3C RDF Data Cube, or schema.org extensions such as [GS1's](https://www.gs1.org/voc/?show=properties).
+ * Identifies the denominator variable when an observation represents a ratio or percentage.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\StatisticalVariable|string
+ */
+ protected $measurementDenominator;
+
+ /**
+ * A [[marginOfError]] for an [[Observation]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ protected $marginOfError;
+
+ /**
+ * 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 subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ protected $measurementMethod;
+
/**
* The observationDate of an [[Observation]].
*
@@ -60,60 +111,166 @@ public static function fieldList() {
protected $observationDate;
/**
- * A marginOfError for an [[Observation]].
+ * Provides additional qualification to an observation. For example, a GDP observation measures the Nominal value.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\Enumeration|string
*/
- protected $marginOfError;
+ protected $measurementQualifier;
/**
- * @return \OpenActive\Models\SchemaOrg\DataType
+ * @return string
*/
- public function getMeasuredValue()
+ public function getObservationPeriod()
{
- return $this->measuredValue;
+ return $this->observationPeriod;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DataType $measuredValue
+ * @param string $observationPeriod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMeasuredValue($measuredValue)
+ public function setObservationPeriod($observationPeriod)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DataType",
+ "string",
];
- $measuredValue = self::checkTypes($measuredValue, $types);
+ $observationPeriod = self::checkTypes($observationPeriod, $types);
- $this->measuredValue = $measuredValue;
+ $this->observationPeriod = $observationPeriod;
}
/**
- * @return \OpenActive\Models\SchemaOrg\StatisticalPopulation|string
+ * @return \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Models\SchemaOrg\PropertyValue|null
*/
- public function getObservedNode()
+ public function getVariableMeasured()
{
- return $this->observedNode;
+ return $this->variableMeasured;
}
/**
- * @param \OpenActive\Models\SchemaOrg\StatisticalPopulation|string $observedNode
+ * @param \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Models\SchemaOrg\PropertyValue|null $variableMeasured
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setObservedNode($observedNode)
+ public function setVariableMeasured($variableMeasured)
{
$types = [
- "\OpenActive\Models\SchemaOrg\StatisticalPopulation",
+ "\OpenActive\Enums\PropertyEnumeration",
+ "\OpenActive\Models\SchemaOrg\StatisticalVariable",
"string",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "null",
+ ];
+
+ $variableMeasured = self::checkTypes($variableMeasured, $types);
+
+ $this->variableMeasured = $variableMeasured;
+ }
+
+ /**
+ * @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;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ public function getMeasurementTechnique()
+ {
+ return $this->measurementTechnique;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string|\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 = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
];
- $observedNode = self::checkTypes($observedNode, $types);
+ $measurementTechnique = self::checkTypes($measurementTechnique, $types);
- $this->observedNode = $observedNode;
+ $this->measurementTechnique = $measurementTechnique;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\StatisticalVariable|string
+ */
+ public function getMeasurementDenominator()
+ {
+ return $this->measurementDenominator;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\StatisticalVariable|string $measurementDenominator
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMeasurementDenominator($measurementDenominator)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\StatisticalVariable",
+ "string",
+ ];
+
+ $measurementDenominator = self::checkTypes($measurementDenominator, $types);
+
+ $this->measurementDenominator = $measurementDenominator;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ public function getMarginOfError()
+ {
+ return $this->marginOfError;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $marginOfError
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMarginOfError($marginOfError)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
+ ];
+
+ $marginOfError = self::checkTypes($marginOfError, $types);
+
+ $this->marginOfError = $marginOfError;
}
/**
@@ -142,6 +299,33 @@ public function setMeasuredProperty($measuredProperty)
$this->measuredProperty = $measuredProperty;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ public function getMeasurementMethod()
+ {
+ return $this->measurementMethod;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementMethod
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMeasurementMethod($measurementMethod)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
+ ];
+
+ $measurementMethod = self::checkTypes($measurementMethod, $types);
+
+ $this->measurementMethod = $measurementMethod;
+ }
+
/**
* @return DateTime|null
*/
@@ -168,28 +352,28 @@ public function setObservationDate($observationDate)
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\Enumeration|string
*/
- public function getMarginOfError()
+ public function getMeasurementQualifier()
{
- return $this->marginOfError;
+ return $this->measurementQualifier;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $marginOfError
+ * @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 setMarginOfError($marginOfError)
+ public function setMeasurementQualifier($measurementQualifier)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Enumeration",
"string",
];
- $marginOfError = self::checkTypes($marginOfError, $types);
+ $measurementQualifier = self::checkTypes($measurementQualifier, $types);
- $this->marginOfError = $marginOfError;
+ $this->measurementQualifier = $measurementQualifier;
}
}
diff --git a/src/Models/SchemaOrg/Occupation.php b/src/Models/SchemaOrg/Occupation.php
index ea516342..34eed6fe 100644
--- a/src/Models/SchemaOrg/Occupation.php
+++ b/src/Models/SchemaOrg/Occupation.php
@@ -17,284 +17,284 @@ public static function getType()
public static function fieldList() {
$fields = [
- "estimatedSalary" => "estimatedSalary",
"responsibilities" => "responsibilities",
- "occupationLocation" => "occupationLocation",
+ "occupationalCategory" => "occupationalCategory",
+ "qualifications" => "qualifications",
+ "skills" => "skills",
"experienceRequirements" => "experienceRequirements",
+ "estimatedSalary" => "estimatedSalary",
+ "occupationLocation" => "occupationLocation",
"educationRequirements" => "educationRequirements",
- "skills" => "skills",
- "qualifications" => "qualifications",
- "occupationalCategory" => "occupationalCategory",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * An estimated salary for a job posting or occupation, based on a variety of variables including, but not limited to industry, job title, and location. Estimated salaries are often computed by outside organizations rather than the hiring organization, who may not have committed to the estimated value.
+ * Responsibilities associated with this role or Occupation.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @var string
*/
- protected $estimatedSalary;
+ protected $responsibilities;
/**
- * Responsibilities associated with this role 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
+ * @var string|\OpenActive\Models\SchemaOrg\CategoryCode
*/
- protected $responsibilities;
+ protected $occupationalCategory;
/**
- * The region/country for which this occupational description is appropriate. Note that educational requirements and qualifications can vary between jurisdictions.
+ * Specific qualifications required for this role or Occupation.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $occupationLocation;
+ protected $qualifications;
/**
- * Description of skills and experience needed for the position or Occupation.
+ * A statement of knowledge, skill, ability, task or any other assertion expressing a competency that is desired or required to fulfill this role or to work in this occupation.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $experienceRequirements;
+ protected $skills;
/**
- * Educational background needed for the position or Occupation.
+ * Description of skills and experience needed for the position or Occupation.
*
*
- * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @var string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
*/
- protected $educationRequirements;
+ protected $experienceRequirements;
/**
- * 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.
+ * An estimated salary for a job posting or occupation, based on a variety of variables including, but not limited to industry, job title, and location. Estimated salaries are often computed by outside organizations rather than the hiring organization, who may not have committed to the estimated value.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
*/
- protected $skills;
+ protected $estimatedSalary;
/**
- * Specific qualifications required for this role or Occupation.
+ * The region/country for which this occupational description is appropriate. Note that educational requirements and qualifications can vary between jurisdictions.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $qualifications;
+ protected $occupationLocation;
/**
- * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n
- * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC.
+ * Educational background needed for the position or Occupation.
*
*
- * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $occupationalCategory;
+ protected $educationRequirements;
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @return string
*/
- public function getEstimatedSalary()
+ public function getResponsibilities()
{
- return $this->estimatedSalary;
+ return $this->responsibilities;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $estimatedSalary
+ * @param string $responsibilities
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEstimatedSalary($estimatedSalary)
+ public function setResponsibilities($responsibilities)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "Number",
- "null",
];
- $estimatedSalary = self::checkTypes($estimatedSalary, $types);
+ $responsibilities = self::checkTypes($responsibilities, $types);
- $this->estimatedSalary = $estimatedSalary;
+ $this->responsibilities = $responsibilities;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\CategoryCode
*/
- public function getResponsibilities()
+ public function getOccupationalCategory()
{
- return $this->responsibilities;
+ return $this->occupationalCategory;
}
/**
- * @param string $responsibilities
+ * @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 setResponsibilities($responsibilities)
+ public function setOccupationalCategory($occupationalCategory)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
];
- $responsibilities = self::checkTypes($responsibilities, $types);
+ $occupationalCategory = self::checkTypes($occupationalCategory, $types);
- $this->responsibilities = $responsibilities;
+ $this->occupationalCategory = $occupationalCategory;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getOccupationLocation()
+ public function getQualifications()
{
- return $this->occupationLocation;
+ return $this->qualifications;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $occupationLocation
+ * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $qualifications
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationLocation($occupationLocation)
+ public function setQualifications($qualifications)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $occupationLocation = self::checkTypes($occupationLocation, $types);
+ $qualifications = self::checkTypes($qualifications, $types);
- $this->occupationLocation = $occupationLocation;
+ $this->qualifications = $qualifications;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getExperienceRequirements()
+ public function getSkills()
{
- return $this->experienceRequirements;
+ return $this->skills;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements $experienceRequirements
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $skills
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExperienceRequirements($experienceRequirements)
+ public function setSkills($skills)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
- "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements",
];
- $experienceRequirements = self::checkTypes($experienceRequirements, $types);
+ $skills = self::checkTypes($skills, $types);
- $this->experienceRequirements = $experienceRequirements;
+ $this->skills = $skills;
}
/**
- * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
*/
- public function getEducationRequirements()
+ public function getExperienceRequirements()
{
- return $this->educationRequirements;
+ return $this->experienceRequirements;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $educationRequirements
+ * @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 setEducationRequirements($educationRequirements)
+ public function setExperienceRequirements($experienceRequirements)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
"string",
+ "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements",
];
- $educationRequirements = self::checkTypes($educationRequirements, $types);
+ $experienceRequirements = self::checkTypes($experienceRequirements, $types);
- $this->educationRequirements = $educationRequirements;
+ $this->experienceRequirements = $experienceRequirements;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
*/
- public function getSkills()
+ public function getEstimatedSalary()
{
- return $this->skills;
+ return $this->estimatedSalary;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $skills
+ * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $estimatedSalary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSkills($skills)
+ public function setEstimatedSalary($estimatedSalary)
{
$types = [
+ "Number",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "null",
];
- $skills = self::checkTypes($skills, $types);
+ $estimatedSalary = self::checkTypes($estimatedSalary, $types);
- $this->skills = $skills;
+ $this->estimatedSalary = $estimatedSalary;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getQualifications()
+ public function getOccupationLocation()
{
- return $this->qualifications;
+ return $this->occupationLocation;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $qualifications
+ * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $occupationLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setQualifications($qualifications)
+ public function setOccupationLocation($occupationLocation)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $qualifications = self::checkTypes($qualifications, $types);
+ $occupationLocation = self::checkTypes($occupationLocation, $types);
- $this->qualifications = $qualifications;
+ $this->occupationLocation = $occupationLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getOccupationalCategory()
+ public function getEducationRequirements()
{
- return $this->occupationalCategory;
+ return $this->educationRequirements;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory
+ * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $educationRequirements
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationalCategory($occupationalCategory)
+ public function setEducationRequirements($educationRequirements)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCode",
"string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $occupationalCategory = self::checkTypes($occupationalCategory, $types);
+ $educationRequirements = self::checkTypes($educationRequirements, $types);
- $this->occupationalCategory = $occupationalCategory;
+ $this->educationRequirements = $educationRequirements;
}
}
diff --git a/src/Models/SchemaOrg/Offer.php b/src/Models/SchemaOrg/Offer.php
index 34933e9b..65e1e303 100644
--- a/src/Models/SchemaOrg/Offer.php
+++ b/src/Models/SchemaOrg/Offer.php
@@ -17,59 +17,81 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "checkoutPageURLTemplate" => "checkoutPageURLTemplate",
+ "mobileUrl" => "mobileUrl",
"hasAdultConsideration" => "hasAdultConsideration",
+ "eligibleDuration" => "eligibleDuration",
+ "priceCurrency" => "priceCurrency",
+ "itemCondition" => "itemCondition",
"gtin12" => "gtin12",
- "review" => "review",
- "itemOffered" => "itemOffered",
- "category" => "category",
- "priceValidUntil" => "priceValidUntil",
- "shippingDetails" => "shippingDetails",
- "mpn" => "mpn",
+ "validFrom" => "validFrom",
+ "availableAtOrFrom" => "availableAtOrFrom",
+ "seller" => "seller",
+ "priceSpecification" => "priceSpecification",
+ "availableDeliveryMethod" => "availableDeliveryMethod",
"includesObject" => "includesObject",
+ "aggregateRating" => "aggregateRating",
"businessFunction" => "businessFunction",
- "itemCondition" => "itemCondition",
- "gtin" => "gtin",
- "eligibleQuantity" => "eligibleQuantity",
- "acceptedPaymentMethod" => "acceptedPaymentMethod",
+ "availabilityEnds" => "availabilityEnds",
+ "category" => "category",
+ "availability" => "availability",
+ "sku" => "sku",
+ "validThrough" => "validThrough",
"warranty" => "warranty",
- "seller" => "seller",
+ "availabilityStarts" => "availabilityStarts",
+ "gtin8" => "gtin8",
+ "gtin13" => "gtin13",
+ "acceptedPaymentMethod" => "acceptedPaymentMethod",
+ "asin" => "asin",
+ "isFamilyFriendly" => "isFamilyFriendly",
+ "addOn" => "addOn",
"ineligibleRegion" => "ineligibleRegion",
- "leaseLength" => "leaseLength",
- "aggregateRating" => "aggregateRating",
- "offeredBy" => "offeredBy",
- "deliveryLeadTime" => "deliveryLeadTime",
- "availableDeliveryMethod" => "availableDeliveryMethod",
- "validFrom" => "validFrom",
- "availabilityEnds" => "availabilityEnds",
+ "gtin14" => "gtin14",
"eligibleRegion" => "eligibleRegion",
+ "eligibleCustomerType" => "eligibleCustomerType",
+ "priceValidUntil" => "priceValidUntil",
+ "price" => "price",
+ "itemOffered" => "itemOffered",
+ "shippingDetails" => "shippingDetails",
+ "eligibleTransactionVolume" => "eligibleTransactionVolume",
"hasMeasurement" => "hasMeasurement",
- "gtin8" => "gtin8",
- "inventoryLevel" => "inventoryLevel",
- "sku" => "sku",
- "addOn" => "addOn",
+ "reviews" => "reviews",
"hasMerchantReturnPolicy" => "hasMerchantReturnPolicy",
+ "gtin" => "gtin",
+ "offeredBy" => "offeredBy",
+ "leaseLength" => "leaseLength",
+ "deliveryLeadTime" => "deliveryLeadTime",
"advanceBookingRequirement" => "advanceBookingRequirement",
- "gtin14" => "gtin14",
- "priceCurrency" => "priceCurrency",
- "eligibleTransactionVolume" => "eligibleTransactionVolume",
+ "review" => "review",
+ "mpn" => "mpn",
"areaServed" => "areaServed",
- "eligibleCustomerType" => "eligibleCustomerType",
- "availability" => "availability",
- "gtin13" => "gtin13",
- "reviews" => "reviews",
- "isFamilyFriendly" => "isFamilyFriendly",
- "validThrough" => "validThrough",
- "priceSpecification" => "priceSpecification",
- "price" => "price",
- "availabilityStarts" => "availabilityStarts",
- "eligibleDuration" => "eligibleDuration",
- "availableAtOrFrom" => "availableAtOrFrom",
+ "inventoryLevel" => "inventoryLevel",
"serialNumber" => "serialNumber",
+ "eligibleQuantity" => "eligibleQuantity",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * 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 $checkoutPageURLTemplate;
+
+ /**
+ * 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;
+
/**
* Used to tag an item to be intended or suitable for consumption or use by adults only.
*
@@ -79,60 +101,76 @@ public static function fieldList() {
protected $hasAdultConsideration;
/**
- * 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 duration for which the given offer is valid.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ protected $eligibleDuration;
+
+ /**
+ * 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 $gtin12;
+ protected $priceCurrency;
/**
- * A review of the item.
+ * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns.
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
*/
- protected $review;
+ protected $itemCondition;
/**
- * 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 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\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 string
*/
- protected $itemOffered;
+ protected $gtin12;
/**
- * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
+ * The date when the item becomes valid.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @var Date|DateTime|null
*/
- protected $category;
+ protected $validFrom;
/**
- * The date after which the price is no longer available.
+ * The place(s) from which the offer can be obtained (e.g. store locations).
*
*
- * @var Date|null
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $priceValidUntil;
+ protected $availableAtOrFrom;
/**
- * Indicates information about the shipping policies and options associated with an [[Offer]].
+ * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\OfferShippingDetails|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $shippingDetails;
+ protected $seller;
/**
- * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.
+ * One or more detailed price specifications, indicating the unit price and delivery or payment charges.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $mpn;
+ protected $priceSpecification;
+
+ /**
+ * The delivery method(s) available for this offer.
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ */
+ protected $availableDeliveryMethod;
/**
* This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]].
@@ -142,6 +180,14 @@ public static function fieldList() {
*/
protected $includesObject;
+ /**
+ * The overall rating, based on a collection of reviews or ratings, of the item.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
+ */
+ protected $aggregateRating;
+
/**
* The business function (e.g. sell, lease, repair, dispose) of the offer or component of a bundle (TypeAndQuantityNode). The default is http://purl.org/goodrelations/v1#Sell.
*
@@ -151,37 +197,44 @@ public static function fieldList() {
protected $businessFunction;
/**
- * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns.
+ * The end of the availability of the product or service included in the offer.
*
*
- * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @var Date|DateTime|string|null
*/
- protected $itemCondition;
+ protected $availabilityEnds;
/**
- * A Global Trade Item Number ([GTIN](https://www.gs1.org/standards/id-keys/gtin)). GTINs identify trade items, including products and services, using numeric identification codes. The [[gtin]] property generalizes the earlier [[gtin8]], [[gtin12]], [[gtin13]], and [[gtin14]] properties. The GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) express GTINs as URLs. A correct [[gtin]] value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a "GS1 Digital Link" URL based on such a string. The numeric component should also have a [valid GS1 check digit](https://www.gs1.org/services/check-digit-calculator) and meet the other rules for valid GTINs. See also [GS1's GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) and [Wikipedia](https://en.wikipedia.org/wiki/Global_Trade_Item_Number) for more details. Left-padding of the gtin values is not required or encouraged.
- *
+ * 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|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
*/
- protected $gtin;
+ protected $category;
/**
- * 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 availability of this item—for example In stock, Out of stock, Pre-order, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Enums\SchemaOrg\ItemAvailability|null
*/
- protected $eligibleQuantity;
+ protected $availability;
/**
- * The payment method(s) accepted by seller for this offer.
+ * The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers.
*
*
- * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null
+ * @var string
*/
- protected $acceptedPaymentMethod;
+ protected $sku;
+
+ /**
+ * 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 warranty promise(s) included in the offer.
@@ -192,77 +245,80 @@ public static function fieldList() {
protected $warranty;
/**
- * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
+ * The beginning of the availability of the product or service included in the offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var Date|DateTime|string|null
*/
- protected $seller;
+ protected $availabilityStarts;
/**
- * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]].
- *
+ * 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\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @var string
*/
- protected $ineligibleRegion;
+ protected $gtin8;
/**
- * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.
+ * The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
+ * @var string
*/
- protected $leaseLength;
+ protected $gtin13;
/**
- * The overall rating, based on a collection of reviews or ratings, of the item.
+ * The payment method(s) accepted by seller for this offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @var \OpenActive\Enums\SchemaOrg\PaymentMethod|\OpenActive\Models\SchemaOrg\LoanOrCredit|string|null
*/
- protected $aggregateRating;
+ protected $acceptedPaymentMethod;
/**
- * A pointer to the organization or person making the offer.
+ * An Amazon Standard Identification Number (ASIN) is a 10-character alphanumeric unique identifier assigned by Amazon.com and its partners for product identification within the Amazon organization (summary from [Wikipedia](https://en.wikipedia.org/wiki/Amazon_Standard_Identification_Number)'s article).
+ *
+ * Note also that this is a definition for how to include ASINs in Schema.org data, and not a definition of ASINs in general - see documentation from Amazon for authoritative details.
+ * ASINs are most commonly encoded as text strings, but the [asin] property supports URL/URI as potential values too.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $offeredBy;
+ protected $asin;
/**
- * 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 whether this content is family friendly.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var bool|null
*/
- protected $deliveryLeadTime;
+ protected $isFamilyFriendly;
/**
- * The delivery method(s) available for this 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\Enums\SchemaOrg\DeliveryMethod|null
+ * @var \OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $availableDeliveryMethod;
+ protected $addOn;
/**
- * The date when the item becomes valid.
+ * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]].
+ *
*
*
- * @var Date|DateTime|null
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- protected $validFrom;
+ protected $ineligibleRegion;
/**
- * The end of the availability of the product or service included in the offer.
+ * The GTIN-14 code of the product, or the product to which the offer refers. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
*
*
- * @var Date|DateTime|string|null
+ * @var string
*/
- protected $availabilityEnds;
+ protected $gtin14;
/**
* 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]].
@@ -274,189 +330,217 @@ public static function fieldList() {
protected $eligibleRegion;
/**
- * 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 type(s) of customers for which the given offer is valid.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null
*/
- protected $hasMeasurement;
+ protected $eligibleCustomerType;
/**
- * 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 date after which the price is no longer available.
*
*
- * @var string
+ * @var Date|null
*/
- protected $gtin8;
+ protected $priceValidUntil;
/**
- * The current approximate inventory level for the item or items.
+ * 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\QuantitativeValue|string
+ * @var string|Number|null
*/
- protected $inventoryLevel;
+ protected $price;
/**
- * The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers.
+ * 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\CreativeWork|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
*/
- protected $sku;
+ protected $itemOffered;
/**
- * 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).
+ * Indicates information about the shipping policies and options associated with an [[Offer]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|string
+ * @var \OpenActive\Models\SchemaOrg\OfferShippingDetails|string
*/
- protected $addOn;
+ protected $shippingDetails;
/**
- * Specifies a MerchantReturnPolicy that may be applicable.
+ * The transaction volume, in a monetary unit, for which the offer or price specification is valid, e.g. for indicating a minimal purchasing volume, to express free shipping above a certain order volume, or to limit the acceptance of credit cards to purchases to a certain minimal amount.
*
*
- * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $hasMerchantReturnPolicy;
+ protected $eligibleTransactionVolume;
/**
- * The amount of time that is required between accepting the offer and the actual usage of the resource or service.
+ * 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.
*
*
* @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.
+ * Review of the item.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $gtin14;
+ protected $reviews;
/**
- * 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".
+ * Specifies a MerchantReturnPolicy that may be applicable.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string
*/
- protected $priceCurrency;
+ protected $hasMerchantReturnPolicy;
/**
- * 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 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 GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) express GTINs as URLs (URIs, IRIs, etc.). Details including regular expression examples can be found in, Section 6 of the GS1 URI Syntax specification; see also [schema.org tracking issue](https://github.com/schemaorg/schemaorg/issues/3156#issuecomment-1209522809) for schema.org-specific discussion. 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.
+ *
+ * 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\PriceSpecification|string
+ * @var string
*/
- protected $eligibleTransactionVolume;
+ protected $gtin;
/**
- * The geographic area where a service or offered item is provided.
+ * A pointer to the organization or person making the offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $areaServed;
+ protected $offeredBy;
/**
- * The type(s) of customers for which the given offer is valid.
+ * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.
*
*
- * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
*/
- protected $eligibleCustomerType;
+ protected $leaseLength;
/**
- * The availability of this item—for example In stock, Out of stock, Pre-order, etc.
+ * The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup.
*
*
- * @var \OpenActive\Enums\SchemaOrg\ItemAvailability|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $availability;
+ protected $deliveryLeadTime;
/**
- * The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
+ * The amount of time that is required between accepting the offer and the actual usage of the resource or service.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $gtin13;
+ protected $advanceBookingRequirement;
/**
- * Review of the item.
+ * A review of the item.
*
*
* @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $reviews;
+ protected $review;
/**
- * Indicates whether this content is family friendly.
+ * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.
*
*
- * @var bool|null
+ * @var string
*/
- protected $isFamilyFriendly;
+ protected $mpn;
/**
- * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
+ * The geographic area where a service or offered item is provided.
*
*
- * @var Date|DateTime|null
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- protected $validThrough;
+ protected $areaServed;
/**
- * One or more detailed price specifications, indicating the unit price and delivery or payment charges.
+ * The current approximate inventory level for the item or items.
*
*
- * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $priceSpecification;
+ protected $inventoryLevel;
/**
- * 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 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|Number|null
+ * @var string
*/
- protected $price;
+ protected $serialNumber;
/**
- * The beginning of the availability of the product or service included in the offer.
+ * The interval and unit of measurement of ordering quantities for which the offer or price specification is valid. This allows e.g. specifying that a certain freight charge is valid only for a certain quantity.
*
*
- * @var Date|DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $availabilityStarts;
+ protected $eligibleQuantity;
/**
- * The duration for which the given offer is valid.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- protected $eligibleDuration;
+ public function getCheckoutPageURLTemplate()
+ {
+ return $this->checkoutPageURLTemplate;
+ }
/**
- * The place(s) from which the offer can be obtained (e.g. store locations).
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @param string $checkoutPageURLTemplate
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- protected $availableAtOrFrom;
+ public function setCheckoutPageURLTemplate($checkoutPageURLTemplate)
+ {
+ $types = [
+ "string",
+ ];
+
+ $checkoutPageURLTemplate = self::checkTypes($checkoutPageURLTemplate, $types);
+
+ $this->checkoutPageURLTemplate = $checkoutPageURLTemplate;
+ }
/**
- * 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 string
*/
- protected $serialNumber;
+ public function getMobileUrl()
+ {
+ return $this->mobileUrl;
+ }
+
+ /**
+ * @param string $mobileUrl
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMobileUrl($mobileUrl)
+ {
+ $types = [
+ "string",
+ ];
+
+ $mobileUrl = self::checkTypes($mobileUrl, $types);
+
+ $this->mobileUrl = $mobileUrl;
+ }
/**
* @return \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null
@@ -484,841 +568,842 @@ public function setHasAdultConsideration($hasAdultConsideration)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getGtin12()
+ public function getEligibleDuration()
{
- return $this->gtin12;
+ return $this->eligibleDuration;
}
/**
- * @param string $gtin12
+ * @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 setGtin12($gtin12)
+ public function setEligibleDuration($eligibleDuration)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $gtin12 = self::checkTypes($gtin12, $types);
+ $eligibleDuration = self::checkTypes($eligibleDuration, $types);
- $this->gtin12 = $gtin12;
+ $this->eligibleDuration = $eligibleDuration;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return string
*/
- public function getReview()
+ public function getPriceCurrency()
{
- return $this->review;
+ return $this->priceCurrency;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $review
+ * @param string $priceCurrency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReview($review)
+ public function setPriceCurrency($priceCurrency)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $review = self::checkTypes($review, $types);
+ $priceCurrency = self::checkTypes($priceCurrency, $types);
- $this->review = $review;
+ $this->priceCurrency = $priceCurrency;
}
/**
- * @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\Enums\SchemaOrg\OfferItemCondition|null
*/
- public function getItemOffered()
+ public function getItemCondition()
{
- return $this->itemOffered;
+ return $this->itemCondition;
}
/**
- * @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\Enums\SchemaOrg\OfferItemCondition|null $itemCondition
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItemOffered($itemOffered)
+ public function setItemCondition($itemCondition)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Trip",
- "\OpenActive\Models\SchemaOrg\Event",
- "\OpenActive\Models\SchemaOrg\Product",
- "\OpenActive\Models\SchemaOrg\AggregateOffer",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
- "\OpenActive\Models\SchemaOrg\MenuItem",
- "\OpenActive\Models\SchemaOrg\Service",
- "string",
+ "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
+ "null",
];
- $itemOffered = self::checkTypes($itemOffered, $types);
+ $itemCondition = self::checkTypes($itemCondition, $types);
- $this->itemOffered = $itemOffered;
+ $this->itemCondition = $itemCondition;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @return string
*/
- public function getCategory()
+ public function getGtin12()
{
- return $this->category;
+ return $this->gtin12;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
+ * @param string $gtin12
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCategory($category)
+ public function setGtin12($gtin12)
{
$types = [
"string",
- "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
- "\OpenActive\Models\SchemaOrg\Thing",
- "\OpenActive\Models\SchemaOrg\CategoryCode",
- "null",
];
- $category = self::checkTypes($category, $types);
+ $gtin12 = self::checkTypes($gtin12, $types);
- $this->category = $category;
+ $this->gtin12 = $gtin12;
}
/**
- * @return Date|null
+ * @return Date|DateTime|null
*/
- public function getPriceValidUntil()
+ public function getValidFrom()
{
- return $this->priceValidUntil;
+ return $this->validFrom;
}
/**
- * @param Date|null $priceValidUntil
+ * @param Date|DateTime|null $validFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPriceValidUntil($priceValidUntil)
+ public function setValidFrom($validFrom)
{
$types = [
"Date",
+ "DateTime",
"null",
];
- $priceValidUntil = self::checkTypes($priceValidUntil, $types);
+ $validFrom = self::checkTypes($validFrom, $types);
- $this->priceValidUntil = $priceValidUntil;
+ $this->validFrom = $validFrom;
}
/**
- * @return \OpenActive\Models\SchemaOrg\OfferShippingDetails|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getShippingDetails()
+ public function getAvailableAtOrFrom()
{
- return $this->shippingDetails;
+ return $this->availableAtOrFrom;
}
/**
- * @param \OpenActive\Models\SchemaOrg\OfferShippingDetails|string $shippingDetails
+ * @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 setShippingDetails($shippingDetails)
+ public function setAvailableAtOrFrom($availableAtOrFrom)
{
$types = [
- "\OpenActive\Models\SchemaOrg\OfferShippingDetails",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $shippingDetails = self::checkTypes($shippingDetails, $types);
+ $availableAtOrFrom = self::checkTypes($availableAtOrFrom, $types);
- $this->shippingDetails = $shippingDetails;
+ $this->availableAtOrFrom = $availableAtOrFrom;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getMpn()
+ public function getSeller()
{
- return $this->mpn;
+ return $this->seller;
}
/**
- * @param string $mpn
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMpn($mpn)
+ public function setSeller($seller)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $mpn = self::checkTypes($mpn, $types);
+ $seller = self::checkTypes($seller, $types);
- $this->mpn = $mpn;
+ $this->seller = $seller;
}
/**
- * @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 \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
*/
- public function getItemCondition()
+ public function getIncludesObject()
{
- return $this->itemCondition;
+ return $this->includesObject;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition
+ * @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 setItemCondition($itemCondition)
+ public function setIncludesObject($includesObject)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
- "null",
+ "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode",
+ "string",
];
- $itemCondition = self::checkTypes($itemCondition, $types);
+ $includesObject = self::checkTypes($includesObject, $types);
- $this->itemCondition = $itemCondition;
+ $this->includesObject = $includesObject;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- public function getGtin()
+ public function getAggregateRating()
{
- return $this->gtin;
+ return $this->aggregateRating;
}
/**
- * @param string $gtin
+ * @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 setGtin($gtin)
+ public function setAggregateRating($aggregateRating)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AggregateRating",
"string",
];
- $gtin = self::checkTypes($gtin, $types);
+ $aggregateRating = self::checkTypes($aggregateRating, $types);
- $this->gtin = $gtin;
+ $this->aggregateRating = $aggregateRating;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null
*/
- public function getEligibleQuantity()
+ public function getBusinessFunction()
{
- return $this->eligibleQuantity;
+ return $this->businessFunction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleQuantity
+ * @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 setEligibleQuantity($eligibleQuantity)
+ public function setBusinessFunction($businessFunction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
+ "\OpenActive\Enums\SchemaOrg\BusinessFunction",
+ "null",
];
- $eligibleQuantity = self::checkTypes($eligibleQuantity, $types);
+ $businessFunction = self::checkTypes($businessFunction, $types);
- $this->eligibleQuantity = $eligibleQuantity;
+ $this->businessFunction = $businessFunction;
}
/**
- * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null
+ * @return Date|DateTime|string|null
*/
- public function getAcceptedPaymentMethod()
+ public function getAvailabilityEnds()
{
- return $this->acceptedPaymentMethod;
+ return $this->availabilityEnds;
}
/**
- * @param \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null $acceptedPaymentMethod
+ * @param Date|DateTime|string|null $availabilityEnds
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAcceptedPaymentMethod($acceptedPaymentMethod)
+ public function setAvailabilityEnds($availabilityEnds)
{
$types = [
- "\OpenActive\Models\SchemaOrg\LoanOrCredit",
- "\OpenActive\Enums\SchemaOrg\PaymentMethod",
- "string",
+ "Date",
+ "DateTime",
+ "Time",
"null",
];
- $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types);
+ $availabilityEnds = self::checkTypes($availabilityEnds, $types);
- $this->acceptedPaymentMethod = $acceptedPaymentMethod;
+ $this->availabilityEnds = $availabilityEnds;
}
/**
- * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string
+ * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
*/
- public function getWarranty()
+ public function getCategory()
{
- return $this->warranty;
+ return $this->category;
}
/**
- * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warranty
+ * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWarranty($warranty)
+ public function setCategory($category)
{
$types = [
- "\OpenActive\Models\SchemaOrg\WarrantyPromise",
+ "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
"string",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
+ "null",
];
- $warranty = self::checkTypes($warranty, $types);
+ $category = self::checkTypes($category, $types);
- $this->warranty = $warranty;
+ $this->category = $category;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null
*/
- public function getSeller()
+ public function getAvailability()
{
- return $this->seller;
+ return $this->availability;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller
+ * @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 setSeller($seller)
+ public function setAvailability($availability)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "\OpenActive\Enums\SchemaOrg\ItemAvailability",
+ "null",
];
- $seller = self::checkTypes($seller, $types);
+ $availability = self::checkTypes($availability, $types);
- $this->seller = $seller;
+ $this->availability = $availability;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @return string
*/
- public function getIneligibleRegion()
+ public function getSku()
{
- return $this->ineligibleRegion;
+ return $this->sku;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
+ * @param string $sku
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIneligibleRegion($ineligibleRegion)
+ public function setSku($sku)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
- "\OpenActive\Models\SchemaOrg\GeoShape",
];
- $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
+ $sku = self::checkTypes($sku, $types);
- $this->ineligibleRegion = $ineligibleRegion;
+ $this->sku = $sku;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
+ * @return Date|DateTime|null
*/
- public function getLeaseLength()
+ public function getValidThrough()
{
- return $this->leaseLength;
+ return $this->validThrough;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength
+ * @param Date|DateTime|null $validThrough
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLeaseLength($leaseLength)
+ public function setValidThrough($validThrough)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "DateInterval",
- "string",
+ "Date",
+ "DateTime",
"null",
];
- $leaseLength = self::checkTypes($leaseLength, $types);
+ $validThrough = self::checkTypes($validThrough, $types);
- $this->leaseLength = $leaseLength;
+ $this->validThrough = $validThrough;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string
*/
- public function getAggregateRating()
+ public function getWarranty()
{
- return $this->aggregateRating;
+ return $this->warranty;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating
+ * @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 setAggregateRating($aggregateRating)
+ public function setWarranty($warranty)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AggregateRating",
+ "\OpenActive\Models\SchemaOrg\WarrantyPromise",
"string",
];
- $aggregateRating = self::checkTypes($aggregateRating, $types);
+ $warranty = self::checkTypes($warranty, $types);
- $this->aggregateRating = $aggregateRating;
+ $this->warranty = $warranty;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return Date|DateTime|string|null
*/
- public function getOfferedBy()
+ public function getAvailabilityStarts()
{
- return $this->offeredBy;
+ return $this->availabilityStarts;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $offeredBy
+ * @param Date|DateTime|string|null $availabilityStarts
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOfferedBy($offeredBy)
+ public function setAvailabilityStarts($availabilityStarts)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "Date",
+ "DateTime",
+ "Time",
+ "null",
];
- $offeredBy = self::checkTypes($offeredBy, $types);
+ $availabilityStarts = self::checkTypes($availabilityStarts, $types);
- $this->offeredBy = $offeredBy;
+ $this->availabilityStarts = $availabilityStarts;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getDeliveryLeadTime()
+ public function getGtin8()
{
- return $this->deliveryLeadTime;
+ return $this->gtin8;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $deliveryLeadTime
+ * @param string $gtin8
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDeliveryLeadTime($deliveryLeadTime)
+ public function setGtin8($gtin8)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types);
+ $gtin8 = self::checkTypes($gtin8, $types);
- $this->deliveryLeadTime = $deliveryLeadTime;
+ $this->gtin8 = $gtin8;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ * @return string
*/
- public function getAvailableDeliveryMethod()
+ public function getGtin13()
{
- return $this->availableDeliveryMethod;
+ return $this->gtin13;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $availableDeliveryMethod
+ * @param string $gtin13
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableDeliveryMethod($availableDeliveryMethod)
+ public function setGtin13($gtin13)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\DeliveryMethod",
- "null",
+ "string",
];
- $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types);
+ $gtin13 = self::checkTypes($gtin13, $types);
- $this->availableDeliveryMethod = $availableDeliveryMethod;
+ $this->gtin13 = $gtin13;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|\OpenActive\Models\SchemaOrg\LoanOrCredit|string|null
*/
- public function getValidFrom()
+ public function getAcceptedPaymentMethod()
{
- return $this->validFrom;
+ return $this->acceptedPaymentMethod;
}
/**
- * @param Date|DateTime|null $validFrom
+ * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|\OpenActive\Models\SchemaOrg\LoanOrCredit|string|null $acceptedPaymentMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidFrom($validFrom)
+ public function setAcceptedPaymentMethod($acceptedPaymentMethod)
{
$types = [
- "Date",
- "DateTime",
+ "\OpenActive\Enums\SchemaOrg\PaymentMethod",
+ "\OpenActive\Models\SchemaOrg\LoanOrCredit",
+ "string",
"null",
];
- $validFrom = self::checkTypes($validFrom, $types);
+ $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types);
- $this->validFrom = $validFrom;
+ $this->acceptedPaymentMethod = $acceptedPaymentMethod;
}
/**
- * @return Date|DateTime|string|null
+ * @return string
*/
- public function getAvailabilityEnds()
+ public function getAsin()
{
- return $this->availabilityEnds;
+ return $this->asin;
}
/**
- * @param Date|DateTime|string|null $availabilityEnds
+ * @param string $asin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailabilityEnds($availabilityEnds)
+ public function setAsin($asin)
{
$types = [
- "Date",
- "DateTime",
- "Time",
- "null",
+ "string",
];
- $availabilityEnds = self::checkTypes($availabilityEnds, $types);
+ $asin = self::checkTypes($asin, $types);
- $this->availabilityEnds = $availabilityEnds;
+ $this->asin = $asin;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return bool|null
*/
- public function getEligibleRegion()
+ public function getIsFamilyFriendly()
{
- return $this->eligibleRegion;
+ return $this->isFamilyFriendly;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion
+ * @param bool|null $isFamilyFriendly
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibleRegion($eligibleRegion)
+ public function setIsFamilyFriendly($isFamilyFriendly)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeoShape",
- "string",
- "\OpenActive\Models\SchemaOrg\Place",
+ "bool",
+ "null",
];
- $eligibleRegion = self::checkTypes($eligibleRegion, $types);
+ $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types);
- $this->eligibleRegion = $eligibleRegion;
+ $this->isFamilyFriendly = $isFamilyFriendly;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\Offer|string
*/
- public function getHasMeasurement()
+ public function getAddOn()
{
- return $this->hasMeasurement;
+ return $this->addOn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $hasMeasurement
+ * @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 setHasMeasurement($hasMeasurement)
+ public function setAddOn($addOn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Offer",
"string",
];
- $hasMeasurement = self::checkTypes($hasMeasurement, $types);
+ $addOn = self::checkTypes($addOn, $types);
- $this->hasMeasurement = $hasMeasurement;
+ $this->addOn = $addOn;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- public function getGtin8()
+ public function getIneligibleRegion()
{
- return $this->gtin8;
+ return $this->ineligibleRegion;
}
/**
- * @param string $gtin8
+ * @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 setGtin8($gtin8)
+ public function setIneligibleRegion($ineligibleRegion)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
];
- $gtin8 = self::checkTypes($gtin8, $types);
+ $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
- $this->gtin8 = $gtin8;
+ $this->ineligibleRegion = $ineligibleRegion;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getInventoryLevel()
+ public function getGtin14()
{
- return $this->inventoryLevel;
+ return $this->gtin14;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $inventoryLevel
+ * @param string $gtin14
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInventoryLevel($inventoryLevel)
+ public function setGtin14($gtin14)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $inventoryLevel = self::checkTypes($inventoryLevel, $types);
+ $gtin14 = self::checkTypes($gtin14, $types);
- $this->inventoryLevel = $inventoryLevel;
+ $this->gtin14 = $gtin14;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
*/
- public function getSku()
+ public function getEligibleRegion()
{
- return $this->sku;
+ return $this->eligibleRegion;
}
/**
- * @param string $sku
+ * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSku($sku)
+ public function setEligibleRegion($eligibleRegion)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\GeoShape",
"string",
+ "\OpenActive\Models\SchemaOrg\Place",
];
- $sku = self::checkTypes($sku, $types);
+ $eligibleRegion = self::checkTypes($eligibleRegion, $types);
- $this->sku = $sku;
+ $this->eligibleRegion = $eligibleRegion;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|string
+ * @return \OpenActive\Enums\SchemaOrg\BusinessEntityType|null
*/
- public function getAddOn()
+ public function getEligibleCustomerType()
{
- return $this->addOn;
+ return $this->eligibleCustomerType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|string $addOn
+ * @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 setAddOn($addOn)
+ public function setEligibleCustomerType($eligibleCustomerType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "string",
+ "\OpenActive\Enums\SchemaOrg\BusinessEntityType",
+ "null",
];
- $addOn = self::checkTypes($addOn, $types);
+ $eligibleCustomerType = self::checkTypes($eligibleCustomerType, $types);
- $this->addOn = $addOn;
+ $this->eligibleCustomerType = $eligibleCustomerType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string
+ * @return Date|null
*/
- public function getHasMerchantReturnPolicy()
+ public function getPriceValidUntil()
{
- return $this->hasMerchantReturnPolicy;
+ return $this->priceValidUntil;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy
+ * @param Date|null $priceValidUntil
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy)
+ public function setPriceValidUntil($priceValidUntil)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy",
- "string",
+ "Date",
+ "null",
];
- $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types);
+ $priceValidUntil = self::checkTypes($priceValidUntil, $types);
- $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy;
+ $this->priceValidUntil = $priceValidUntil;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string|Number|null
*/
- public function getAdvanceBookingRequirement()
+ public function getPrice()
{
- return $this->advanceBookingRequirement;
+ return $this->price;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $advanceBookingRequirement
+ * @param string|Number|null $price
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdvanceBookingRequirement($advanceBookingRequirement)
+ public function setPrice($price)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "Number",
+ "null",
];
- $advanceBookingRequirement = self::checkTypes($advanceBookingRequirement, $types);
+ $price = self::checkTypes($price, $types);
- $this->advanceBookingRequirement = $advanceBookingRequirement;
+ $this->price = $price;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
*/
- public function getGtin14()
+ public function getItemOffered()
{
- return $this->gtin14;
+ return $this->itemOffered;
}
/**
- * @param string $gtin14
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $itemOffered
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGtin14($gtin14)
+ public function setItemOffered($itemOffered)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\AggregateOffer",
+ "\OpenActive\Models\SchemaOrg\MenuItem",
+ "\OpenActive\Models\SchemaOrg\Trip",
+ "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\Service",
+ "\OpenActive\Models\SchemaOrg\Product",
"string",
];
- $gtin14 = self::checkTypes($gtin14, $types);
+ $itemOffered = self::checkTypes($itemOffered, $types);
- $this->gtin14 = $gtin14;
+ $this->itemOffered = $itemOffered;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\OfferShippingDetails|string
*/
- public function getPriceCurrency()
+ public function getShippingDetails()
{
- return $this->priceCurrency;
+ return $this->shippingDetails;
}
/**
- * @param string $priceCurrency
+ * @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 setPriceCurrency($priceCurrency)
+ public function setShippingDetails($shippingDetails)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\OfferShippingDetails",
"string",
];
- $priceCurrency = self::checkTypes($priceCurrency, $types);
+ $shippingDetails = self::checkTypes($shippingDetails, $types);
- $this->priceCurrency = $priceCurrency;
+ $this->shippingDetails = $shippingDetails;
}
/**
@@ -1347,308 +1432,306 @@ public function setEligibleTransactionVolume($eligibleTransactionVolume)
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getAreaServed()
+ public function getHasMeasurement()
{
- return $this->areaServed;
+ return $this->hasMeasurement;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed
+ * @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 setAreaServed($areaServed)
+ public function setHasMeasurement($hasMeasurement)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "\OpenActive\Models\SchemaOrg\Place",
];
- $areaServed = self::checkTypes($areaServed, $types);
+ $hasMeasurement = self::checkTypes($hasMeasurement, $types);
- $this->areaServed = $areaServed;
+ $this->hasMeasurement = $hasMeasurement;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\BusinessEntityType|null
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getEligibleCustomerType()
+ public function getReviews()
{
- return $this->eligibleCustomerType;
+ return $this->reviews;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\BusinessEntityType|null $eligibleCustomerType
+ * @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 setEligibleCustomerType($eligibleCustomerType)
+ public function setReviews($reviews)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\BusinessEntityType",
- "null",
+ "\OpenActive\Models\SchemaOrg\Review",
+ "string",
];
- $eligibleCustomerType = self::checkTypes($eligibleCustomerType, $types);
+ $reviews = self::checkTypes($reviews, $types);
- $this->eligibleCustomerType = $eligibleCustomerType;
+ $this->reviews = $reviews;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null
+ * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string
*/
- public function getAvailability()
+ public function getHasMerchantReturnPolicy()
{
- return $this->availability;
+ return $this->hasMerchantReturnPolicy;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ItemAvailability|null $availability
+ * @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 setAvailability($availability)
+ public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ItemAvailability",
- "null",
+ "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy",
+ "string",
];
- $availability = self::checkTypes($availability, $types);
+ $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types);
- $this->availability = $availability;
+ $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy;
}
/**
* @return string
*/
- public function getGtin13()
+ public function getGtin()
{
- return $this->gtin13;
+ return $this->gtin;
}
/**
- * @param string $gtin13
+ * @param string $gtin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGtin13($gtin13)
+ public function setGtin($gtin)
{
$types = [
"string",
];
- $gtin13 = self::checkTypes($gtin13, $types);
+ $gtin = self::checkTypes($gtin, $types);
- $this->gtin13 = $gtin13;
+ $this->gtin = $gtin;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getReviews()
+ public function getOfferedBy()
{
- return $this->reviews;
+ return $this->offeredBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $reviews
+ * @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 setReviews($reviews)
+ public function setOfferedBy($offeredBy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $reviews = self::checkTypes($reviews, $types);
+ $offeredBy = self::checkTypes($offeredBy, $types);
- $this->reviews = $reviews;
+ $this->offeredBy = $offeredBy;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
*/
- public function getIsFamilyFriendly()
+ public function getLeaseLength()
{
- return $this->isFamilyFriendly;
+ return $this->leaseLength;
}
/**
- * @param bool|null $isFamilyFriendly
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsFamilyFriendly($isFamilyFriendly)
+ public function setLeaseLength($leaseLength)
{
$types = [
- "bool",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "DateInterval",
+ "string",
"null",
];
- $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types);
+ $leaseLength = self::checkTypes($leaseLength, $types);
- $this->isFamilyFriendly = $isFamilyFriendly;
+ $this->leaseLength = $leaseLength;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getValidThrough()
+ public function getDeliveryLeadTime()
{
- return $this->validThrough;
+ return $this->deliveryLeadTime;
}
/**
- * @param Date|DateTime|null $validThrough
+ * @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 setValidThrough($validThrough)
+ public function setDeliveryLeadTime($deliveryLeadTime)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
];
- $validThrough = self::checkTypes($validThrough, $types);
+ $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types);
- $this->validThrough = $validThrough;
+ $this->deliveryLeadTime = $deliveryLeadTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getPriceSpecification()
+ public function getAdvanceBookingRequirement()
{
- return $this->priceSpecification;
+ return $this->advanceBookingRequirement;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $priceSpecification
+ * @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 setPriceSpecification($priceSpecification)
+ public function setAdvanceBookingRequirement($advanceBookingRequirement)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $priceSpecification = self::checkTypes($priceSpecification, $types);
+ $advanceBookingRequirement = self::checkTypes($advanceBookingRequirement, $types);
- $this->priceSpecification = $priceSpecification;
+ $this->advanceBookingRequirement = $advanceBookingRequirement;
}
/**
- * @return string|Number|null
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getPrice()
+ public function getReview()
{
- return $this->price;
+ return $this->review;
}
/**
- * @param string|Number|null $price
+ * @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 setPrice($price)
+ public function setReview($review)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
- "Number",
- "null",
];
- $price = self::checkTypes($price, $types);
+ $review = self::checkTypes($review, $types);
- $this->price = $price;
+ $this->review = $review;
}
/**
- * @return Date|DateTime|string|null
+ * @return string
*/
- public function getAvailabilityStarts()
+ public function getMpn()
{
- return $this->availabilityStarts;
+ return $this->mpn;
}
/**
- * @param Date|DateTime|string|null $availabilityStarts
+ * @param string $mpn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailabilityStarts($availabilityStarts)
+ public function setMpn($mpn)
{
$types = [
- "Date",
- "DateTime",
- "Time",
- "null",
+ "string",
];
- $availabilityStarts = self::checkTypes($availabilityStarts, $types);
+ $mpn = self::checkTypes($mpn, $types);
- $this->availabilityStarts = $availabilityStarts;
+ $this->mpn = $mpn;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- public function getEligibleDuration()
+ public function getAreaServed()
{
- return $this->eligibleDuration;
+ return $this->areaServed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleDuration
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea $areaServed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibleDuration($eligibleDuration)
+ public function setAreaServed($areaServed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
];
- $eligibleDuration = self::checkTypes($eligibleDuration, $types);
+ $areaServed = self::checkTypes($areaServed, $types);
- $this->eligibleDuration = $eligibleDuration;
+ $this->areaServed = $areaServed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getAvailableAtOrFrom()
+ public function getInventoryLevel()
{
- return $this->availableAtOrFrom;
+ return $this->inventoryLevel;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $availableAtOrFrom
+ * @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 setAvailableAtOrFrom($availableAtOrFrom)
+ public function setInventoryLevel($inventoryLevel)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $availableAtOrFrom = self::checkTypes($availableAtOrFrom, $types);
+ $inventoryLevel = self::checkTypes($inventoryLevel, $types);
- $this->availableAtOrFrom = $availableAtOrFrom;
+ $this->inventoryLevel = $inventoryLevel;
}
/**
@@ -1675,4 +1758,29 @@ public function setSerialNumber($serialNumber)
$this->serialNumber = $serialNumber;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ public function getEligibleQuantity()
+ {
+ return $this->eligibleQuantity;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleQuantity
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setEligibleQuantity($eligibleQuantity)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
+ ];
+
+ $eligibleQuantity = self::checkTypes($eligibleQuantity, $types);
+
+ $this->eligibleQuantity = $eligibleQuantity;
+ }
+
}
diff --git a/src/Models/SchemaOrg/OfferShippingDetails.php b/src/Models/SchemaOrg/OfferShippingDetails.php
index 7d7eba60..f9b47d76 100644
--- a/src/Models/SchemaOrg/OfferShippingDetails.php
+++ b/src/Models/SchemaOrg/OfferShippingDetails.php
@@ -17,20 +17,33 @@ public static function getType()
public static function fieldList() {
$fields = [
- "shippingDestination" => "shippingDestination",
"doesNotShip" => "doesNotShip",
+ "shippingDestination" => "shippingDestination",
+ "shippingLabel" => "shippingLabel",
"shippingSettingsLink" => "shippingSettingsLink",
+ "shippingOrigin" => "shippingOrigin",
"transitTimeLabel" => "transitTimeLabel",
- "shippingLabel" => "shippingLabel",
- "deliveryTime" => "deliveryTime",
+ "depth" => "depth",
+ "height" => "height",
+ "weight" => "weight",
"shippingRate" => "shippingRate",
+ "width" => "width",
+ "deliveryTime" => "deliveryTime",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * indicates (possibly multiple) shipping destinations. These can be defined in several ways e.g. postalCode ranges.
+ * Indicates when shipping to a particular [[shippingDestination]] is not available.
+ *
+ *
+ * @var bool|null
+ */
+ protected $doesNotShip;
+
+ /**
+ * indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges.
*
*
* @var \OpenActive\Models\SchemaOrg\DefinedRegion|string
@@ -38,12 +51,12 @@ public static function fieldList() {
protected $shippingDestination;
/**
- * 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;
/**
* Link to a page containing [[ShippingRateSettings]] and [[DeliveryTimeSettings]] details.
@@ -53,6 +66,14 @@ public static function fieldList() {
*/
protected $shippingSettingsLink;
+ /**
+ * Indicates the origin of a shipment, i.e. where it should be coming from.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string
+ */
+ protected $shippingOrigin;
+
/**
* Label to match an [[OfferShippingDetails]] with a [[DeliveryTimeSettings]] (within the context of a [[shippingSettingsLink]] cross-reference).
*
@@ -62,20 +83,28 @@ public static function fieldList() {
protected $transitTimeLabel;
/**
- * Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within the context of a [[shippingSettingsLink]] cross-reference).
+ * The depth of the item.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
*/
- protected $shippingLabel;
+ protected $depth;
/**
- * 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\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
*/
- protected $deliveryTime;
+ protected $height;
+
+ /**
+ * The weight of the product or person.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ protected $weight;
/**
* The shipping rate is the cost of shipping to the specified destination. Typically, the maxValue and currency values (of the [[MonetaryAmount]]) are most appropriate.
@@ -85,6 +114,47 @@ public static function fieldList() {
*/
protected $shippingRate;
+ /**
+ * The width of the item.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ protected $width;
+
+ /**
+ * The total delay between the receipt of the order and the goods reaching the final customer.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string
+ */
+ protected $deliveryTime;
+
+ /**
+ * @return bool|null
+ */
+ public function getDoesNotShip()
+ {
+ return $this->doesNotShip;
+ }
+
+ /**
+ * @param bool|null $doesNotShip
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setDoesNotShip($doesNotShip)
+ {
+ $types = [
+ "bool",
+ "null",
+ ];
+
+ $doesNotShip = self::checkTypes($doesNotShip, $types);
+
+ $this->doesNotShip = $doesNotShip;
+ }
+
/**
* @return \OpenActive\Models\SchemaOrg\DefinedRegion|string
*/
@@ -111,28 +181,27 @@ public function setShippingDestination($shippingDestination)
}
/**
- * @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;
}
/**
@@ -159,6 +228,31 @@ public function setShippingSettingsLink($shippingSettingsLink)
$this->shippingSettingsLink = $shippingSettingsLink;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string
+ */
+ public function getShippingOrigin()
+ {
+ return $this->shippingOrigin;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\DefinedRegion|string $shippingOrigin
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setShippingOrigin($shippingOrigin)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\DefinedRegion",
+ "string",
+ ];
+
+ $shippingOrigin = self::checkTypes($shippingOrigin, $types);
+
+ $this->shippingOrigin = $shippingOrigin;
+ }
+
/**
* @return string
*/
@@ -184,52 +278,80 @@ public function setTransitTimeLabel($transitTimeLabel)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
*/
- public function getShippingLabel()
+ public function getDepth()
{
- return $this->shippingLabel;
+ return $this->depth;
}
/**
- * @param string $shippingLabel
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $depth
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setShippingLabel($shippingLabel)
+ public function setDepth($depth)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Distance",
"string",
];
- $shippingLabel = self::checkTypes($shippingLabel, $types);
+ $depth = self::checkTypes($depth, $types);
- $this->shippingLabel = $shippingLabel;
+ $this->depth = $depth;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
*/
- public function getDeliveryTime()
+ public function getHeight()
{
- return $this->deliveryTime;
+ return $this->height;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string $deliveryTime
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|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\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Distance",
"string",
];
- $deliveryTime = self::checkTypes($deliveryTime, $types);
+ $height = self::checkTypes($height, $types);
- $this->deliveryTime = $deliveryTime;
+ $this->height = $height;
+ }
+
+ /**
+ * @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;
}
/**
@@ -257,4 +379,55 @@ public function setShippingRate($shippingRate)
$this->shippingRate = $shippingRate;
}
+ /**
+ * @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 \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/OpeningHoursSpecification.php b/src/Models/SchemaOrg/OpeningHoursSpecification.php
index c6833643..590564ed 100644
--- a/src/Models/SchemaOrg/OpeningHoursSpecification.php
+++ b/src/Models/SchemaOrg/OpeningHoursSpecification.php
@@ -17,120 +17,121 @@ public static function getType()
public static function fieldList() {
$fields = [
- "closes" => "closes",
- "dayOfWeek" => "dayOfWeek",
"validFrom" => "validFrom",
"opens" => "opens",
"validThrough" => "validThrough",
+ "dayOfWeek" => "dayOfWeek",
+ "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 date when the item becomes valid.
*
*
- * @var string|null
+ * @var Date|DateTime|null
*/
- protected $closes;
+ protected $validFrom;
/**
- * The day of the week for which these opening hours are valid.
+ * The opening hour of the place or service on the given day(s) of the week.
*
*
- * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|null
+ * @var string|null
*/
- protected $dayOfWeek;
+ protected $opens;
/**
- * The date when the item becomes valid.
+ * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
*
*
* @var Date|DateTime|null
*/
- protected $validFrom;
+ protected $validThrough;
/**
- * The opening hour of the place or service on the given day(s) of the week.
+ * The day of the week for which these opening hours are valid.
*
*
- * @var string|null
+ * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|null
*/
- protected $opens;
+ protected $dayOfWeek;
/**
- * 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 closing hour of the place or service on the given day(s) of the week.
*
*
- * @var Date|DateTime|null
+ * @var string|null
*/
- protected $validThrough;
+ protected $closes;
/**
- * @return string|null
+ * @return Date|DateTime|null
*/
- public function getCloses()
+ public function getValidFrom()
{
- return $this->closes;
+ return $this->validFrom;
}
/**
- * @param string|null $closes
+ * @param Date|DateTime|null $validFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCloses($closes)
+ public function setValidFrom($validFrom)
{
$types = [
- "Time",
+ "Date",
+ "DateTime",
"null",
];
- $closes = self::checkTypes($closes, $types);
+ $validFrom = self::checkTypes($validFrom, $types);
- $this->closes = $closes;
+ $this->validFrom = $validFrom;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|null
+ * @return string|null
*/
- public function getDayOfWeek()
+ public function getOpens()
{
- return $this->dayOfWeek;
+ return $this->opens;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|null $dayOfWeek
+ * @param string|null $opens
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDayOfWeek($dayOfWeek)
+ public function setOpens($opens)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\DayOfWeek",
+ "Time",
"null",
];
- $dayOfWeek = self::checkTypes($dayOfWeek, $types);
+ $opens = self::checkTypes($opens, $types);
- $this->dayOfWeek = $dayOfWeek;
+ $this->opens = $opens;
}
/**
* @return Date|DateTime|null
*/
- public function getValidFrom()
+ public function getValidThrough()
{
- return $this->validFrom;
+ return $this->validThrough;
}
/**
- * @param Date|DateTime|null $validFrom
+ * @param Date|DateTime|null $validThrough
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidFrom($validFrom)
+ public function setValidThrough($validThrough)
{
$types = [
"Date",
@@ -138,60 +139,59 @@ public function setValidFrom($validFrom)
"null",
];
- $validFrom = self::checkTypes($validFrom, $types);
+ $validThrough = self::checkTypes($validThrough, $types);
- $this->validFrom = $validFrom;
+ $this->validThrough = $validThrough;
}
/**
- * @return string|null
+ * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|null
*/
- public function getOpens()
+ public function getDayOfWeek()
{
- return $this->opens;
+ return $this->dayOfWeek;
}
/**
- * @param string|null $opens
+ * @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 setOpens($opens)
+ public function setDayOfWeek($dayOfWeek)
{
$types = [
- "Time",
+ "\OpenActive\Enums\SchemaOrg\DayOfWeek",
"null",
];
- $opens = self::checkTypes($opens, $types);
+ $dayOfWeek = self::checkTypes($dayOfWeek, $types);
- $this->opens = $opens;
+ $this->dayOfWeek = $dayOfWeek;
}
/**
- * @return Date|DateTime|null
+ * @return string|null
*/
- public function getValidThrough()
+ public function getCloses()
{
- return $this->validThrough;
+ return $this->closes;
}
/**
- * @param Date|DateTime|null $validThrough
+ * @param string|null $closes
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidThrough($validThrough)
+ public function setCloses($closes)
{
$types = [
- "Date",
- "DateTime",
+ "Time",
"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..8cfcb21c 100644
--- a/src/Models/SchemaOrg/Order.php
+++ b/src/Models/SchemaOrg/Order.php
@@ -17,163 +17,163 @@ public static function getType()
public static function fieldList() {
$fields = [
- "orderDelivery" => "orderDelivery",
- "billingAddress" => "billingAddress",
- "acceptedOffer" => "acceptedOffer",
- "merchant" => "merchant",
- "orderStatus" => "orderStatus",
- "confirmationNumber" => "confirmationNumber",
+ "orderedItem" => "orderedItem",
"partOfInvoice" => "partOfInvoice",
- "orderNumber" => "orderNumber",
"seller" => "seller",
- "customer" => "customer",
+ "confirmationNumber" => "confirmationNumber",
"paymentDueDate" => "paymentDueDate",
- "broker" => "broker",
- "discountCode" => "discountCode",
- "discount" => "discount",
- "paymentMethodId" => "paymentMethodId",
"paymentUrl" => "paymentUrl",
- "discountCurrency" => "discountCurrency",
- "paymentDue" => "paymentDue",
"orderDate" => "orderDate",
"isGift" => "isGift",
- "orderedItem" => "orderedItem",
+ "acceptedOffer" => "acceptedOffer",
+ "discount" => "discount",
+ "broker" => "broker",
+ "orderNumber" => "orderNumber",
+ "customer" => "customer",
"paymentMethod" => "paymentMethod",
+ "merchant" => "merchant",
+ "paymentDue" => "paymentDue",
+ "discountCurrency" => "discountCurrency",
+ "orderStatus" => "orderStatus",
+ "paymentMethodId" => "paymentMethodId",
+ "discountCode" => "discountCode",
+ "billingAddress" => "billingAddress",
+ "orderDelivery" => "orderDelivery",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The delivery of the parcel related to this order or order item.
+ * The item ordered.
*
*
- * @var \OpenActive\Models\SchemaOrg\ParcelDelivery|string
+ * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OrderItem|string
*/
- protected $orderDelivery;
+ protected $orderedItem;
/**
- * The billing address for the order.
+ * The order is being paid as part of the referenced Invoice.
*
*
- * @var \OpenActive\Models\SchemaOrg\PostalAddress|string
+ * @var \OpenActive\Models\SchemaOrg\Invoice|string
*/
- protected $billingAddress;
+ protected $partOfInvoice;
/**
- * The offer(s) -- e.g., product, quantity and price combinations -- included in the order.
+ * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $acceptedOffer;
+ protected $seller;
/**
- * 'merchant' is an out-dated term for 'seller'.
+ * A number that confirms the given order or payment has been received.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $merchant;
+ protected $confirmationNumber;
/**
- * The current status of the order.
+ * The date that payment is due.
*
*
- * @var \OpenActive\Models\SchemaOrg\OrderStatus|string
+ * @var Date|DateTime|null
*/
- protected $orderStatus;
+ protected $paymentDueDate;
/**
- * A number that confirms the given order or payment has been received.
+ * The URL for sending a payment.
*
*
* @var string
*/
- protected $confirmationNumber;
+ protected $paymentUrl;
/**
- * The order is being paid as part of the referenced Invoice.
+ * Date order was placed.
*
*
- * @var \OpenActive\Models\SchemaOrg\Invoice|string
+ * @var Date|DateTime|null
*/
- protected $partOfInvoice;
+ protected $orderDate;
/**
- * The identifier of the transaction.
+ * Indicates whether the offer was accepted as a gift for someone other than the buyer.
*
*
- * @var string
+ * @var bool|null
*/
- protected $orderNumber;
+ protected $isGift;
/**
- * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
+ * The offer(s) -- e.g., product, quantity and price combinations -- included in the order.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $seller;
+ protected $acceptedOffer;
/**
- * Party placing the order or paying the invoice.
+ * Any discount applied (to an Order).
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string|Number|null
*/
- protected $customer;
+ protected $discount;
/**
- * The date that payment is due.
+ * 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 Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $paymentDueDate;
+ protected $broker;
/**
- * 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 identifier of the transaction.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $broker;
+ protected $orderNumber;
/**
- * Code used to redeem a discount.
+ * Party placing the order or paying the invoice.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $discountCode;
+ protected $customer;
/**
- * 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).
+ * 'merchant' is an out-dated term for 'seller'.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $paymentMethodId;
+ protected $merchant;
/**
- * 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".
+ * The currency of the discount.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".
*
*
* @var string
@@ -181,444 +181,449 @@ public static function fieldList() {
protected $discountCurrency;
/**
- * The date that payment is due.
+ * The current status of the order.
*
*
- * @var DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\OrderStatus|string
*/
- protected $paymentDue;
+ protected $orderStatus;
/**
- * Date order was placed.
+ * An identifier for the method of payment used (e.g. the last 4 digits of the credit card).
*
*
- * @var Date|DateTime|null
+ * @var string
*/
- protected $orderDate;
+ protected $paymentMethodId;
/**
- * Was the offer accepted as a gift for someone other than the buyer.
+ * Code used to redeem a discount.
*
*
- * @var bool|null
+ * @var string
*/
- protected $isGift;
+ protected $discountCode;
/**
- * The item ordered.
+ * The billing address for the order.
*
*
- * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string
+ * @var \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
- protected $orderedItem;
+ protected $billingAddress;
/**
- * The name of the credit card or other method of payment for the order.
+ * The delivery of the parcel related to this order or order item.
*
*
- * @var \OpenActive\Enums\SchemaOrg\PaymentMethod|null
+ * @var \OpenActive\Models\SchemaOrg\ParcelDelivery|string
*/
- protected $paymentMethod;
+ protected $orderDelivery;
/**
- * @return \OpenActive\Models\SchemaOrg\ParcelDelivery|string
+ * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OrderItem|string
*/
- public function getOrderDelivery()
+ public function getOrderedItem()
{
- return $this->orderDelivery;
+ return $this->orderedItem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ParcelDelivery|string $orderDelivery
+ * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OrderItem|string $orderedItem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOrderDelivery($orderDelivery)
+ public function setOrderedItem($orderedItem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ParcelDelivery",
+ "\OpenActive\Models\SchemaOrg\Service",
+ "\OpenActive\Models\SchemaOrg\Product",
+ "\OpenActive\Models\SchemaOrg\OrderItem",
"string",
];
- $orderDelivery = self::checkTypes($orderDelivery, $types);
+ $orderedItem = self::checkTypes($orderedItem, $types);
- $this->orderDelivery = $orderDelivery;
+ $this->orderedItem = $orderedItem;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PostalAddress|string
+ * @return \OpenActive\Models\SchemaOrg\Invoice|string
*/
- public function getBillingAddress()
+ public function getPartOfInvoice()
{
- return $this->billingAddress;
+ return $this->partOfInvoice;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $billingAddress
+ * @param \OpenActive\Models\SchemaOrg\Invoice|string $partOfInvoice
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBillingAddress($billingAddress)
+ public function setPartOfInvoice($partOfInvoice)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PostalAddress",
+ "\OpenActive\Models\SchemaOrg\Invoice",
"string",
];
- $billingAddress = self::checkTypes($billingAddress, $types);
+ $partOfInvoice = self::checkTypes($partOfInvoice, $types);
- $this->billingAddress = $billingAddress;
+ $this->partOfInvoice = $partOfInvoice;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getAcceptedOffer()
+ public function getSeller()
{
- return $this->acceptedOffer;
+ return $this->seller;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|string $acceptedOffer
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAcceptedOffer($acceptedOffer)
+ public function setSeller($seller)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $acceptedOffer = self::checkTypes($acceptedOffer, $types);
+ $seller = self::checkTypes($seller, $types);
- $this->acceptedOffer = $acceptedOffer;
+ $this->seller = $seller;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getMerchant()
+ public function getConfirmationNumber()
{
- return $this->merchant;
+ return $this->confirmationNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $merchant
+ * @param string $confirmationNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMerchant($merchant)
+ public function setConfirmationNumber($confirmationNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $merchant = self::checkTypes($merchant, $types);
+ $confirmationNumber = self::checkTypes($confirmationNumber, $types);
- $this->merchant = $merchant;
+ $this->confirmationNumber = $confirmationNumber;
}
/**
- * @return \OpenActive\Models\SchemaOrg\OrderStatus|string
+ * @return Date|DateTime|null
*/
- public function getOrderStatus()
+ public function getPaymentDueDate()
{
- return $this->orderStatus;
+ return $this->paymentDueDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\OrderStatus|string $orderStatus
+ * @param Date|DateTime|null $paymentDueDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOrderStatus($orderStatus)
+ public function setPaymentDueDate($paymentDueDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\OrderStatus",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $orderStatus = self::checkTypes($orderStatus, $types);
+ $paymentDueDate = self::checkTypes($paymentDueDate, $types);
- $this->orderStatus = $orderStatus;
+ $this->paymentDueDate = $paymentDueDate;
}
/**
* @return string
*/
- public function getConfirmationNumber()
+ public function getPaymentUrl()
{
- return $this->confirmationNumber;
+ return $this->paymentUrl;
}
/**
- * @param string $confirmationNumber
+ * @param string $paymentUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setConfirmationNumber($confirmationNumber)
+ public function setPaymentUrl($paymentUrl)
{
$types = [
"string",
];
- $confirmationNumber = self::checkTypes($confirmationNumber, $types);
+ $paymentUrl = self::checkTypes($paymentUrl, $types);
- $this->confirmationNumber = $confirmationNumber;
+ $this->paymentUrl = $paymentUrl;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Invoice|string
+ * @return Date|DateTime|null
*/
- public function getPartOfInvoice()
+ public function getOrderDate()
{
- return $this->partOfInvoice;
+ return $this->orderDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Invoice|string $partOfInvoice
+ * @param Date|DateTime|null $orderDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPartOfInvoice($partOfInvoice)
+ public function setOrderDate($orderDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Invoice",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $partOfInvoice = self::checkTypes($partOfInvoice, $types);
+ $orderDate = self::checkTypes($orderDate, $types);
- $this->partOfInvoice = $partOfInvoice;
+ $this->orderDate = $orderDate;
}
/**
- * @return string
+ * @return bool|null
*/
- public function getOrderNumber()
+ public function getIsGift()
{
- return $this->orderNumber;
+ return $this->isGift;
}
/**
- * @param string $orderNumber
+ * @param bool|null $isGift
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOrderNumber($orderNumber)
+ public function setIsGift($isGift)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $orderNumber = self::checkTypes($orderNumber, $types);
+ $isGift = self::checkTypes($isGift, $types);
- $this->orderNumber = $orderNumber;
+ $this->isGift = $isGift;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Offer|string
*/
- public function getSeller()
+ public function getAcceptedOffer()
{
- return $this->seller;
+ return $this->acceptedOffer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller
+ * @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 setSeller($seller)
+ public function setAcceptedOffer($acceptedOffer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Offer",
"string",
];
- $seller = self::checkTypes($seller, $types);
+ $acceptedOffer = self::checkTypes($acceptedOffer, $types);
- $this->seller = $seller;
+ $this->acceptedOffer = $acceptedOffer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string|Number|null
*/
- public function getCustomer()
+ public function getDiscount()
{
- return $this->customer;
+ return $this->discount;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $customer
+ * @param string|Number|null $discount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCustomer($customer)
+ public function setDiscount($discount)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
+ "Number",
+ "null",
];
- $customer = self::checkTypes($customer, $types);
+ $discount = self::checkTypes($discount, $types);
- $this->customer = $customer;
+ $this->discount = $discount;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getPaymentDueDate()
+ public function getBroker()
{
- return $this->paymentDueDate;
+ return $this->broker;
}
/**
- * @param Date|DateTime|null $paymentDueDate
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPaymentDueDate($paymentDueDate)
+ public function setBroker($broker)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $paymentDueDate = self::checkTypes($paymentDueDate, $types);
+ $broker = self::checkTypes($broker, $types);
- $this->paymentDueDate = $paymentDueDate;
+ $this->broker = $broker;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getBroker()
+ public function getOrderNumber()
{
- return $this->broker;
+ return $this->orderNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker
+ * @param string $orderNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroker($broker)
+ public function setOrderNumber($orderNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $broker = self::checkTypes($broker, $types);
+ $orderNumber = self::checkTypes($orderNumber, $types);
- $this->broker = $broker;
+ $this->orderNumber = $orderNumber;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDiscountCode()
+ public function getCustomer()
{
- return $this->discountCode;
+ return $this->customer;
}
/**
- * @param string $discountCode
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $customer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDiscountCode($discountCode)
+ public function setCustomer($customer)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $discountCode = self::checkTypes($discountCode, $types);
+ $customer = self::checkTypes($customer, $types);
- $this->discountCode = $discountCode;
+ $this->customer = $customer;
}
/**
- * @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 getMerchant()
{
- return $this->paymentMethodId;
+ return $this->merchant;
}
/**
- * @param string $paymentMethodId
+ * @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 setPaymentMethodId($paymentMethodId)
+ public function setMerchant($merchant)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $paymentMethodId = self::checkTypes($paymentMethodId, $types);
+ $merchant = self::checkTypes($merchant, $types);
- $this->paymentMethodId = $paymentMethodId;
+ $this->merchant = $merchant;
}
/**
- * @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;
}
/**
@@ -646,131 +651,126 @@ public function setDiscountCurrency($discountCurrency)
}
/**
- * @return DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\OrderStatus|string
*/
- public function getPaymentDue()
+ public function getOrderStatus()
{
- return $this->paymentDue;
+ return $this->orderStatus;
}
/**
- * @param DateTime|null $paymentDue
+ * @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 setPaymentDue($paymentDue)
+ public function setOrderStatus($orderStatus)
{
$types = [
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\OrderStatus",
+ "string",
];
- $paymentDue = self::checkTypes($paymentDue, $types);
+ $orderStatus = self::checkTypes($orderStatus, $types);
- $this->paymentDue = $paymentDue;
+ $this->orderStatus = $orderStatus;
}
/**
- * @return Date|DateTime|null
+ * @return string
*/
- public function getOrderDate()
+ public function getPaymentMethodId()
{
- return $this->orderDate;
+ return $this->paymentMethodId;
}
/**
- * @param Date|DateTime|null $orderDate
+ * @param string $paymentMethodId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOrderDate($orderDate)
+ public function setPaymentMethodId($paymentMethodId)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
];
- $orderDate = self::checkTypes($orderDate, $types);
+ $paymentMethodId = self::checkTypes($paymentMethodId, $types);
- $this->orderDate = $orderDate;
+ $this->paymentMethodId = $paymentMethodId;
}
/**
- * @return bool|null
+ * @return string
*/
- public function getIsGift()
+ public function getDiscountCode()
{
- return $this->isGift;
+ return $this->discountCode;
}
/**
- * @param bool|null $isGift
+ * @param string $discountCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsGift($isGift)
+ public function setDiscountCode($discountCode)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $isGift = self::checkTypes($isGift, $types);
+ $discountCode = self::checkTypes($discountCode, $types);
- $this->isGift = $isGift;
+ $this->discountCode = $discountCode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string
+ * @return \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
- public function getOrderedItem()
+ public function getBillingAddress()
{
- return $this->orderedItem;
+ return $this->billingAddress;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string $orderedItem
+ * @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 setOrderedItem($orderedItem)
+ public function setBillingAddress($billingAddress)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Service",
- "\OpenActive\Models\SchemaOrg\OrderItem",
- "\OpenActive\Models\SchemaOrg\Product",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
"string",
];
- $orderedItem = self::checkTypes($orderedItem, $types);
+ $billingAddress = self::checkTypes($billingAddress, $types);
- $this->orderedItem = $orderedItem;
+ $this->billingAddress = $billingAddress;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|null
+ * @return \OpenActive\Models\SchemaOrg\ParcelDelivery|string
*/
- public function getPaymentMethod()
+ public function getOrderDelivery()
{
- return $this->paymentMethod;
+ return $this->orderDelivery;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|null $paymentMethod
+ * @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 setPaymentMethod($paymentMethod)
+ public function setOrderDelivery($orderDelivery)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\PaymentMethod",
- "null",
+ "\OpenActive\Models\SchemaOrg\ParcelDelivery",
+ "string",
];
- $paymentMethod = self::checkTypes($paymentMethod, $types);
+ $orderDelivery = self::checkTypes($orderDelivery, $types);
- $this->paymentMethod = $paymentMethod;
+ $this->orderDelivery = $orderDelivery;
}
}
diff --git a/src/Models/SchemaOrg/OrderItem.php b/src/Models/SchemaOrg/OrderItem.php
index 3de3127a..3d876f18 100644
--- a/src/Models/SchemaOrg/OrderItem.php
+++ b/src/Models/SchemaOrg/OrderItem.php
@@ -17,39 +17,39 @@ public static function getType()
public static function fieldList() {
$fields = [
- "orderDelivery" => "orderDelivery",
- "orderItemStatus" => "orderItemStatus",
+ "orderedItem" => "orderedItem",
"orderQuantity" => "orderQuantity",
+ "orderItemStatus" => "orderItemStatus",
"orderItemNumber" => "orderItemNumber",
- "orderedItem" => "orderedItem",
+ "orderDelivery" => "orderDelivery",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The delivery of the parcel related to this order or order item.
+ * The item ordered.
*
*
- * @var \OpenActive\Models\SchemaOrg\ParcelDelivery|string
+ * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OrderItem|string
*/
- protected $orderDelivery;
+ protected $orderedItem;
/**
- * The current status of the order item.
+ * The number of the item ordered. If the property is not set, assume the quantity is one.
*
*
- * @var \OpenActive\Models\SchemaOrg\OrderStatus|string
+ * @var Number|null
*/
- protected $orderItemStatus;
+ protected $orderQuantity;
/**
- * The number of the item ordered. If the property is not set, assume the quantity is one.
+ * The current status of the order item.
*
*
- * @var Number|null
+ * @var \OpenActive\Models\SchemaOrg\OrderStatus|string
*/
- protected $orderQuantity;
+ protected $orderItemStatus;
/**
* The identifier of the order item.
@@ -60,86 +60,88 @@ public static function fieldList() {
protected $orderItemNumber;
/**
- * 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 \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OrderItem|string
*/
- public function getOrderDelivery()
+ public function getOrderedItem()
{
- return $this->orderDelivery;
+ return $this->orderedItem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ParcelDelivery|string $orderDelivery
+ * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OrderItem|string $orderedItem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOrderDelivery($orderDelivery)
+ public function setOrderedItem($orderedItem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ParcelDelivery",
+ "\OpenActive\Models\SchemaOrg\Service",
+ "\OpenActive\Models\SchemaOrg\Product",
+ "\OpenActive\Models\SchemaOrg\OrderItem",
"string",
];
- $orderDelivery = self::checkTypes($orderDelivery, $types);
+ $orderedItem = self::checkTypes($orderedItem, $types);
- $this->orderDelivery = $orderDelivery;
+ $this->orderedItem = $orderedItem;
}
/**
- * @return \OpenActive\Models\SchemaOrg\OrderStatus|string
+ * @return Number|null
*/
- public function getOrderItemStatus()
+ public function getOrderQuantity()
{
- return $this->orderItemStatus;
+ return $this->orderQuantity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\OrderStatus|string $orderItemStatus
+ * @param Number|null $orderQuantity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOrderItemStatus($orderItemStatus)
+ public function setOrderQuantity($orderQuantity)
{
$types = [
- "\OpenActive\Models\SchemaOrg\OrderStatus",
- "string",
+ "Number",
+ "null",
];
- $orderItemStatus = self::checkTypes($orderItemStatus, $types);
+ $orderQuantity = self::checkTypes($orderQuantity, $types);
- $this->orderItemStatus = $orderItemStatus;
+ $this->orderQuantity = $orderQuantity;
}
/**
- * @return Number|null
+ * @return \OpenActive\Models\SchemaOrg\OrderStatus|string
*/
- public function getOrderQuantity()
+ public function getOrderItemStatus()
{
- return $this->orderQuantity;
+ return $this->orderItemStatus;
}
/**
- * @param Number|null $orderQuantity
+ * @param \OpenActive\Models\SchemaOrg\OrderStatus|string $orderItemStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOrderQuantity($orderQuantity)
+ public function setOrderItemStatus($orderItemStatus)
{
$types = [
- "Number",
- "null",
+ "\OpenActive\Models\SchemaOrg\OrderStatus",
+ "string",
];
- $orderQuantity = self::checkTypes($orderQuantity, $types);
+ $orderItemStatus = self::checkTypes($orderItemStatus, $types);
- $this->orderQuantity = $orderQuantity;
+ $this->orderItemStatus = $orderItemStatus;
}
/**
@@ -167,30 +169,28 @@ public function setOrderItemNumber($orderItemNumber)
}
/**
- * @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..9898be0a 100644
--- a/src/Models/SchemaOrg/Organization.php
+++ b/src/Models/SchemaOrg/Organization.php
@@ -17,196 +17,191 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "contactPoints" => "contactPoints",
+ "foundingDate" => "foundingDate",
"ownershipFundingInfo" => "ownershipFundingInfo",
- "hasCredential" => "hasCredential",
+ "location" => "location",
+ "publishingPrinciples" => "publishingPrinciples",
+ "legalName" => "legalName",
+ "diversityPolicy" => "diversityPolicy",
+ "nonprofitStatus" => "nonprofitStatus",
+ "contactPoint" => "contactPoint",
+ "awards" => "awards",
"founders" => "founders",
- "telephone" => "telephone",
- "review" => "review",
+ "department" => "department",
+ "naics" => "naics",
"knowsAbout" => "knowsAbout",
- "award" => "award",
- "member" => "member",
- "employee" => "employee",
- "dissolutionDate" => "dissolutionDate",
- "funding" => "funding",
- "vatID" => "vatID",
- "globalLocationNumber" => "globalLocationNumber",
- "keywords" => "keywords",
- "contactPoints" => "contactPoints",
"subOrganization" => "subOrganization",
- "awards" => "awards",
- "numberOfEmployees" => "numberOfEmployees",
- "funder" => "funder",
+ "leiCode" => "leiCode",
+ "isicV4" => "isicV4",
+ "memberOf" => "memberOf",
"makesOffer" => "makesOffer",
- "legalName" => "legalName",
- "correctionsPolicy" => "correctionsPolicy",
+ "parentOrganization" => "parentOrganization",
+ "keywords" => "keywords",
+ "address" => "address",
+ "actionableFeedbackPolicy" => "actionableFeedbackPolicy",
+ "duns" => "duns",
"aggregateRating" => "aggregateRating",
+ "foundingLocation" => "foundingLocation",
+ "employee" => "employee",
"interactionStatistic" => "interactionStatistic",
- "location" => "location",
- "address" => "address",
- "memberOf" => "memberOf",
- "publishingPrinciples" => "publishingPrinciples",
- "diversityStaffingReport" => "diversityStaffingReport",
- "diversityPolicy" => "diversityPolicy",
- "email" => "email",
- "employees" => "employees",
- "nonprofitStatus" => "nonprofitStatus",
- "slogan" => "slogan",
- "ethicsPolicy" => "ethicsPolicy",
- "brand" => "brand",
"sponsor" => "sponsor",
+ "iso6523Code" => "iso6523Code",
+ "hasCredential" => "hasCredential",
+ "taxID" => "taxID",
+ "award" => "award",
+ "employees" => "employees",
+ "funder" => "funder",
+ "seeks" => "seeks",
+ "event" => "event",
+ "numberOfEmployees" => "numberOfEmployees",
"logo" => "logo",
- "actionableFeedbackPolicy" => "actionableFeedbackPolicy",
- "naics" => "naics",
- "contactPoint" => "contactPoint",
+ "dissolutionDate" => "dissolutionDate",
+ "members" => "members",
+ "hasOfferCatalog" => "hasOfferCatalog",
+ "ethicsPolicy" => "ethicsPolicy",
+ "correctionsPolicy" => "correctionsPolicy",
+ "events" => "events",
"serviceArea" => "serviceArea",
- "isicV4" => "isicV4",
- "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy",
- "hasPOS" => "hasPOS",
- "founder" => "founder",
+ "diversityStaffingReport" => "diversityStaffingReport",
+ "funding" => "funding",
"unnamedSourcesPolicy" => "unnamedSourcesPolicy",
- "foundingLocation" => "foundingLocation",
- "duns" => "duns",
- "parentOrganization" => "parentOrganization",
- "alumni" => "alumni",
- "leiCode" => "leiCode",
- "areaServed" => "areaServed",
- "foundingDate" => "foundingDate",
- "knowsLanguage" => "knowsLanguage",
+ "faxNumber" => "faxNumber",
+ "slogan" => "slogan",
"reviews" => "reviews",
- "seeks" => "seeks",
- "taxID" => "taxID",
+ "globalLocationNumber" => "globalLocationNumber",
"owns" => "owns",
- "hasOfferCatalog" => "hasOfferCatalog",
- "members" => "members",
- "events" => "events",
- "iso6523Code" => "iso6523Code",
- "department" => "department",
- "faxNumber" => "faxNumber",
- "event" => "event",
+ "knowsLanguage" => "knowsLanguage",
+ "brand" => "brand",
+ "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy",
+ "alumni" => "alumni",
+ "founder" => "founder",
+ "telephone" => "telephone",
+ "review" => "review",
+ "areaServed" => "areaServed",
+ "member" => "member",
+ "hasPOS" => "hasPOS",
+ "email" => "email",
+ "vatID" => "vatID",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.
- *
- *
- * @var string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork
- */
- protected $ownershipFundingInfo;
-
- /**
- * A credential awarded to the Person or Organization.
+ * A contact point for a person or organization.
*
*
- * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- protected $hasCredential;
+ protected $contactPoints;
/**
- * A person who founded this organization.
+ * The date that this organization was founded.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var Date|null
*/
- protected $founders;
+ protected $foundingDate;
/**
- * The telephone number.
+ * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\AboutPage
*/
- protected $telephone;
+ protected $ownershipFundingInfo;
/**
- * A review of the item.
+ * 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\Review|string
+ * @var \OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|string
*/
- protected $review;
+ protected $location;
/**
- * 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 publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]].
+ *
+ * While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology.
+ *
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Thing
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $knowsAbout;
+ protected $publishingPrinciples;
/**
- * An award won by or for this item.
+ * The official name of the organization, e.g. the registered company name.
*
*
* @var string
*/
- protected $award;
+ protected $legalName;
/**
- * A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.
+ * Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $member;
+ protected $diversityPolicy;
/**
- * Someone working for this organization.
+ * nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Enums\SchemaOrg\NonprofitType|null
*/
- protected $employee;
+ protected $nonprofitStatus;
/**
- * The date that this organization was dissolved.
+ * A contact point for a person or organization.
*
*
- * @var Date|null
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- protected $dissolutionDate;
+ protected $contactPoint;
/**
- * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
+ * Awards won by or for this item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Grant|string
+ * @var string
*/
- protected $funding;
+ protected $awards;
/**
- * The Value-added Tax ID of the organization or person.
+ * A person who founded this organization.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $vatID;
+ protected $founders;
/**
- * 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 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 string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $globalLocationNumber;
+ protected $department;
/**
- * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.
+ * The North American Industry Classification System (NAICS) code for a particular organization or business person.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string
*/
- protected $keywords;
+ protected $naics;
/**
- * A contact point for a person or organization.
+ * Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions.
*
*
- * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @var string|\OpenActive\Models\SchemaOrg\Thing
*/
- protected $contactPoints;
+ protected $knowsAbout;
/**
* A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific 'department' property.
@@ -217,28 +212,28 @@ public static function fieldList() {
protected $subOrganization;
/**
- * Awards won by or for this item.
+ * An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.
*
*
* @var string
*/
- protected $awards;
+ protected $leiCode;
/**
- * The number of employees in an organization e.g. business.
+ * 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\QuantitativeValue|string
+ * @var string
*/
- protected $numberOfEmployees;
+ protected $isicV4;
/**
- * A person or organization that supports (sponsors) something through some kind of financial contribution.
+ * An Organization (or ProgramMembership) to which this Person or Organization belongs.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $funder;
+ protected $memberOf;
/**
* A pointer to products or services offered by the organization or person.
@@ -249,747 +244,729 @@ public static function fieldList() {
protected $makesOffer;
/**
- * The official name of the organization, e.g. the registered company name.
+ * The larger organization that this organization is a [[subOrganization]] of, if any.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $legalName;
+ protected $parentOrganization;
/**
- * For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.
+ * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $correctionsPolicy;
+ protected $keywords;
/**
- * The overall rating, based on a collection of reviews or ratings, of the item.
+ * Physical address of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @var \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
- protected $aggregateRating;
+ protected $address;
/**
- * 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 \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- 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.
+ * The Dun & Bradstreet DUNS number for identifying an organization or business person.
*
*
- * @var \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @var string
*/
- protected $location;
+ protected $duns;
/**
- * Physical address of the item.
+ * The overall rating, based on a collection of reviews or ratings, of the item.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- protected $address;
+ protected $aggregateRating;
/**
- * An Organization (or ProgramMembership) to which this Person or Organization belongs.
+ * The place where the Organization was founded.
*
*
- * @var \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $memberOf;
+ protected $foundingLocation;
/**
- * 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.
- *
+ * Someone working for this organization.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $publishingPrinciples;
+ protected $employee;
/**
- * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.
+ * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Article
+ * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string
*/
- protected $diversityStaffingReport;
+ protected $interactionStatistic;
/**
- * 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.
+ * A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $diversityPolicy;
+ protected $sponsor;
/**
- * Email address.
+ * 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
*/
- protected $email;
-
- /**
- * People working for this organization.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Person|string
- */
- protected $employees;
+ protected $iso6523Code;
/**
- * nonprofit Status indicates the legal status of a non-profit organization in its primary place of business.
+ * A credential awarded to the Person or Organization.
*
*
- * @var \OpenActive\Enums\SchemaOrg\NonprofitType|null
+ * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
*/
- protected $nonprofitStatus;
+ protected $hasCredential;
/**
- * A slogan or motto associated with the item.
+ * 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 $slogan;
+ protected $taxID;
/**
- * 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.
+ * An award won by or for this item.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var string
*/
- protected $ethicsPolicy;
+ protected $award;
/**
- * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.
+ * People working for this organization.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $brand;
+ protected $employees;
/**
- * 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 (sponsors) something through some kind of financial contribution.
*
*
* @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $sponsor;
+ protected $funder;
/**
- * An associated logo.
+ * A pointer to products or services sought by the organization or person (demand).
*
*
- * @var string|\OpenActive\Models\SchemaOrg\ImageObject
+ * @var \OpenActive\Models\SchemaOrg\Demand|string
*/
- protected $logo;
+ protected $seeks;
/**
- * 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.
+ * Upcoming or past event associated with this place, organization, or action.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $actionableFeedbackPolicy;
+ protected $event;
/**
- * The North American Industry Classification System (NAICS) code for a particular organization or business person.
+ * The number of employees in an organization, e.g. business.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $naics;
+ protected $numberOfEmployees;
/**
- * A contact point for a person or organization.
+ * An associated logo.
*
*
- * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @var \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- protected $contactPoint;
+ protected $logo;
/**
- * The geographic area where the service is provided.
+ * The date that this organization was dissolved.
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string
+ * @var Date|null
*/
- protected $serviceArea;
+ protected $dissolutionDate;
/**
- * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.
+ * A member of this organization.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $isicV4;
+ protected $members;
/**
- * Specifies a MerchantReturnPolicy that may be applicable.
+ * Indicates an OfferCatalog listing for this Organization, Person, or Service.
*
*
- * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string
+ * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string
*/
- protected $hasMerchantReturnPolicy;
+ protected $hasOfferCatalog;
/**
- * Points-of-Sales operated by the organization or person.
+ * Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $hasPOS;
+ protected $ethicsPolicy;
/**
- * A person who founded this organization.
+ * For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $founder;
+ protected $correctionsPolicy;
/**
- * For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.
+ * Upcoming or past events associated with this place or organization.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $unnamedSourcesPolicy;
+ protected $events;
/**
- * The place where the Organization was founded.
+ * The geographic area where the service is provided.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $foundingLocation;
+ protected $serviceArea;
/**
- * The Dun & Bradstreet DUNS number for identifying an organization or business person.
+ * 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
+ * @var string|\OpenActive\Models\SchemaOrg\Article
*/
- protected $duns;
+ protected $diversityStaffingReport;
/**
- * The larger organization that this organization is a [[subOrganization]] of, if any.
+ * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Grant|string
*/
- protected $parentOrganization;
+ protected $funding;
/**
- * Alumni of an organization.
+ * For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $alumni;
+ protected $unnamedSourcesPolicy;
/**
- * An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.
+ * The fax number.
*
*
* @var string
*/
- protected $leiCode;
+ protected $faxNumber;
/**
- * The geographic area where a service or offered item is provided.
+ * A slogan or motto associated with the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var string
*/
- protected $areaServed;
+ protected $slogan;
/**
- * The date that this organization was founded.
+ * Review of the item.
*
*
- * @var Date|null
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $foundingDate;
+ protected $reviews;
/**
- * Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47).
+ * The [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\Language|string
+ * @var string
*/
- protected $knowsLanguage;
+ protected $globalLocationNumber;
/**
- * Review of the item.
+ * Products owned by the organization or person.
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var \OpenActive\Models\SchemaOrg\OwnershipInfo|\OpenActive\Models\SchemaOrg\Product|string
*/
- protected $reviews;
+ protected $owns;
/**
- * A pointer to products or services sought by the organization or person (demand).
+ * 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\Demand|string
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $seeks;
+ protected $knowsLanguage;
/**
- * The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.
+ * 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\Brand|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $taxID;
+ protected $brand;
/**
- * Products owned by the organization or person.
+ * Specifies a MerchantReturnPolicy that may be applicable.
*
*
- * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string
+ * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string
*/
- protected $owns;
+ protected $hasMerchantReturnPolicy;
/**
- * Indicates an OfferCatalog listing for this Organization, Person, or Service.
+ * Alumni of an organization.
*
*
- * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $hasOfferCatalog;
+ protected $alumni;
/**
- * A member of this organization.
+ * A person who founded this organization.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $members;
+ protected $founder;
/**
- * Upcoming or past events associated with this place or organization.
+ * The telephone number.
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var string
*/
- protected $events;
+ protected $telephone;
/**
- * 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.
+ * A review of the item.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $iso6523Code;
+ protected $review;
/**
- * A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe.
+ * The geographic area where a service or offered item is provided.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- protected $department;
+ protected $areaServed;
/**
- * The fax number.
+ * A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $faxNumber;
+ protected $member;
/**
- * Upcoming or past event associated with this place, organization, or action.
+ * Points-of-Sales operated by the organization or person.
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $event;
+ protected $hasPOS;
/**
- * @return string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork
+ * Email address.
+ *
+ *
+ * @var string
*/
- public function getOwnershipFundingInfo()
- {
- return $this->ownershipFundingInfo;
- }
+ protected $email;
/**
- * @param string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork $ownershipFundingInfo
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The Value-added Tax ID of the organization or person.
+ *
+ *
+ * @var string
*/
- public function setOwnershipFundingInfo($ownershipFundingInfo)
- {
- $types = [
- "string",
- "\OpenActive\Models\SchemaOrg\AboutPage",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
- ];
-
- $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types);
-
- $this->ownershipFundingInfo = $ownershipFundingInfo;
- }
+ protected $vatID;
/**
- * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- public function getHasCredential()
+ public function getContactPoints()
{
- return $this->hasCredential;
+ return $this->contactPoints;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $hasCredential
+ * @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 setHasCredential($hasCredential)
+ public function setContactPoints($contactPoints)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
];
- $hasCredential = self::checkTypes($hasCredential, $types);
+ $contactPoints = self::checkTypes($contactPoints, $types);
- $this->hasCredential = $hasCredential;
+ $this->contactPoints = $contactPoints;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return Date|null
*/
- public function getFounders()
+ public function getFoundingDate()
{
- return $this->founders;
+ return $this->foundingDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $founders
+ * @param Date|null $foundingDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFounders($founders)
+ public function setFoundingDate($foundingDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "Date",
+ "null",
];
- $founders = self::checkTypes($founders, $types);
+ $foundingDate = self::checkTypes($foundingDate, $types);
- $this->founders = $founders;
+ $this->foundingDate = $foundingDate;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\AboutPage
*/
- public function getTelephone()
+ public function getOwnershipFundingInfo()
{
- return $this->telephone;
+ return $this->ownershipFundingInfo;
}
/**
- * @param string $telephone
+ * @param string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\AboutPage $ownershipFundingInfo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTelephone($telephone)
+ public function setOwnershipFundingInfo($ownershipFundingInfo)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\AboutPage",
];
- $telephone = self::checkTypes($telephone, $types);
+ $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types);
- $this->telephone = $telephone;
+ $this->ownershipFundingInfo = $ownershipFundingInfo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return \OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|string
*/
- public function getReview()
+ public function getLocation()
{
- return $this->review;
+ return $this->location;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $review
+ * @param \OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|string $location
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReview($review)
+ public function setLocation($location)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\VirtualLocation",
"string",
];
- $review = self::checkTypes($review, $types);
+ $location = self::checkTypes($location, $types);
- $this->review = $review;
+ $this->location = $location;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Thing
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getKnowsAbout()
+ public function getPublishingPrinciples()
{
- return $this->knowsAbout;
+ return $this->publishingPrinciples;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Thing $knowsAbout
+ * @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 setKnowsAbout($knowsAbout)
+ public function setPublishingPrinciples($publishingPrinciples)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
- "\OpenActive\Models\SchemaOrg\Thing",
];
- $knowsAbout = self::checkTypes($knowsAbout, $types);
+ $publishingPrinciples = self::checkTypes($publishingPrinciples, $types);
- $this->knowsAbout = $knowsAbout;
+ $this->publishingPrinciples = $publishingPrinciples;
}
/**
* @return string
*/
- public function getAward()
+ public function getLegalName()
{
- return $this->award;
+ return $this->legalName;
}
/**
- * @param string $award
+ * @param string $legalName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAward($award)
+ public function setLegalName($legalName)
{
$types = [
"string",
];
- $award = self::checkTypes($award, $types);
+ $legalName = self::checkTypes($legalName, $types);
- $this->award = $award;
+ $this->legalName = $legalName;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getMember()
+ public function getDiversityPolicy()
{
- return $this->member;
+ return $this->diversityPolicy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $member
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $diversityPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMember($member)
+ public function setDiversityPolicy($diversityPolicy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $member = self::checkTypes($member, $types);
+ $diversityPolicy = self::checkTypes($diversityPolicy, $types);
- $this->member = $member;
+ $this->diversityPolicy = $diversityPolicy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Enums\SchemaOrg\NonprofitType|null
*/
- public function getEmployee()
+ public function getNonprofitStatus()
{
- return $this->employee;
+ return $this->nonprofitStatus;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $employee
+ * @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 setEmployee($employee)
+ public function setNonprofitStatus($nonprofitStatus)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "\OpenActive\Enums\SchemaOrg\NonprofitType",
+ "null",
];
- $employee = self::checkTypes($employee, $types);
+ $nonprofitStatus = self::checkTypes($nonprofitStatus, $types);
- $this->employee = $employee;
+ $this->nonprofitStatus = $nonprofitStatus;
}
/**
- * @return Date|null
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- public function getDissolutionDate()
+ public function getContactPoint()
{
- return $this->dissolutionDate;
+ return $this->contactPoint;
}
/**
- * @param Date|null $dissolutionDate
+ * @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 setDissolutionDate($dissolutionDate)
+ public function setContactPoint($contactPoint)
{
$types = [
- "Date",
- "null",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "string",
];
- $dissolutionDate = self::checkTypes($dissolutionDate, $types);
+ $contactPoint = self::checkTypes($contactPoint, $types);
- $this->dissolutionDate = $dissolutionDate;
+ $this->contactPoint = $contactPoint;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Grant|string
+ * @return string
*/
- public function getFunding()
+ public function getAwards()
{
- return $this->funding;
+ return $this->awards;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Grant|string $funding
+ * @param string $awards
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFunding($funding)
+ public function setAwards($awards)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Grant",
"string",
];
- $funding = self::checkTypes($funding, $types);
+ $awards = self::checkTypes($awards, $types);
- $this->funding = $funding;
+ $this->awards = $awards;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getVatID()
+ public function getFounders()
{
- return $this->vatID;
+ return $this->founders;
}
/**
- * @param string $vatID
+ * @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 setVatID($vatID)
+ public function setFounders($founders)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $vatID = self::checkTypes($vatID, $types);
+ $founders = self::checkTypes($founders, $types);
- $this->vatID = $vatID;
+ $this->founders = $founders;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getGlobalLocationNumber()
+ public function getDepartment()
{
- return $this->globalLocationNumber;
+ return $this->department;
}
/**
- * @param string $globalLocationNumber
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $department
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGlobalLocationNumber($globalLocationNumber)
+ public function setDepartment($department)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $globalLocationNumber = self::checkTypes($globalLocationNumber, $types);
+ $department = self::checkTypes($department, $types);
- $this->globalLocationNumber = $globalLocationNumber;
+ $this->department = $department;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string
*/
- public function getKeywords()
+ public function getNaics()
{
- return $this->keywords;
+ return $this->naics;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords
+ * @param string $naics
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setKeywords($keywords)
+ public function setNaics($naics)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $keywords = self::checkTypes($keywords, $types);
+ $naics = self::checkTypes($naics, $types);
- $this->keywords = $keywords;
+ $this->naics = $naics;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @return string|\OpenActive\Models\SchemaOrg\Thing
*/
- public function getContactPoints()
+ public function getKnowsAbout()
{
- return $this->contactPoints;
+ return $this->knowsAbout;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoints
+ * @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 setContactPoints($contactPoints)
+ public function setKnowsAbout($knowsAbout)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
+ "\OpenActive\Models\SchemaOrg\Thing",
];
- $contactPoints = self::checkTypes($contactPoints, $types);
+ $knowsAbout = self::checkTypes($knowsAbout, $types);
- $this->contactPoints = $contactPoints;
+ $this->knowsAbout = $knowsAbout;
}
/**
@@ -1020,76 +997,75 @@ public function setSubOrganization($subOrganization)
/**
* @return string
*/
- public function getAwards()
+ public function getLeiCode()
{
- return $this->awards;
+ return $this->leiCode;
}
/**
- * @param string $awards
+ * @param string $leiCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAwards($awards)
+ public function setLeiCode($leiCode)
{
$types = [
"string",
];
- $awards = self::checkTypes($awards, $types);
+ $leiCode = self::checkTypes($leiCode, $types);
- $this->awards = $awards;
+ $this->leiCode = $leiCode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getNumberOfEmployees()
+ public function getIsicV4()
{
- return $this->numberOfEmployees;
+ return $this->isicV4;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfEmployees
+ * @param string $isicV4
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfEmployees($numberOfEmployees)
+ public function setIsicV4($isicV4)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $numberOfEmployees = self::checkTypes($numberOfEmployees, $types);
+ $isicV4 = self::checkTypes($isicV4, $types);
- $this->numberOfEmployees = $numberOfEmployees;
+ $this->isicV4 = $isicV4;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getFunder()
+ public function getMemberOf()
{
- return $this->funder;
+ return $this->memberOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
+ * @param \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string $memberOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFunder($funder)
+ public function setMemberOf($memberOf)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ProgramMembership",
"\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $funder = self::checkTypes($funder, $types);
+ $memberOf = self::checkTypes($memberOf, $types);
- $this->funder = $funder;
+ $this->memberOf = $memberOf;
}
/**
@@ -1118,859 +1094,881 @@ public function setMakesOffer($makesOffer)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getLegalName()
+ public function getParentOrganization()
{
- return $this->legalName;
+ return $this->parentOrganization;
}
/**
- * @param string $legalName
+ * @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 setLegalName($legalName)
+ public function setParentOrganization($parentOrganization)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $legalName = self::checkTypes($legalName, $types);
+ $parentOrganization = self::checkTypes($parentOrganization, $types);
- $this->legalName = $legalName;
+ $this->parentOrganization = $parentOrganization;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getCorrectionsPolicy()
+ public function getKeywords()
{
- return $this->correctionsPolicy;
+ return $this->keywords;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $correctionsPolicy
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $keywords
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCorrectionsPolicy($correctionsPolicy)
+ public function setKeywords($keywords)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $correctionsPolicy = self::checkTypes($correctionsPolicy, $types);
+ $keywords = self::checkTypes($keywords, $types);
- $this->correctionsPolicy = $correctionsPolicy;
+ $this->keywords = $keywords;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @return \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
- public function getAggregateRating()
+ public function getAddress()
{
- return $this->aggregateRating;
+ return $this->address;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating
+ * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $address
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAggregateRating($aggregateRating)
+ public function setAddress($address)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AggregateRating",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
"string",
];
- $aggregateRating = self::checkTypes($aggregateRating, $types);
+ $address = self::checkTypes($address, $types);
- $this->aggregateRating = $aggregateRating;
+ $this->address = $address;
}
/**
- * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getInteractionStatistic()
+ public function getActionableFeedbackPolicy()
{
- return $this->interactionStatistic;
+ return $this->actionableFeedbackPolicy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $actionableFeedbackPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInteractionStatistic($interactionStatistic)
+ public function setActionableFeedbackPolicy($actionableFeedbackPolicy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\InteractionCounter",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $interactionStatistic = self::checkTypes($interactionStatistic, $types);
+ $actionableFeedbackPolicy = self::checkTypes($actionableFeedbackPolicy, $types);
- $this->interactionStatistic = $interactionStatistic;
+ $this->actionableFeedbackPolicy = $actionableFeedbackPolicy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @return string
*/
- public function getLocation()
+ public function getDuns()
{
- return $this->location;
+ return $this->duns;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location
+ * @param string $duns
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLocation($location)
+ public function setDuns($duns)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PostalAddress",
"string",
- "\OpenActive\Models\SchemaOrg\Place",
- "\OpenActive\Models\SchemaOrg\VirtualLocation",
];
- $location = self::checkTypes($location, $types);
+ $duns = self::checkTypes($duns, $types);
- $this->location = $location;
+ $this->duns = $duns;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- public function getAddress()
+ public function getAggregateRating()
{
- return $this->address;
+ return $this->aggregateRating;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address
+ * @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 setAddress($address)
+ public function setAggregateRating($aggregateRating)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AggregateRating",
"string",
- "\OpenActive\Models\SchemaOrg\PostalAddress",
];
- $address = self::checkTypes($address, $types);
+ $aggregateRating = self::checkTypes($aggregateRating, $types);
- $this->address = $address;
+ $this->aggregateRating = $aggregateRating;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getMemberOf()
+ public function getFoundingLocation()
{
- return $this->memberOf;
+ return $this->foundingLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string $memberOf
+ * @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 setMemberOf($memberOf)
+ public function setFoundingLocation($foundingLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ProgramMembership",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $memberOf = self::checkTypes($memberOf, $types);
+ $foundingLocation = self::checkTypes($foundingLocation, $types);
- $this->memberOf = $memberOf;
+ $this->foundingLocation = $foundingLocation;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPublishingPrinciples()
+ public function getEmployee()
{
- return $this->publishingPrinciples;
+ return $this->employee;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $publishingPrinciples
+ * @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 setPublishingPrinciples($publishingPrinciples)
+ public function setEmployee($employee)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $publishingPrinciples = self::checkTypes($publishingPrinciples, $types);
+ $employee = self::checkTypes($employee, $types);
- $this->publishingPrinciples = $publishingPrinciples;
+ $this->employee = $employee;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Article
+ * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string
*/
- public function getDiversityStaffingReport()
+ public function getInteractionStatistic()
{
- return $this->diversityStaffingReport;
+ return $this->interactionStatistic;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Article $diversityStaffingReport
+ * @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 setDiversityStaffingReport($diversityStaffingReport)
+ public function setInteractionStatistic($interactionStatistic)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\InteractionCounter",
"string",
- "\OpenActive\Models\SchemaOrg\Article",
];
- $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types);
+ $interactionStatistic = self::checkTypes($interactionStatistic, $types);
- $this->diversityStaffingReport = $diversityStaffingReport;
+ $this->interactionStatistic = $interactionStatistic;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDiversityPolicy()
+ public function getSponsor()
{
- return $this->diversityPolicy;
+ return $this->sponsor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $diversityPolicy
+ * @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 setDiversityPolicy($diversityPolicy)
+ public function setSponsor($sponsor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $diversityPolicy = self::checkTypes($diversityPolicy, $types);
+ $sponsor = self::checkTypes($sponsor, $types);
- $this->diversityPolicy = $diversityPolicy;
+ $this->sponsor = $sponsor;
}
/**
* @return string
*/
- public function getEmail()
+ public function getIso6523Code()
{
- return $this->email;
+ return $this->iso6523Code;
}
/**
- * @param string $email
+ * @param string $iso6523Code
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEmail($email)
+ public function setIso6523Code($iso6523Code)
{
$types = [
"string",
];
- $email = self::checkTypes($email, $types);
+ $iso6523Code = self::checkTypes($iso6523Code, $types);
- $this->email = $email;
+ $this->iso6523Code = $iso6523Code;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
*/
- public function getEmployees()
+ public function getHasCredential()
{
- return $this->employees;
+ return $this->hasCredential;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $employees
+ * @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 setEmployees($employees)
+ public function setHasCredential($hasCredential)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
"string",
];
- $employees = self::checkTypes($employees, $types);
+ $hasCredential = self::checkTypes($hasCredential, $types);
- $this->employees = $employees;
+ $this->hasCredential = $hasCredential;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\NonprofitType|null
+ * @return string
*/
- public function getNonprofitStatus()
+ public function getTaxID()
+ {
+ return $this->taxID;
+ }
+
+ /**
+ * @param string $taxID
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setTaxID($taxID)
+ {
+ $types = [
+ "string",
+ ];
+
+ $taxID = self::checkTypes($taxID, $types);
+
+ $this->taxID = $taxID;
+ }
+
+ /**
+ * @return string
+ */
+ public function getAward()
{
- return $this->nonprofitStatus;
+ return $this->award;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\NonprofitType|null $nonprofitStatus
+ * @param string $award
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNonprofitStatus($nonprofitStatus)
+ public function setAward($award)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\NonprofitType",
- "null",
+ "string",
];
- $nonprofitStatus = self::checkTypes($nonprofitStatus, $types);
+ $award = self::checkTypes($award, $types);
- $this->nonprofitStatus = $nonprofitStatus;
+ $this->award = $award;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getSlogan()
+ public function getEmployees()
{
- return $this->slogan;
+ return $this->employees;
}
/**
- * @param string $slogan
+ * @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 setSlogan($slogan)
+ public function setEmployees($employees)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $slogan = self::checkTypes($slogan, $types);
+ $employees = self::checkTypes($employees, $types);
- $this->slogan = $slogan;
+ $this->employees = $employees;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getEthicsPolicy()
+ public function getFunder()
{
- return $this->ethicsPolicy;
+ return $this->funder;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $ethicsPolicy
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEthicsPolicy($ethicsPolicy)
+ public function setFunder($funder)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $ethicsPolicy = self::checkTypes($ethicsPolicy, $types);
+ $funder = self::checkTypes($funder, $types);
- $this->ethicsPolicy = $ethicsPolicy;
+ $this->funder = $funder;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string
+ * @return \OpenActive\Models\SchemaOrg\Demand|string
*/
- public function getBrand()
+ public function getSeeks()
{
- return $this->brand;
+ return $this->seeks;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand
+ * @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 setBrand($brand)
+ public function setSeeks($seeks)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Brand",
+ "\OpenActive\Models\SchemaOrg\Demand",
"string",
];
- $brand = self::checkTypes($brand, $types);
+ $seeks = self::checkTypes($seeks, $types);
- $this->brand = $brand;
+ $this->seeks = $seeks;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getSponsor()
+ public function getEvent()
{
- return $this->sponsor;
+ return $this->event;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
+ * @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 setSponsor($sponsor)
+ public function setEvent($event)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $sponsor = self::checkTypes($sponsor, $types);
+ $event = self::checkTypes($event, $types);
- $this->sponsor = $sponsor;
+ $this->event = $event;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\ImageObject
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getLogo()
+ public function getNumberOfEmployees()
{
- return $this->logo;
+ return $this->numberOfEmployees;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo
+ * @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 setLogo($logo)
+ public function setNumberOfEmployees($numberOfEmployees)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "\OpenActive\Models\SchemaOrg\ImageObject",
];
- $logo = self::checkTypes($logo, $types);
+ $numberOfEmployees = self::checkTypes($numberOfEmployees, $types);
- $this->logo = $logo;
+ $this->numberOfEmployees = $numberOfEmployees;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- public function getActionableFeedbackPolicy()
+ public function getLogo()
{
- return $this->actionableFeedbackPolicy;
+ return $this->logo;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $actionableFeedbackPolicy
+ * @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 setActionableFeedbackPolicy($actionableFeedbackPolicy)
+ public function setLogo($logo)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $actionableFeedbackPolicy = self::checkTypes($actionableFeedbackPolicy, $types);
+ $logo = self::checkTypes($logo, $types);
- $this->actionableFeedbackPolicy = $actionableFeedbackPolicy;
+ $this->logo = $logo;
}
/**
- * @return string
+ * @return Date|null
*/
- public function getNaics()
+ public function getDissolutionDate()
{
- return $this->naics;
+ return $this->dissolutionDate;
}
/**
- * @param string $naics
+ * @param Date|null $dissolutionDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNaics($naics)
+ public function setDissolutionDate($dissolutionDate)
{
$types = [
- "string",
+ "Date",
+ "null",
];
- $naics = self::checkTypes($naics, $types);
+ $dissolutionDate = self::checkTypes($dissolutionDate, $types);
- $this->naics = $naics;
+ $this->dissolutionDate = $dissolutionDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getContactPoint()
+ public function getMembers()
{
- return $this->contactPoint;
+ return $this->members;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint
+ * @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 setContactPoint($contactPoint)
+ public function setMembers($members)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $contactPoint = self::checkTypes($contactPoint, $types);
+ $members = self::checkTypes($members, $types);
- $this->contactPoint = $contactPoint;
+ $this->members = $members;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string
*/
- public function getServiceArea()
+ public function getHasOfferCatalog()
{
- return $this->serviceArea;
+ return $this->hasOfferCatalog;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string $serviceArea
+ * @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 setServiceArea($serviceArea)
+ public function setHasOfferCatalog($hasOfferCatalog)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeoShape",
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\OfferCatalog",
"string",
];
- $serviceArea = self::checkTypes($serviceArea, $types);
+ $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types);
- $this->serviceArea = $serviceArea;
+ $this->hasOfferCatalog = $hasOfferCatalog;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getIsicV4()
+ public function getEthicsPolicy()
{
- return $this->isicV4;
+ return $this->ethicsPolicy;
}
/**
- * @param string $isicV4
+ * @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 setIsicV4($isicV4)
+ public function setEthicsPolicy($ethicsPolicy)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $isicV4 = self::checkTypes($isicV4, $types);
+ $ethicsPolicy = self::checkTypes($ethicsPolicy, $types);
- $this->isicV4 = $isicV4;
+ $this->ethicsPolicy = $ethicsPolicy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string
+ * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getHasMerchantReturnPolicy()
+ public function getCorrectionsPolicy()
{
- return $this->hasMerchantReturnPolicy;
+ return $this->correctionsPolicy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy
+ * @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 setHasMerchantReturnPolicy($hasMerchantReturnPolicy)
+ public function setCorrectionsPolicy($correctionsPolicy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy",
"string",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types);
+ $correctionsPolicy = self::checkTypes($correctionsPolicy, $types);
- $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy;
+ $this->correctionsPolicy = $correctionsPolicy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getHasPOS()
+ public function getEvents()
{
- return $this->hasPOS;
+ return $this->events;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $hasPOS
+ * @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 setHasPOS($hasPOS)
+ public function setEvents($events)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $hasPOS = self::checkTypes($hasPOS, $types);
+ $events = self::checkTypes($events, $types);
- $this->hasPOS = $hasPOS;
+ $this->events = $events;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getFounder()
+ public function getServiceArea()
{
- return $this->founder;
+ return $this->serviceArea;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $founder
+ * @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 setFounder($founder)
+ public function setServiceArea($serviceArea)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $founder = self::checkTypes($founder, $types);
+ $serviceArea = self::checkTypes($serviceArea, $types);
- $this->founder = $founder;
+ $this->serviceArea = $serviceArea;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string|\OpenActive\Models\SchemaOrg\Article
*/
- public function getUnnamedSourcesPolicy()
+ public function getDiversityStaffingReport()
{
- return $this->unnamedSourcesPolicy;
+ return $this->diversityStaffingReport;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $unnamedSourcesPolicy
+ * @param string|\OpenActive\Models\SchemaOrg\Article $diversityStaffingReport
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUnnamedSourcesPolicy($unnamedSourcesPolicy)
+ public function setDiversityStaffingReport($diversityStaffingReport)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
+ "\OpenActive\Models\SchemaOrg\Article",
];
- $unnamedSourcesPolicy = self::checkTypes($unnamedSourcesPolicy, $types);
+ $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types);
- $this->unnamedSourcesPolicy = $unnamedSourcesPolicy;
+ $this->diversityStaffingReport = $diversityStaffingReport;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Grant|string
*/
- public function getFoundingLocation()
+ public function getFunding()
{
- return $this->foundingLocation;
+ return $this->funding;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $foundingLocation
+ * @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 setFoundingLocation($foundingLocation)
+ public function setFunding($funding)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Grant",
"string",
];
- $foundingLocation = self::checkTypes($foundingLocation, $types);
+ $funding = self::checkTypes($funding, $types);
- $this->foundingLocation = $foundingLocation;
+ $this->funding = $funding;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getDuns()
+ public function getUnnamedSourcesPolicy()
{
- return $this->duns;
+ return $this->unnamedSourcesPolicy;
}
/**
- * @param string $duns
+ * @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 setDuns($duns)
+ public function setUnnamedSourcesPolicy($unnamedSourcesPolicy)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $duns = self::checkTypes($duns, $types);
+ $unnamedSourcesPolicy = self::checkTypes($unnamedSourcesPolicy, $types);
- $this->duns = $duns;
+ $this->unnamedSourcesPolicy = $unnamedSourcesPolicy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getParentOrganization()
+ public function getFaxNumber()
{
- return $this->parentOrganization;
+ return $this->faxNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $parentOrganization
+ * @param string $faxNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setParentOrganization($parentOrganization)
+ public function setFaxNumber($faxNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $parentOrganization = self::checkTypes($parentOrganization, $types);
+ $faxNumber = self::checkTypes($faxNumber, $types);
- $this->parentOrganization = $parentOrganization;
+ $this->faxNumber = $faxNumber;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getAlumni()
+ public function getSlogan()
{
- return $this->alumni;
+ return $this->slogan;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $alumni
+ * @param string $slogan
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlumni($alumni)
+ public function setSlogan($slogan)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $alumni = self::checkTypes($alumni, $types);
+ $slogan = self::checkTypes($slogan, $types);
- $this->alumni = $alumni;
+ $this->slogan = $slogan;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getLeiCode()
+ public function getReviews()
{
- return $this->leiCode;
+ return $this->reviews;
}
/**
- * @param string $leiCode
+ * @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 setLeiCode($leiCode)
+ public function setReviews($reviews)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $leiCode = self::checkTypes($leiCode, $types);
+ $reviews = self::checkTypes($reviews, $types);
- $this->leiCode = $leiCode;
+ $this->reviews = $reviews;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return string
*/
- public function getAreaServed()
+ public function getGlobalLocationNumber()
{
- return $this->areaServed;
+ return $this->globalLocationNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed
+ * @param string $globalLocationNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAreaServed($areaServed)
+ public function setGlobalLocationNumber($globalLocationNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "\OpenActive\Models\SchemaOrg\GeoShape",
"string",
- "\OpenActive\Models\SchemaOrg\Place",
];
- $areaServed = self::checkTypes($areaServed, $types);
+ $globalLocationNumber = self::checkTypes($globalLocationNumber, $types);
- $this->areaServed = $areaServed;
+ $this->globalLocationNumber = $globalLocationNumber;
}
/**
- * @return Date|null
+ * @return \OpenActive\Models\SchemaOrg\OwnershipInfo|\OpenActive\Models\SchemaOrg\Product|string
*/
- public function getFoundingDate()
+ public function getOwns()
{
- return $this->foundingDate;
+ return $this->owns;
}
/**
- * @param Date|null $foundingDate
+ * @param \OpenActive\Models\SchemaOrg\OwnershipInfo|\OpenActive\Models\SchemaOrg\Product|string $owns
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFoundingDate($foundingDate)
+ public function setOwns($owns)
{
$types = [
- "Date",
- "null",
+ "\OpenActive\Models\SchemaOrg\OwnershipInfo",
+ "\OpenActive\Models\SchemaOrg\Product",
+ "string",
];
- $foundingDate = self::checkTypes($foundingDate, $types);
+ $owns = self::checkTypes($owns, $types);
- $this->foundingDate = $foundingDate;
+ $this->owns = $owns;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Language|string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
public function getKnowsLanguage()
{
@@ -1978,15 +1976,15 @@ public function getKnowsLanguage()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Language|string $knowsLanguage
+ * @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 setKnowsLanguage($knowsLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Language",
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
$knowsLanguage = self::checkTypes($knowsLanguage, $types);
@@ -1995,277 +1993,279 @@ public function setKnowsLanguage($knowsLanguage)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getReviews()
+ public function getBrand()
{
- return $this->reviews;
+ return $this->brand;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $reviews
+ * @param \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string $brand
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReviews($reviews)
+ public function setBrand($brand)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
+ "\OpenActive\Models\SchemaOrg\Brand",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $reviews = self::checkTypes($reviews, $types);
+ $brand = self::checkTypes($brand, $types);
- $this->reviews = $reviews;
+ $this->brand = $brand;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Demand|string
+ * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string
*/
- public function getSeeks()
+ public function getHasMerchantReturnPolicy()
{
- return $this->seeks;
+ return $this->hasMerchantReturnPolicy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Demand|string $seeks
+ * @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 setSeeks($seeks)
+ public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy",
"string",
];
- $seeks = self::checkTypes($seeks, $types);
+ $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types);
- $this->seeks = $seeks;
+ $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getTaxID()
+ public function getAlumni()
{
- return $this->taxID;
+ return $this->alumni;
}
/**
- * @param string $taxID
+ * @param \OpenActive\Models\SchemaOrg\Person|string $alumni
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTaxID($taxID)
+ public function setAlumni($alumni)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $taxID = self::checkTypes($taxID, $types);
+ $alumni = self::checkTypes($alumni, $types);
- $this->taxID = $taxID;
+ $this->alumni = $alumni;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getOwns()
+ public function getFounder()
{
- return $this->owns;
+ return $this->founder;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string $owns
+ * @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 setOwns($owns)
+ public function setFounder($founder)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Product",
- "\OpenActive\Models\SchemaOrg\OwnershipInfo",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $owns = self::checkTypes($owns, $types);
+ $founder = self::checkTypes($founder, $types);
- $this->owns = $owns;
+ $this->founder = $founder;
}
/**
- * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string
+ * @return string
*/
- public function getHasOfferCatalog()
+ public function getTelephone()
{
- return $this->hasOfferCatalog;
+ return $this->telephone;
}
/**
- * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog
+ * @param string $telephone
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasOfferCatalog($hasOfferCatalog)
+ public function setTelephone($telephone)
{
$types = [
- "\OpenActive\Models\SchemaOrg\OfferCatalog",
"string",
];
- $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types);
+ $telephone = self::checkTypes($telephone, $types);
- $this->hasOfferCatalog = $hasOfferCatalog;
+ $this->telephone = $telephone;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getMembers()
+ public function getReview()
{
- return $this->members;
+ return $this->review;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $members
+ * @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 setMembers($members)
+ public function setReview($review)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $members = self::checkTypes($members, $types);
+ $review = self::checkTypes($review, $types);
- $this->members = $members;
+ $this->review = $review;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- public function getEvents()
+ public function getAreaServed()
{
- return $this->events;
+ return $this->areaServed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $events
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea $areaServed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEvents($events)
+ public function setAreaServed($areaServed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
"string",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
];
- $events = self::checkTypes($events, $types);
+ $areaServed = self::checkTypes($areaServed, $types);
- $this->events = $events;
+ $this->areaServed = $areaServed;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getIso6523Code()
+ public function getMember()
{
- return $this->iso6523Code;
+ return $this->member;
}
/**
- * @param string $iso6523Code
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $member
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIso6523Code($iso6523Code)
+ public function setMember($member)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $iso6523Code = self::checkTypes($iso6523Code, $types);
+ $member = self::checkTypes($member, $types);
- $this->iso6523Code = $iso6523Code;
+ $this->member = $member;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getDepartment()
+ public function getHasPOS()
{
- return $this->department;
+ return $this->hasPOS;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $department
+ * @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 setDepartment($department)
+ public function setHasPOS($hasPOS)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $department = self::checkTypes($department, $types);
+ $hasPOS = self::checkTypes($hasPOS, $types);
- $this->department = $department;
+ $this->hasPOS = $hasPOS;
}
/**
* @return string
*/
- public function getFaxNumber()
+ public function getEmail()
{
- return $this->faxNumber;
+ return $this->email;
}
/**
- * @param string $faxNumber
+ * @param string $email
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFaxNumber($faxNumber)
+ public function setEmail($email)
{
$types = [
"string",
];
- $faxNumber = self::checkTypes($faxNumber, $types);
+ $email = self::checkTypes($email, $types);
- $this->faxNumber = $faxNumber;
+ $this->email = $email;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return string
*/
- public function getEvent()
+ public function getVatID()
{
- return $this->event;
+ return $this->vatID;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $event
+ * @param string $vatID
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEvent($event)
+ public function setVatID($vatID)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $event = self::checkTypes($event, $types);
+ $vatID = self::checkTypes($vatID, $types);
- $this->event = $event;
+ $this->vatID = $vatID;
}
}
diff --git a/src/Models/SchemaOrg/OwnershipInfo.php b/src/Models/SchemaOrg/OwnershipInfo.php
index 8567084a..a160401a 100644
--- a/src/Models/SchemaOrg/OwnershipInfo.php
+++ b/src/Models/SchemaOrg/OwnershipInfo.php
@@ -17,74 +17,75 @@ public static function getType()
public static function fieldList() {
$fields = [
- "ownedFrom" => "ownedFrom",
- "typeOfGood" => "typeOfGood",
"acquiredFrom" => "acquiredFrom",
+ "typeOfGood" => "typeOfGood",
"ownedThrough" => "ownedThrough",
+ "ownedFrom" => "ownedFrom",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The date and time of obtaining the product.
+ * The organization or person from which the product was acquired.
*
*
- * @var DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $ownedFrom;
+ protected $acquiredFrom;
/**
* The product that this structured value is referring to.
*
*
- * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string
+ * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
*/
protected $typeOfGood;
/**
- * The organization or person from which the product was acquired.
+ * The date and time of giving up ownership on the product.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var DateTime|null
*/
- protected $acquiredFrom;
+ protected $ownedThrough;
/**
- * The date and time of giving up ownership on the product.
+ * The date and time of obtaining the product.
*
*
* @var DateTime|null
*/
- protected $ownedThrough;
+ protected $ownedFrom;
/**
- * @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 \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
*/
public function getTypeOfGood()
{
@@ -92,15 +93,15 @@ public function getTypeOfGood()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $typeOfGood
+ * @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 setTypeOfGood($typeOfGood)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Product",
"\OpenActive\Models\SchemaOrg\Service",
+ "\OpenActive\Models\SchemaOrg\Product",
"string",
];
@@ -110,54 +111,53 @@ public function setTypeOfGood($typeOfGood)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return DateTime|null
*/
- public function getAcquiredFrom()
+ public function getOwnedThrough()
{
- return $this->acquiredFrom;
+ return $this->ownedThrough;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $acquiredFrom
+ * @param DateTime|null $ownedThrough
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAcquiredFrom($acquiredFrom)
+ public function setOwnedThrough($ownedThrough)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "DateTime",
+ "null",
];
- $acquiredFrom = self::checkTypes($acquiredFrom, $types);
+ $ownedThrough = self::checkTypes($ownedThrough, $types);
- $this->acquiredFrom = $acquiredFrom;
+ $this->ownedThrough = $ownedThrough;
}
/**
* @return DateTime|null
*/
- public function getOwnedThrough()
+ public function getOwnedFrom()
{
- return $this->ownedThrough;
+ return $this->ownedFrom;
}
/**
- * @param DateTime|null $ownedThrough
+ * @param DateTime|null $ownedFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOwnedThrough($ownedThrough)
+ public function setOwnedFrom($ownedFrom)
{
$types = [
"DateTime",
"null",
];
- $ownedThrough = self::checkTypes($ownedThrough, $types);
+ $ownedFrom = self::checkTypes($ownedFrom, $types);
- $this->ownedThrough = $ownedThrough;
+ $this->ownedFrom = $ownedFrom;
}
}
diff --git a/src/Models/SchemaOrg/ParcelDelivery.php b/src/Models/SchemaOrg/ParcelDelivery.php
index 1d2c5534..41673481 100644
--- a/src/Models/SchemaOrg/ParcelDelivery.php
+++ b/src/Models/SchemaOrg/ParcelDelivery.php
@@ -17,23 +17,31 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "expectedArrivalUntil" => "expectedArrivalUntil",
"originAddress" => "originAddress",
"trackingNumber" => "trackingNumber",
- "itemShipped" => "itemShipped",
- "provider" => "provider",
- "trackingUrl" => "trackingUrl",
- "deliveryAddress" => "deliveryAddress",
- "expectedArrivalUntil" => "expectedArrivalUntil",
- "deliveryStatus" => "deliveryStatus",
+ "partOfOrder" => "partOfOrder",
"expectedArrivalFrom" => "expectedArrivalFrom",
- "carrier" => "carrier",
"hasDeliveryMethod" => "hasDeliveryMethod",
- "partOfOrder" => "partOfOrder",
+ "carrier" => "carrier",
+ "trackingUrl" => "trackingUrl",
+ "provider" => "provider",
+ "deliveryStatus" => "deliveryStatus",
+ "itemShipped" => "itemShipped",
+ "deliveryAddress" => "deliveryAddress",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The latest date the package may arrive.
+ *
+ *
+ * @var Date|DateTime|null
+ */
+ protected $expectedArrivalUntil;
+
/**
* Shipper's address.
*
@@ -51,44 +59,52 @@ public static function fieldList() {
protected $trackingNumber;
/**
- * Item(s) being shipped.
+ * The overall order the items in this delivery were included in.
*
*
- * @var \OpenActive\Models\SchemaOrg\Product|string
+ * @var \OpenActive\Models\SchemaOrg\Order|string
*/
- protected $itemShipped;
+ protected $partOfOrder;
/**
- * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
+ * The earliest date the package may arrive.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var Date|DateTime|null
*/
- protected $provider;
+ protected $expectedArrivalFrom;
/**
- * Tracking url for the parcel delivery.
+ * Method used for delivery or shipping.
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
*/
- protected $trackingUrl;
+ protected $hasDeliveryMethod;
/**
- * Destination address.
+ * 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights.
*
*
- * @var \OpenActive\Models\SchemaOrg\PostalAddress|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $deliveryAddress;
+ protected $carrier;
/**
- * The latest date the package may arrive.
+ * Tracking url for the parcel delivery.
*
*
- * @var Date|DateTime|null
+ * @var string
*/
- protected $expectedArrivalUntil;
+ protected $trackingUrl;
+
+ /**
+ * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ */
+ protected $provider;
/**
* New entry added as the package passes through each leg of its journey (from shipment to final delivery).
@@ -99,36 +115,46 @@ public static function fieldList() {
protected $deliveryStatus;
/**
- * The earliest date the package may arrive.
+ * Item(s) being shipped.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Product|string
*/
- protected $expectedArrivalFrom;
+ protected $itemShipped;
/**
- * 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights.
+ * Destination address.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
- protected $carrier;
+ protected $deliveryAddress;
/**
- * Method used for delivery or shipping.
- *
- *
- * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ * @return Date|DateTime|null
*/
- protected $hasDeliveryMethod;
+ public function getExpectedArrivalUntil()
+ {
+ return $this->expectedArrivalUntil;
+ }
/**
- * The overall order the items in this delivery were included in.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Order|string
+ * @param Date|DateTime|null $expectedArrivalUntil
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- protected $partOfOrder;
+ public function setExpectedArrivalUntil($expectedArrivalUntil)
+ {
+ $types = [
+ "Date",
+ "DateTime",
+ "null",
+ ];
+
+ $expectedArrivalUntil = self::checkTypes($expectedArrivalUntil, $types);
+
+ $this->expectedArrivalUntil = $expectedArrivalUntil;
+ }
/**
* @return \OpenActive\Models\SchemaOrg\PostalAddress|string
@@ -180,255 +206,229 @@ public function setTrackingNumber($trackingNumber)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Product|string
+ * @return \OpenActive\Models\SchemaOrg\Order|string
*/
- public function getItemShipped()
+ public function getPartOfOrder()
{
- return $this->itemShipped;
+ return $this->partOfOrder;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Product|string $itemShipped
+ * @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 setItemShipped($itemShipped)
+ public function setPartOfOrder($partOfOrder)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Product",
+ "\OpenActive\Models\SchemaOrg\Order",
"string",
];
- $itemShipped = self::checkTypes($itemShipped, $types);
+ $partOfOrder = self::checkTypes($partOfOrder, $types);
- $this->itemShipped = $itemShipped;
+ $this->partOfOrder = $partOfOrder;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return Date|DateTime|null
*/
- public function getProvider()
+ public function getExpectedArrivalFrom()
{
- return $this->provider;
+ return $this->expectedArrivalFrom;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @param Date|DateTime|null $expectedArrivalFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProvider($provider)
+ public function setExpectedArrivalFrom($expectedArrivalFrom)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $provider = self::checkTypes($provider, $types);
+ $expectedArrivalFrom = self::checkTypes($expectedArrivalFrom, $types);
- $this->provider = $provider;
+ $this->expectedArrivalFrom = $expectedArrivalFrom;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
*/
- public function getTrackingUrl()
+ public function getHasDeliveryMethod()
{
- return $this->trackingUrl;
+ return $this->hasDeliveryMethod;
}
/**
- * @param string $trackingUrl
+ * @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 setTrackingUrl($trackingUrl)
+ public function setHasDeliveryMethod($hasDeliveryMethod)
{
$types = [
- "string",
+ "\OpenActive\Enums\SchemaOrg\DeliveryMethod",
+ "null",
];
- $trackingUrl = self::checkTypes($trackingUrl, $types);
+ $hasDeliveryMethod = self::checkTypes($hasDeliveryMethod, $types);
- $this->trackingUrl = $trackingUrl;
+ $this->hasDeliveryMethod = $hasDeliveryMethod;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PostalAddress|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getDeliveryAddress()
+ public function getCarrier()
{
- return $this->deliveryAddress;
+ return $this->carrier;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $deliveryAddress
+ * @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 setDeliveryAddress($deliveryAddress)
+ public function setCarrier($carrier)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PostalAddress",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $deliveryAddress = self::checkTypes($deliveryAddress, $types);
-
- $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);
+ $carrier = self::checkTypes($carrier, $types);
- $this->expectedArrivalUntil = $expectedArrivalUntil;
+ $this->carrier = $carrier;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DeliveryEvent|string
+ * @return string
*/
- public function getDeliveryStatus()
+ public function getTrackingUrl()
{
- return $this->deliveryStatus;
+ return $this->trackingUrl;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DeliveryEvent|string $deliveryStatus
+ * @param string $trackingUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDeliveryStatus($deliveryStatus)
+ public function setTrackingUrl($trackingUrl)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DeliveryEvent",
"string",
];
- $deliveryStatus = self::checkTypes($deliveryStatus, $types);
+ $trackingUrl = self::checkTypes($trackingUrl, $types);
- $this->deliveryStatus = $deliveryStatus;
+ $this->trackingUrl = $trackingUrl;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getExpectedArrivalFrom()
+ public function getProvider()
{
- return $this->expectedArrivalFrom;
+ return $this->provider;
}
/**
- * @param Date|DateTime|null $expectedArrivalFrom
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $provider
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExpectedArrivalFrom($expectedArrivalFrom)
+ public function setProvider($provider)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $expectedArrivalFrom = self::checkTypes($expectedArrivalFrom, $types);
+ $provider = self::checkTypes($provider, $types);
- $this->expectedArrivalFrom = $expectedArrivalFrom;
+ $this->provider = $provider;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\DeliveryEvent|string
*/
- public function getCarrier()
+ public function getDeliveryStatus()
{
- return $this->carrier;
+ return $this->deliveryStatus;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $carrier
+ * @param \OpenActive\Models\SchemaOrg\DeliveryEvent|string $deliveryStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCarrier($carrier)
+ public function setDeliveryStatus($deliveryStatus)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\DeliveryEvent",
"string",
];
- $carrier = self::checkTypes($carrier, $types);
+ $deliveryStatus = self::checkTypes($deliveryStatus, $types);
- $this->carrier = $carrier;
+ $this->deliveryStatus = $deliveryStatus;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ * @return \OpenActive\Models\SchemaOrg\Product|string
*/
- public function getHasDeliveryMethod()
+ public function getItemShipped()
{
- return $this->hasDeliveryMethod;
+ return $this->itemShipped;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $hasDeliveryMethod
+ * @param \OpenActive\Models\SchemaOrg\Product|string $itemShipped
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasDeliveryMethod($hasDeliveryMethod)
+ public function setItemShipped($itemShipped)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\DeliveryMethod",
- "null",
+ "\OpenActive\Models\SchemaOrg\Product",
+ "string",
];
- $hasDeliveryMethod = self::checkTypes($hasDeliveryMethod, $types);
+ $itemShipped = self::checkTypes($itemShipped, $types);
- $this->hasDeliveryMethod = $hasDeliveryMethod;
+ $this->itemShipped = $itemShipped;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Order|string
+ * @return \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
- public function getPartOfOrder()
+ public function getDeliveryAddress()
{
- return $this->partOfOrder;
+ return $this->deliveryAddress;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Order|string $partOfOrder
+ * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $deliveryAddress
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPartOfOrder($partOfOrder)
+ public function setDeliveryAddress($deliveryAddress)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Order",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
"string",
];
- $partOfOrder = self::checkTypes($partOfOrder, $types);
+ $deliveryAddress = self::checkTypes($deliveryAddress, $types);
- $this->partOfOrder = $partOfOrder;
+ $this->deliveryAddress = $deliveryAddress;
}
}
diff --git a/src/Models/SchemaOrg/Patient.php b/src/Models/SchemaOrg/Patient.php
index 03ca71cc..520511c6 100644
--- a/src/Models/SchemaOrg/Patient.php
+++ b/src/Models/SchemaOrg/Patient.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"healthCondition" => "healthCondition",
- "drug" => "drug",
"diagnosis" => "diagnosis",
+ "drug" => "drug",
];
return array_merge(parent::fieldList(), $fields);
@@ -34,20 +34,20 @@ public static function fieldList() {
protected $healthCondition;
/**
- * Specifying a drug or medicine used in a medication procedure.
+ * One or more alternative conditions considered in the differential diagnosis process as output of a diagnosis process.
*
*
- * @var \OpenActive\Models\SchemaOrg\Drug|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- protected $drug;
+ protected $diagnosis;
/**
- * One or more alternative conditions considered in the differential diagnosis process as output of a diagnosis process.
+ * Specifying a drug or medicine used in a medication procedure.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @var \OpenActive\Models\SchemaOrg\Drug|string
*/
- protected $diagnosis;
+ protected $drug;
/**
* @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
@@ -75,53 +75,53 @@ public function setHealthCondition($healthCondition)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Drug|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- public function getDrug()
+ public function getDiagnosis()
{
- return $this->drug;
+ return $this->diagnosis;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Drug|string $drug
+ * @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 setDrug($drug)
+ public function setDiagnosis($diagnosis)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Drug",
+ "\OpenActive\Models\SchemaOrg\MedicalCondition",
"string",
];
- $drug = self::checkTypes($drug, $types);
+ $diagnosis = self::checkTypes($diagnosis, $types);
- $this->drug = $drug;
+ $this->diagnosis = $diagnosis;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @return \OpenActive\Models\SchemaOrg\Drug|string
*/
- public function getDiagnosis()
+ public function getDrug()
{
- return $this->diagnosis;
+ return $this->drug;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $diagnosis
+ * @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 setDiagnosis($diagnosis)
+ public function setDrug($drug)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalCondition",
+ "\OpenActive\Models\SchemaOrg\Drug",
"string",
];
- $diagnosis = self::checkTypes($diagnosis, $types);
+ $drug = self::checkTypes($drug, $types);
- $this->diagnosis = $diagnosis;
+ $this->drug = $drug;
}
}
diff --git a/src/Models/SchemaOrg/PayAction.php b/src/Models/SchemaOrg/PayAction.php
index 1f0c2cd7..4565537a 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\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
protected $recipient;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
public function getRecipient()
{
@@ -40,17 +40,17 @@ public function getRecipient()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setRecipient($recipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
diff --git a/src/Models/SchemaOrg/PaymentCard.php b/src/Models/SchemaOrg/PaymentCard.php
index 4205b446..37d5197a 100644
--- a/src/Models/SchemaOrg/PaymentCard.php
+++ b/src/Models/SchemaOrg/PaymentCard.php
@@ -17,148 +17,148 @@ public static function getType()
public static function fieldList() {
$fields = [
- "cashBack" => "cashBack",
- "monthlyMinimumRepaymentAmount" => "monthlyMinimumRepaymentAmount",
"floorLimit" => "floorLimit",
"contactlessPayment" => "contactlessPayment",
+ "cashBack" => "cashBack",
+ "monthlyMinimumRepaymentAmount" => "monthlyMinimumRepaymentAmount",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A cardholder benefit that pays the cardholder a small percentage of their net expenditures.
+ * A floor limit is the amount of money above which credit card transactions must be authorized.
*
*
- * @var bool|Number|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $cashBack;
+ protected $floorLimit;
/**
- * The minimum payment is the lowest amount of money that one is required to pay on a credit card statement each month.
+ * A secure method for consumers to purchase products or services via debit, credit or smartcards by using RFID or NFC technology.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @var bool|null
*/
- protected $monthlyMinimumRepaymentAmount;
+ protected $contactlessPayment;
/**
- * A floor limit is the amount of money above which credit card transactions must be authorized.
+ * A cardholder benefit that pays the cardholder a small percentage of their net expenditures.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @var bool|Number|null
*/
- protected $floorLimit;
+ protected $cashBack;
/**
- * A secure method for consumers to purchase products or services via debit, credit or smartcards by using RFID or NFC technology.
+ * The minimum payment is the lowest amount of money that one is required to pay on a credit card statement each month.
*
*
- * @var bool|null
+ * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
*/
- protected $contactlessPayment;
+ protected $monthlyMinimumRepaymentAmount;
/**
- * @return bool|Number|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getCashBack()
+ public function getFloorLimit()
{
- return $this->cashBack;
+ return $this->floorLimit;
}
/**
- * @param bool|Number|null $cashBack
+ * @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 setCashBack($cashBack)
+ public function setFloorLimit($floorLimit)
{
$types = [
- "bool",
- "Number",
- "null",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
];
- $cashBack = self::checkTypes($cashBack, $types);
+ $floorLimit = self::checkTypes($floorLimit, $types);
- $this->cashBack = $cashBack;
+ $this->floorLimit = $floorLimit;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @return bool|null
*/
- public function getMonthlyMinimumRepaymentAmount()
+ public function getContactlessPayment()
{
- return $this->monthlyMinimumRepaymentAmount;
+ return $this->contactlessPayment;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $monthlyMinimumRepaymentAmount
+ * @param bool|null $contactlessPayment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMonthlyMinimumRepaymentAmount($monthlyMinimumRepaymentAmount)
+ public function setContactlessPayment($contactlessPayment)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
- "Number",
+ "bool",
"null",
];
- $monthlyMinimumRepaymentAmount = self::checkTypes($monthlyMinimumRepaymentAmount, $types);
+ $contactlessPayment = self::checkTypes($contactlessPayment, $types);
- $this->monthlyMinimumRepaymentAmount = $monthlyMinimumRepaymentAmount;
+ $this->contactlessPayment = $contactlessPayment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @return bool|Number|null
*/
- public function getFloorLimit()
+ public function getCashBack()
{
- return $this->floorLimit;
+ return $this->cashBack;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $floorLimit
+ * @param bool|Number|null $cashBack
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFloorLimit($floorLimit)
+ public function setCashBack($cashBack)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
+ "bool",
+ "Number",
+ "null",
];
- $floorLimit = self::checkTypes($floorLimit, $types);
+ $cashBack = self::checkTypes($cashBack, $types);
- $this->floorLimit = $floorLimit;
+ $this->cashBack = $cashBack;
}
/**
- * @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/PeopleAudience.php b/src/Models/SchemaOrg/PeopleAudience.php
index 309a33b3..26d719d5 100644
--- a/src/Models/SchemaOrg/PeopleAudience.php
+++ b/src/Models/SchemaOrg/PeopleAudience.php
@@ -17,315 +17,315 @@ public static function getType()
public static function fieldList() {
$fields = [
- "requiredMinAge" => "requiredMinAge",
+ "requiredMaxAge" => "requiredMaxAge",
+ "suggestedAge" => "suggestedAge",
+ "requiredGender" => "requiredGender",
"suggestedMaxAge" => "suggestedMaxAge",
+ "suggestedGender" => "suggestedGender",
"healthCondition" => "healthCondition",
+ "requiredMinAge" => "requiredMinAge",
"suggestedMeasurement" => "suggestedMeasurement",
- "suggestedAge" => "suggestedAge",
- "requiredMaxAge" => "requiredMaxAge",
"suggestedMinAge" => "suggestedMinAge",
- "requiredGender" => "requiredGender",
- "suggestedGender" => "suggestedGender",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Audiences defined by a person's minimum age.
+ * Audiences defined by a person's maximum age.
*
*
* @var int|null
*/
- protected $requiredMinAge;
+ protected $requiredMaxAge;
/**
- * Maximum recommended age in years for the audience or user.
+ * The age or age range for the intended audience or person, for example 3-12 months for infants, 1-5 years for toddlers.
*
*
- * @var Number|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $suggestedMaxAge;
+ protected $suggestedAge;
/**
- * Specifying the health condition(s) of a patient, medical study, or other target audience.
+ * Audiences defined by a person's gender.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @var string
*/
- protected $healthCondition;
+ protected $requiredGender;
/**
- * 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.
+ * Maximum recommended age in years for the audience or user.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var Number|null
*/
- protected $suggestedMeasurement;
+ protected $suggestedMaxAge;
/**
- * The age or age range for the intended audience or person, for example 3-12 months for infants, 1-5 years for toddlers.
+ * The suggested gender of the intended person or audience, for example "male", "female", or "unisex".
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string|\OpenActive\Enums\SchemaOrg\GenderType|null
*/
- protected $suggestedAge;
+ protected $suggestedGender;
/**
- * Audiences defined by a person's maximum age.
+ * Specifying the health condition(s) of a patient, medical study, or other target audience.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- protected $requiredMaxAge;
+ protected $healthCondition;
/**
- * Minimum recommended age in years for the audience or user.
+ * Audiences defined by a person's minimum age.
*
*
- * @var Number|null
+ * @var int|null
*/
- protected $suggestedMinAge;
+ protected $requiredMinAge;
/**
- * Audiences defined by a person's gender.
+ * A suggested range of body measurements for the intended audience or person, for example inseam between 32 and 34 inches or height between 170 and 190 cm. Typically found on a size chart for wearable products.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $requiredGender;
+ protected $suggestedMeasurement;
/**
- * The suggested gender of the intended person or audience, for example "male", "female", or "unisex".
+ * Minimum recommended age in years for the audience or user.
*
*
- * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null
+ * @var Number|null
*/
- protected $suggestedGender;
+ protected $suggestedMinAge;
/**
* @return int|null
*/
- public function getRequiredMinAge()
+ public function getRequiredMaxAge()
{
- return $this->requiredMinAge;
+ return $this->requiredMaxAge;
}
/**
- * @param int|null $requiredMinAge
+ * @param int|null $requiredMaxAge
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRequiredMinAge($requiredMinAge)
+ public function setRequiredMaxAge($requiredMaxAge)
{
$types = [
"int",
"null",
];
- $requiredMinAge = self::checkTypes($requiredMinAge, $types);
+ $requiredMaxAge = self::checkTypes($requiredMaxAge, $types);
- $this->requiredMinAge = $requiredMinAge;
+ $this->requiredMaxAge = $requiredMaxAge;
}
/**
- * @return Number|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getSuggestedMaxAge()
+ public function getSuggestedAge()
{
- return $this->suggestedMaxAge;
+ return $this->suggestedAge;
}
/**
- * @param Number|null $suggestedMaxAge
+ * @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 setSuggestedMaxAge($suggestedMaxAge)
+ public function setSuggestedAge($suggestedAge)
{
$types = [
- "Number",
- "null",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
];
- $suggestedMaxAge = self::checkTypes($suggestedMaxAge, $types);
+ $suggestedAge = self::checkTypes($suggestedAge, $types);
- $this->suggestedMaxAge = $suggestedMaxAge;
+ $this->suggestedAge = $suggestedAge;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @return string
*/
- public function getHealthCondition()
+ public function getRequiredGender()
{
- return $this->healthCondition;
+ return $this->requiredGender;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $healthCondition
+ * @param string $requiredGender
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthCondition($healthCondition)
+ public function setRequiredGender($requiredGender)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalCondition",
"string",
];
- $healthCondition = self::checkTypes($healthCondition, $types);
+ $requiredGender = self::checkTypes($requiredGender, $types);
- $this->healthCondition = $healthCondition;
+ $this->requiredGender = $requiredGender;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return Number|null
*/
- public function getSuggestedMeasurement()
+ public function getSuggestedMaxAge()
{
- return $this->suggestedMeasurement;
+ return $this->suggestedMaxAge;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedMeasurement
+ * @param Number|null $suggestedMaxAge
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSuggestedMeasurement($suggestedMeasurement)
+ public function setSuggestedMaxAge($suggestedMaxAge)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
+ "Number",
+ "null",
];
- $suggestedMeasurement = self::checkTypes($suggestedMeasurement, $types);
+ $suggestedMaxAge = self::checkTypes($suggestedMaxAge, $types);
- $this->suggestedMeasurement = $suggestedMeasurement;
+ $this->suggestedMaxAge = $suggestedMaxAge;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string|\OpenActive\Enums\SchemaOrg\GenderType|null
*/
- public function getSuggestedAge()
+ public function getSuggestedGender()
{
- return $this->suggestedAge;
+ return $this->suggestedGender;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedAge
+ * @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 setSuggestedAge($suggestedAge)
+ public function setSuggestedGender($suggestedGender)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "\OpenActive\Enums\SchemaOrg\GenderType",
+ "null",
];
- $suggestedAge = self::checkTypes($suggestedAge, $types);
+ $suggestedGender = self::checkTypes($suggestedGender, $types);
- $this->suggestedAge = $suggestedAge;
+ $this->suggestedGender = $suggestedGender;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- public function getRequiredMaxAge()
+ public function getHealthCondition()
{
- return $this->requiredMaxAge;
+ return $this->healthCondition;
}
/**
- * @param int|null $requiredMaxAge
+ * @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 setRequiredMaxAge($requiredMaxAge)
+ public function setHealthCondition($healthCondition)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\MedicalCondition",
+ "string",
];
- $requiredMaxAge = self::checkTypes($requiredMaxAge, $types);
+ $healthCondition = self::checkTypes($healthCondition, $types);
- $this->requiredMaxAge = $requiredMaxAge;
+ $this->healthCondition = $healthCondition;
}
/**
- * @return Number|null
+ * @return int|null
*/
- public function getSuggestedMinAge()
+ public function getRequiredMinAge()
{
- return $this->suggestedMinAge;
+ return $this->requiredMinAge;
}
/**
- * @param Number|null $suggestedMinAge
+ * @param int|null $requiredMinAge
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSuggestedMinAge($suggestedMinAge)
+ public function setRequiredMinAge($requiredMinAge)
{
$types = [
- "Number",
+ "int",
"null",
];
- $suggestedMinAge = self::checkTypes($suggestedMinAge, $types);
+ $requiredMinAge = self::checkTypes($requiredMinAge, $types);
- $this->suggestedMinAge = $suggestedMinAge;
+ $this->requiredMinAge = $requiredMinAge;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getRequiredGender()
+ public function getSuggestedMeasurement()
{
- return $this->requiredGender;
+ return $this->suggestedMeasurement;
}
/**
- * @param string $requiredGender
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedMeasurement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRequiredGender($requiredGender)
+ public function setSuggestedMeasurement($suggestedMeasurement)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $requiredGender = self::checkTypes($requiredGender, $types);
+ $suggestedMeasurement = self::checkTypes($suggestedMeasurement, $types);
- $this->requiredGender = $requiredGender;
+ $this->suggestedMeasurement = $suggestedMeasurement;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null
+ * @return Number|null
*/
- public function getSuggestedGender()
+ public function getSuggestedMinAge()
{
- return $this->suggestedGender;
+ return $this->suggestedMinAge;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $suggestedGender
+ * @param Number|null $suggestedMinAge
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSuggestedGender($suggestedGender)
+ public function setSuggestedMinAge($suggestedMinAge)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\GenderType",
- "string",
+ "Number",
"null",
];
- $suggestedGender = self::checkTypes($suggestedGender, $types);
+ $suggestedMinAge = self::checkTypes($suggestedMinAge, $types);
- $this->suggestedGender = $suggestedGender;
+ $this->suggestedMinAge = $suggestedMinAge;
}
}
diff --git a/src/Models/SchemaOrg/Permit.php b/src/Models/SchemaOrg/Permit.php
index 195b6af0..562b2bb1 100644
--- a/src/Models/SchemaOrg/Permit.php
+++ b/src/Models/SchemaOrg/Permit.php
@@ -17,249 +17,249 @@ public static function getType()
public static function fieldList() {
$fields = [
- "validFor" => "validFor",
- "issuedBy" => "issuedBy",
- "validUntil" => "validUntil",
"validFrom" => "validFrom",
- "issuedThrough" => "issuedThrough",
"validIn" => "validIn",
+ "issuedThrough" => "issuedThrough",
+ "validFor" => "validFor",
+ "issuedBy" => "issuedBy",
"permitAudience" => "permitAudience",
+ "validUntil" => "validUntil",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The duration of validity of a permit or similar thing.
+ * The date when the item becomes valid.
*
*
- * @var DateInterval|string|null
+ * @var Date|DateTime|null
*/
- protected $validFor;
+ protected $validFrom;
/**
- * The organization issuing the ticket or permit.
+ * The geographic area where a permit or similar thing is valid.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $issuedBy;
+ protected $validIn;
/**
- * The date when the item is no longer valid.
+ * The service through which the permit was granted.
*
*
- * @var Date|null
+ * @var \OpenActive\Models\SchemaOrg\Service|string
*/
- protected $validUntil;
+ protected $issuedThrough;
/**
- * The date when the item becomes valid.
+ * The duration of validity of a permit or similar thing.
*
*
- * @var Date|DateTime|null
+ * @var DateInterval|string|null
*/
- protected $validFrom;
+ protected $validFor;
/**
- * The service through with the permit was granted.
+ * The organization issuing the ticket or permit.
*
*
- * @var \OpenActive\Models\SchemaOrg\Service|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $issuedThrough;
+ protected $issuedBy;
/**
- * The geographic area where a permit or similar thing is valid.
+ * The target audience for this permit.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @var \OpenActive\Models\SchemaOrg\Audience|string
*/
- protected $validIn;
+ protected $permitAudience;
/**
- * 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 Date|DateTime|null
*/
- public function getValidFor()
+ public function getValidFrom()
{
- return $this->validFor;
+ return $this->validFrom;
}
/**
- * @param DateInterval|string|null $validFor
+ * @param Date|DateTime|null $validFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidFor($validFor)
+ public function setValidFrom($validFrom)
{
$types = [
- "DateInterval",
- "string",
+ "Date",
+ "DateTime",
"null",
];
- $validFor = self::checkTypes($validFor, $types);
+ $validFrom = self::checkTypes($validFrom, $types);
- $this->validFor = $validFor;
+ $this->validFrom = $validFrom;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getIssuedBy()
+ public function getValidIn()
{
- return $this->issuedBy;
+ return $this->validIn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $issuedBy
+ * @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 setIssuedBy($issuedBy)
+ public function setValidIn($validIn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $issuedBy = self::checkTypes($issuedBy, $types);
+ $validIn = self::checkTypes($validIn, $types);
- $this->issuedBy = $issuedBy;
+ $this->validIn = $validIn;
}
/**
- * @return Date|null
+ * @return \OpenActive\Models\SchemaOrg\Service|string
*/
- public function getValidUntil()
+ public function getIssuedThrough()
{
- return $this->validUntil;
+ return $this->issuedThrough;
}
/**
- * @param Date|null $validUntil
+ * @param \OpenActive\Models\SchemaOrg\Service|string $issuedThrough
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidUntil($validUntil)
+ public function setIssuedThrough($issuedThrough)
{
$types = [
- "Date",
- "null",
+ "\OpenActive\Models\SchemaOrg\Service",
+ "string",
];
- $validUntil = self::checkTypes($validUntil, $types);
+ $issuedThrough = self::checkTypes($issuedThrough, $types);
- $this->validUntil = $validUntil;
+ $this->issuedThrough = $issuedThrough;
}
/**
- * @return Date|DateTime|null
+ * @return DateInterval|string|null
*/
- public function getValidFrom()
+ public function getValidFor()
{
- return $this->validFrom;
+ return $this->validFor;
}
/**
- * @param Date|DateTime|null $validFrom
+ * @param DateInterval|string|null $validFor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidFrom($validFrom)
+ public function setValidFor($validFor)
{
$types = [
- "Date",
- "DateTime",
+ "DateInterval",
+ "string",
"null",
];
- $validFrom = self::checkTypes($validFrom, $types);
+ $validFor = self::checkTypes($validFor, $types);
- $this->validFrom = $validFrom;
+ $this->validFor = $validFor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Service|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getIssuedThrough()
+ public function getIssuedBy()
{
- return $this->issuedThrough;
+ return $this->issuedBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Service|string $issuedThrough
+ * @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 setIssuedThrough($issuedThrough)
+ public function setIssuedBy($issuedBy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Service",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $issuedThrough = self::checkTypes($issuedThrough, $types);
+ $issuedBy = self::checkTypes($issuedBy, $types);
- $this->issuedThrough = $issuedThrough;
+ $this->issuedBy = $issuedBy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return \OpenActive\Models\SchemaOrg\Audience|string
*/
- public function getValidIn()
+ public function getPermitAudience()
{
- return $this->validIn;
+ return $this->permitAudience;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $validIn
+ * @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 setValidIn($validIn)
+ public function setPermitAudience($permitAudience)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "\OpenActive\Models\SchemaOrg\Audience",
"string",
];
- $validIn = self::checkTypes($validIn, $types);
+ $permitAudience = self::checkTypes($permitAudience, $types);
- $this->validIn = $validIn;
+ $this->permitAudience = $permitAudience;
}
/**
- * @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..65e3e077 100644
--- a/src/Models/SchemaOrg/Person.php
+++ b/src/Models/SchemaOrg/Person.php
@@ -17,2148 +17,2148 @@ public static function getType()
public static function fieldList() {
$fields = [
- "spouse" => "spouse",
- "additionalName" => "additionalName",
- "hasCredential" => "hasCredential",
- "telephone" => "telephone",
- "honorificPrefix" => "honorificPrefix",
- "parents" => "parents",
- "familyName" => "familyName",
+ "contactPoints" => "contactPoints",
"givenName" => "givenName",
+ "honorificPrefix" => "honorificPrefix",
+ "worksFor" => "worksFor",
+ "relatedTo" => "relatedTo",
+ "publishingPrinciples" => "publishingPrinciples",
+ "contactPoint" => "contactPoint",
+ "affiliation" => "affiliation",
+ "deathDate" => "deathDate",
+ "follows" => "follows",
+ "awards" => "awards",
+ "parent" => "parent",
+ "naics" => "naics",
"knowsAbout" => "knowsAbout",
- "performerIn" => "performerIn",
- "netWorth" => "netWorth",
- "award" => "award",
- "workLocation" => "workLocation",
- "honorificSuffix" => "honorificSuffix",
+ "isicV4" => "isicV4",
+ "memberOf" => "memberOf",
+ "makesOffer" => "makesOffer",
+ "address" => "address",
+ "duns" => "duns",
"deathPlace" => "deathPlace",
- "homeLocation" => "homeLocation",
- "funding" => "funding",
- "vatID" => "vatID",
- "height" => "height",
- "globalLocationNumber" => "globalLocationNumber",
- "contactPoints" => "contactPoints",
- "hasOccupation" => "hasOccupation",
+ "alumniOf" => "alumniOf",
+ "interactionStatistic" => "interactionStatistic",
+ "sponsor" => "sponsor",
+ "children" => "children",
"gender" => "gender",
- "parent" => "parent",
- "awards" => "awards",
- "sibling" => "sibling",
"jobTitle" => "jobTitle",
- "birthDate" => "birthDate",
+ "honorificSuffix" => "honorificSuffix",
+ "hasCredential" => "hasCredential",
+ "workLocation" => "workLocation",
+ "nationality" => "nationality",
+ "taxID" => "taxID",
+ "award" => "award",
+ "familyName" => "familyName",
+ "height" => "height",
+ "weight" => "weight",
+ "homeLocation" => "homeLocation",
"funder" => "funder",
- "makesOffer" => "makesOffer",
- "children" => "children",
- "worksFor" => "worksFor",
+ "hasOccupation" => "hasOccupation",
+ "seeks" => "seeks",
+ "hasOfferCatalog" => "hasOfferCatalog",
"knows" => "knows",
- "interactionStatistic" => "interactionStatistic",
- "address" => "address",
- "memberOf" => "memberOf",
- "publishingPrinciples" => "publishingPrinciples",
+ "funding" => "funding",
+ "faxNumber" => "faxNumber",
+ "additionalName" => "additionalName",
+ "netWorth" => "netWorth",
+ "spouse" => "spouse",
"colleagues" => "colleagues",
- "deathDate" => "deathDate",
- "email" => "email",
- "affiliation" => "affiliation",
+ "performerIn" => "performerIn",
+ "sibling" => "sibling",
+ "globalLocationNumber" => "globalLocationNumber",
+ "owns" => "owns",
+ "knowsLanguage" => "knowsLanguage",
+ "brand" => "brand",
+ "birthDate" => "birthDate",
"siblings" => "siblings",
"birthPlace" => "birthPlace",
- "brand" => "brand",
- "sponsor" => "sponsor",
- "naics" => "naics",
- "contactPoint" => "contactPoint",
- "callSign" => "callSign",
- "isicV4" => "isicV4",
+ "parents" => "parents",
+ "telephone" => "telephone",
"hasPOS" => "hasPOS",
- "alumniOf" => "alumniOf",
- "duns" => "duns",
- "weight" => "weight",
- "knowsLanguage" => "knowsLanguage",
- "relatedTo" => "relatedTo",
+ "email" => "email",
+ "callSign" => "callSign",
+ "vatID" => "vatID",
"colleague" => "colleague",
- "seeks" => "seeks",
- "taxID" => "taxID",
- "owns" => "owns",
- "hasOfferCatalog" => "hasOfferCatalog",
- "follows" => "follows",
- "nationality" => "nationality",
- "faxNumber" => "faxNumber",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The person's spouse.
+ * A contact point for a person or organization.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- protected $spouse;
+ protected $contactPoints;
/**
- * An additional name for a Person, can be used for a middle name.
+ * Given name. In the U.S., the first name of a Person.
*
*
* @var string
*/
- protected $additionalName;
-
- /**
- * A credential awarded to the Person or Organization.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
- */
- protected $hasCredential;
+ protected $givenName;
/**
- * The telephone number.
+ * An honorific prefix preceding a Person's name such as Dr/Mrs/Mr.
*
*
* @var string
*/
- protected $telephone;
+ protected $honorificPrefix;
/**
- * An honorific prefix preceding a Person's name such as Dr/Mrs/Mr.
+ * Organizations that the person works for.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $honorificPrefix;
+ protected $worksFor;
/**
- * A parents of the person.
+ * The most generic familial relation.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $parents;
+ protected $relatedTo;
/**
- * Family name. In the U.S., the last name of a Person.
+ * The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]].
+ *
+ * While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology.
+ *
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $familyName;
+ protected $publishingPrinciples;
/**
- * Given name. In the U.S., the first name of a Person.
+ * A contact point for a person or organization.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- protected $givenName;
+ protected $contactPoint;
/**
- * 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.
+ * An organization that this person is affiliated with. For example, a school/university, a club, or a team.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Thing
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $knowsAbout;
+ protected $affiliation;
/**
- * Event that this person is a performer or participant in.
+ * Date of death.
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var Date|null
*/
- protected $performerIn;
+ protected $deathDate;
/**
- * The total financial value of the person as calculated by subtracting assets from liabilities.
+ * The most generic uni-directional social relation.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $netWorth;
+ protected $follows;
/**
- * An award won by or for this item.
+ * Awards won by or for this item.
*
*
* @var string
*/
- protected $award;
+ protected $awards;
/**
- * A contact location for a person's place of work.
+ * A parent of this person.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $workLocation;
+ protected $parent;
/**
- * An honorific suffix following a Person's name such as M.D. /PhD/MSCSW.
+ * The North American Industry Classification System (NAICS) code for a particular organization or business person.
*
*
* @var string
*/
- protected $honorificSuffix;
+ protected $naics;
/**
- * The place where the person died.
+ * 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\Place|string
+ * @var string|\OpenActive\Models\SchemaOrg\Thing
*/
- protected $deathPlace;
+ protected $knowsAbout;
/**
- * A contact location for a person's residence.
+ * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @var string
*/
- protected $homeLocation;
+ protected $isicV4;
/**
- * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
+ * An Organization (or ProgramMembership) to which this Person or Organization belongs.
*
*
- * @var \OpenActive\Models\SchemaOrg\Grant|string
+ * @var \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $funding;
+ protected $memberOf;
/**
- * The Value-added Tax ID of the organization or person.
+ * A pointer to products or services offered by the organization or person.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $vatID;
+ protected $makesOffer;
/**
- * The height of the item.
+ * Physical address of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
- protected $height;
+ protected $address;
/**
- * 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 Dun & Bradstreet DUNS number for identifying an organization or business person.
*
*
* @var string
*/
- protected $globalLocationNumber;
+ protected $duns;
/**
- * A contact point for a person or organization.
+ * The place where the person died.
*
*
- * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $contactPoints;
+ protected $deathPlace;
/**
- * The Person's occupation. For past professions, use Role for expressing dates.
+ * An organization that the person is an alumni of.
*
*
- * @var \OpenActive\Models\SchemaOrg\Occupation|string
+ * @var \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $hasOccupation;
+ protected $alumniOf;
/**
- * 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".
+ * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.
*
*
- * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null
+ * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string
*/
- protected $gender;
+ protected $interactionStatistic;
/**
- * A parent of this person.
+ * A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $parent;
+ protected $sponsor;
/**
- * Awards won by or for this item.
+ * A child of the person.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $awards;
+ protected $children;
/**
- * A sibling of the person.
+ * 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 $sibling;
+ protected $gender;
/**
* The job title of the person (for example, Financial Manager).
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
protected $jobTitle;
/**
- * Date of birth.
+ * An honorific suffix following a Person's name such as M.D./PhD/MSCSW.
*
*
- * @var Date|null
+ * @var string
*/
- protected $birthDate;
+ protected $honorificSuffix;
/**
- * A person or organization that supports (sponsors) something through some kind of financial contribution.
+ * A credential awarded to the Person or Organization.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
*/
- protected $funder;
+ protected $hasCredential;
/**
- * A pointer to products or services offered by the organization or person.
+ * A contact location for a person's place of work.
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- protected $makesOffer;
+ protected $workLocation;
/**
- * A child of the person.
+ * Nationality of the person.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Country|string
*/
- protected $children;
+ protected $nationality;
/**
- * Organizations that the person works for.
+ * 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\Organization|string
+ * @var string
*/
- protected $worksFor;
+ protected $taxID;
/**
- * The most generic bi-directional social/work relation.
+ * An award won by or for this item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $knows;
+ protected $award;
/**
- * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.
+ * Family name. In the U.S., the last name of a Person.
*
*
- * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string
+ * @var string
*/
- protected $interactionStatistic;
+ protected $familyName;
/**
- * Physical address of the item.
+ * The height of the item.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
*/
- protected $address;
+ protected $height;
/**
- * An Organization (or ProgramMembership) to which this Person or Organization belongs.
+ * The weight of the product or person.
*
*
- * @var \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $memberOf;
+ protected $weight;
/**
- * The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]].
- *
- * While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology.
- *
+ * A contact location for a person's residence.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string
*/
- protected $publishingPrinciples;
+ protected $homeLocation;
/**
- * A colleague of the person.
+ * A person or organization that supports (sponsors) something through some kind of financial contribution.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $colleagues;
+ protected $funder;
/**
- * Date of death.
+ * The Person's occupation. For past professions, use Role for expressing dates.
*
*
- * @var Date|null
+ * @var \OpenActive\Models\SchemaOrg\Occupation|string
*/
- protected $deathDate;
+ protected $hasOccupation;
/**
- * Email address.
+ * A pointer to products or services sought by the organization or person (demand).
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Demand|string
*/
- protected $email;
+ protected $seeks;
/**
- * An organization that this person is affiliated with. For example, a school/university, a club, or a team.
+ * Indicates an OfferCatalog listing for this Organization, Person, or Service.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string
*/
- protected $affiliation;
+ protected $hasOfferCatalog;
/**
- * A sibling of the person.
+ * The most generic bi-directional social/work relation.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $siblings;
+ protected $knows;
/**
- * The place where the person was born.
+ * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Grant|string
*/
- protected $birthPlace;
+ protected $funding;
/**
- * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.
+ * The fax number.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string
+ * @var string
*/
- protected $brand;
+ protected $faxNumber;
/**
- * A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event.
+ * An additional name for a Person, can be used for a middle name.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $sponsor;
+ protected $additionalName;
/**
- * The North American Industry Classification System (NAICS) code for a particular organization or business person.
+ * The total financial value of the person as calculated by subtracting assets from liabilities.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $naics;
+ protected $netWorth;
/**
- * A contact point for a person or organization.
+ * The person's spouse.
*
*
- * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $contactPoint;
+ protected $spouse;
/**
- * A [callsign](https://en.wikipedia.org/wiki/Call_sign), as used in broadcasting and radio communications to identify people, radio and TV stations, or vehicles.
+ * A colleague of the person.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $callSign;
+ protected $colleagues;
/**
- * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.
+ * Event that this person is a performer or participant in.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $isicV4;
+ protected $performerIn;
/**
- * Points-of-Sales operated by the organization or person.
+ * A sibling of the person.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $hasPOS;
+ protected $sibling;
/**
- * An organization that the person is an alumni of.
+ * 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 $globalLocationNumber;
+
+ /**
+ * Products owned by the organization or person.
*
*
- * @var \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\OwnershipInfo|\OpenActive\Models\SchemaOrg\Product|string
*/
- protected $alumniOf;
+ protected $owns;
/**
- * The Dun & Bradstreet DUNS number for identifying an organization or business person.
+ * Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47).
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $duns;
+ protected $knowsLanguage;
/**
- * The weight of the product or 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\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $weight;
+ protected $brand;
/**
- * 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).
+ * Date of birth.
*
*
- * @var \OpenActive\Models\SchemaOrg\Language|string
+ * @var Date|null
*/
- protected $knowsLanguage;
+ protected $birthDate;
/**
- * The most generic familial relation.
+ * A sibling of the person.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $relatedTo;
+ protected $siblings;
/**
- * A colleague of the person.
+ * The place where the person was born.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $colleague;
+ protected $birthPlace;
/**
- * A pointer to products or services sought by the organization or person (demand).
+ * A parents of the person.
*
*
- * @var \OpenActive\Models\SchemaOrg\Demand|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $seeks;
+ protected $parents;
/**
- * The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.
+ * The telephone number.
*
*
* @var string
*/
- protected $taxID;
+ protected $telephone;
/**
- * Products owned by the organization or person.
+ * Points-of-Sales operated by the organization or person.
*
*
- * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $owns;
+ protected $hasPOS;
/**
- * Indicates an OfferCatalog listing for this Organization, Person, or Service.
+ * Email address.
*
*
- * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string
+ * @var string
*/
- protected $hasOfferCatalog;
+ protected $email;
/**
- * The most generic uni-directional social relation.
+ * 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\Person|string
+ * @var string
*/
- protected $follows;
+ protected $callSign;
/**
- * Nationality of the person.
+ * The Value-added Tax ID of the organization or person.
*
*
- * @var \OpenActive\Models\SchemaOrg\Country|string
+ * @var string
*/
- protected $nationality;
+ protected $vatID;
/**
- * The fax number.
+ * A colleague of the person.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $faxNumber;
+ protected $colleague;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- public function getSpouse()
+ public function getContactPoints()
{
- return $this->spouse;
+ return $this->contactPoints;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $spouse
+ * @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 setSpouse($spouse)
+ public function setContactPoints($contactPoints)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
];
- $spouse = self::checkTypes($spouse, $types);
+ $contactPoints = self::checkTypes($contactPoints, $types);
- $this->spouse = $spouse;
+ $this->contactPoints = $contactPoints;
}
/**
* @return string
*/
- public function getAdditionalName()
+ public function getGivenName()
{
- return $this->additionalName;
+ return $this->givenName;
}
/**
- * @param string $additionalName
+ * @param string $givenName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdditionalName($additionalName)
+ public function setGivenName($givenName)
{
$types = [
"string",
];
- $additionalName = self::checkTypes($additionalName, $types);
+ $givenName = self::checkTypes($givenName, $types);
- $this->additionalName = $additionalName;
+ $this->givenName = $givenName;
}
/**
- * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @return string
*/
- public function getHasCredential()
+ public function getHonorificPrefix()
{
- return $this->hasCredential;
+ return $this->honorificPrefix;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $hasCredential
+ * @param string $honorificPrefix
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasCredential($hasCredential)
+ public function setHonorificPrefix($honorificPrefix)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
"string",
];
- $hasCredential = self::checkTypes($hasCredential, $types);
+ $honorificPrefix = self::checkTypes($honorificPrefix, $types);
- $this->hasCredential = $hasCredential;
+ $this->honorificPrefix = $honorificPrefix;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getTelephone()
+ public function getWorksFor()
{
- return $this->telephone;
+ return $this->worksFor;
}
/**
- * @param string $telephone
+ * @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 setTelephone($telephone)
+ public function setWorksFor($worksFor)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $telephone = self::checkTypes($telephone, $types);
+ $worksFor = self::checkTypes($worksFor, $types);
- $this->telephone = $telephone;
+ $this->worksFor = $worksFor;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getHonorificPrefix()
+ public function getRelatedTo()
{
- return $this->honorificPrefix;
+ return $this->relatedTo;
}
/**
- * @param string $honorificPrefix
+ * @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 setHonorificPrefix($honorificPrefix)
+ public function setRelatedTo($relatedTo)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $honorificPrefix = self::checkTypes($honorificPrefix, $types);
+ $relatedTo = self::checkTypes($relatedTo, $types);
- $this->honorificPrefix = $honorificPrefix;
+ $this->relatedTo = $relatedTo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getParents()
+ public function getPublishingPrinciples()
{
- return $this->parents;
+ return $this->publishingPrinciples;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $parents
+ * @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 setParents($parents)
+ public function setPublishingPrinciples($publishingPrinciples)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $parents = self::checkTypes($parents, $types);
+ $publishingPrinciples = self::checkTypes($publishingPrinciples, $types);
- $this->parents = $parents;
+ $this->publishingPrinciples = $publishingPrinciples;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- public function getFamilyName()
+ public function getContactPoint()
{
- return $this->familyName;
+ return $this->contactPoint;
}
/**
- * @param string $familyName
+ * @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 setFamilyName($familyName)
+ public function setContactPoint($contactPoint)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
];
- $familyName = self::checkTypes($familyName, $types);
+ $contactPoint = self::checkTypes($contactPoint, $types);
- $this->familyName = $familyName;
+ $this->contactPoint = $contactPoint;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getGivenName()
+ public function getAffiliation()
{
- return $this->givenName;
+ return $this->affiliation;
}
/**
- * @param string $givenName
+ * @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 setGivenName($givenName)
+ public function setAffiliation($affiliation)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $givenName = self::checkTypes($givenName, $types);
+ $affiliation = self::checkTypes($affiliation, $types);
- $this->givenName = $givenName;
+ $this->affiliation = $affiliation;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Thing
+ * @return Date|null
*/
- public function getKnowsAbout()
+ public function getDeathDate()
{
- return $this->knowsAbout;
+ return $this->deathDate;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Thing $knowsAbout
+ * @param Date|null $deathDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setKnowsAbout($knowsAbout)
+ public function setDeathDate($deathDate)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\Thing",
+ "Date",
+ "null",
];
- $knowsAbout = self::checkTypes($knowsAbout, $types);
+ $deathDate = self::checkTypes($deathDate, $types);
- $this->knowsAbout = $knowsAbout;
+ $this->deathDate = $deathDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPerformerIn()
+ public function getFollows()
{
- return $this->performerIn;
+ return $this->follows;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $performerIn
+ * @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 setPerformerIn($performerIn)
+ public function setFollows($follows)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $performerIn = self::checkTypes($performerIn, $types);
+ $follows = self::checkTypes($follows, $types);
- $this->performerIn = $performerIn;
+ $this->follows = $follows;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @return string
*/
- public function getNetWorth()
+ public function getAwards()
{
- return $this->netWorth;
+ return $this->awards;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $netWorth
+ * @param string $awards
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNetWorth($netWorth)
+ public function setAwards($awards)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
];
- $netWorth = self::checkTypes($netWorth, $types);
+ $awards = self::checkTypes($awards, $types);
- $this->netWorth = $netWorth;
+ $this->awards = $awards;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getAward()
+ public function getParent()
{
- return $this->award;
+ return $this->parent;
}
/**
- * @param string $award
+ * @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 setAward($award)
+ public function setParent($parent)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $award = self::checkTypes($award, $types);
+ $parent = self::checkTypes($parent, $types);
- $this->award = $award;
+ $this->parent = $parent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @return string
*/
- public function getWorkLocation()
+ public function getNaics()
{
- return $this->workLocation;
+ return $this->naics;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string $workLocation
+ * @param string $naics
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWorkLocation($workLocation)
+ public function setNaics($naics)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
];
- $workLocation = self::checkTypes($workLocation, $types);
+ $naics = self::checkTypes($naics, $types);
- $this->workLocation = $workLocation;
+ $this->naics = $naics;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Thing
*/
- public function getHonorificSuffix()
+ public function getKnowsAbout()
{
- return $this->honorificSuffix;
+ return $this->knowsAbout;
}
/**
- * @param string $honorificSuffix
+ * @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 setHonorificSuffix($honorificSuffix)
+ public function setKnowsAbout($knowsAbout)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Thing",
];
- $honorificSuffix = self::checkTypes($honorificSuffix, $types);
+ $knowsAbout = self::checkTypes($knowsAbout, $types);
- $this->honorificSuffix = $honorificSuffix;
+ $this->knowsAbout = $knowsAbout;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return string
*/
- public function getDeathPlace()
+ public function getIsicV4()
{
- return $this->deathPlace;
+ return $this->isicV4;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $deathPlace
+ * @param string $isicV4
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDeathPlace($deathPlace)
+ public function setIsicV4($isicV4)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $deathPlace = self::checkTypes($deathPlace, $types);
+ $isicV4 = self::checkTypes($isicV4, $types);
- $this->deathPlace = $deathPlace;
+ $this->isicV4 = $isicV4;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @return \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getHomeLocation()
+ public function getMemberOf()
{
- return $this->homeLocation;
+ return $this->memberOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string $homeLocation
+ * @param \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string $memberOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHomeLocation($homeLocation)
+ public function setMemberOf($memberOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\ProgramMembership",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $homeLocation = self::checkTypes($homeLocation, $types);
+ $memberOf = self::checkTypes($memberOf, $types);
- $this->homeLocation = $homeLocation;
+ $this->memberOf = $memberOf;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Grant|string
+ * @return \OpenActive\Models\SchemaOrg\Offer|string
*/
- public function getFunding()
+ public function getMakesOffer()
{
- return $this->funding;
+ return $this->makesOffer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Grant|string $funding
+ * @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 setFunding($funding)
+ public function setMakesOffer($makesOffer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Grant",
+ "\OpenActive\Models\SchemaOrg\Offer",
"string",
];
- $funding = self::checkTypes($funding, $types);
+ $makesOffer = self::checkTypes($makesOffer, $types);
- $this->funding = $funding;
+ $this->makesOffer = $makesOffer;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
- public function getVatID()
+ public function getAddress()
{
- return $this->vatID;
+ return $this->address;
}
/**
- * @param string $vatID
+ * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $address
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVatID($vatID)
+ public function setAddress($address)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
"string",
];
- $vatID = self::checkTypes($vatID, $types);
+ $address = self::checkTypes($address, $types);
- $this->vatID = $vatID;
+ $this->address = $address;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getHeight()
+ public function getDuns()
{
- return $this->height;
+ return $this->duns;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height
+ * @param string $duns
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHeight($height)
+ public function setDuns($duns)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Distance",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $height = self::checkTypes($height, $types);
+ $duns = self::checkTypes($duns, $types);
- $this->height = $height;
+ $this->duns = $duns;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getGlobalLocationNumber()
+ public function getDeathPlace()
{
- return $this->globalLocationNumber;
+ return $this->deathPlace;
}
/**
- * @param string $globalLocationNumber
+ * @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 setGlobalLocationNumber($globalLocationNumber)
+ public function setDeathPlace($deathPlace)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $globalLocationNumber = self::checkTypes($globalLocationNumber, $types);
+ $deathPlace = self::checkTypes($deathPlace, $types);
- $this->globalLocationNumber = $globalLocationNumber;
+ $this->deathPlace = $deathPlace;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @return \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getContactPoints()
+ public function getAlumniOf()
{
- return $this->contactPoints;
+ return $this->alumniOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoints
+ * @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 setContactPoints($contactPoints)
+ public function setAlumniOf($alumniOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\EducationalOrganization",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $contactPoints = self::checkTypes($contactPoints, $types);
+ $alumniOf = self::checkTypes($alumniOf, $types);
- $this->contactPoints = $contactPoints;
+ $this->alumniOf = $alumniOf;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Occupation|string
+ * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string
*/
- public function getHasOccupation()
+ public function getInteractionStatistic()
{
- return $this->hasOccupation;
+ return $this->interactionStatistic;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Occupation|string $hasOccupation
+ * @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 setHasOccupation($hasOccupation)
+ public function setInteractionStatistic($interactionStatistic)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Occupation",
+ "\OpenActive\Models\SchemaOrg\InteractionCounter",
"string",
];
- $hasOccupation = self::checkTypes($hasOccupation, $types);
+ $interactionStatistic = self::checkTypes($interactionStatistic, $types);
- $this->hasOccupation = $hasOccupation;
+ $this->interactionStatistic = $interactionStatistic;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getGender()
+ public function getSponsor()
{
- return $this->gender;
+ return $this->sponsor;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $gender
+ * @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 setGender($gender)
+ public function setSponsor($sponsor)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\GenderType",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "null",
];
- $gender = self::checkTypes($gender, $types);
+ $sponsor = self::checkTypes($sponsor, $types);
- $this->gender = $gender;
+ $this->sponsor = $sponsor;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getParent()
+ public function getChildren()
{
- return $this->parent;
+ return $this->children;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $parent
+ * @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 setParent($parent)
+ public function setChildren($children)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $parent = self::checkTypes($parent, $types);
+ $children = self::checkTypes($children, $types);
- $this->parent = $parent;
+ $this->children = $children;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null
*/
- public function getAwards()
+ public function getGender()
{
- return $this->awards;
+ return $this->gender;
}
/**
- * @param string $awards
+ * @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 setAwards($awards)
+ public function setGender($gender)
{
$types = [
+ "\OpenActive\Enums\SchemaOrg\GenderType",
"string",
+ "null",
];
- $awards = self::checkTypes($awards, $types);
+ $gender = self::checkTypes($gender, $types);
- $this->awards = $awards;
+ $this->gender = $gender;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getSibling()
+ public function getJobTitle()
{
- return $this->sibling;
+ return $this->jobTitle;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $sibling
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $jobTitle
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSibling($sibling)
+ public function setJobTitle($jobTitle)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $sibling = self::checkTypes($sibling, $types);
+ $jobTitle = self::checkTypes($jobTitle, $types);
- $this->sibling = $sibling;
+ $this->jobTitle = $jobTitle;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return string
*/
- public function getJobTitle()
+ public function getHonorificSuffix()
{
- return $this->jobTitle;
+ return $this->honorificSuffix;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $jobTitle
+ * @param string $honorificSuffix
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setJobTitle($jobTitle)
+ public function setHonorificSuffix($honorificSuffix)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $jobTitle = self::checkTypes($jobTitle, $types);
+ $honorificSuffix = self::checkTypes($honorificSuffix, $types);
- $this->jobTitle = $jobTitle;
+ $this->honorificSuffix = $honorificSuffix;
}
/**
- * @return Date|null
+ * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
*/
- public function getBirthDate()
+ public function getHasCredential()
{
- return $this->birthDate;
+ return $this->hasCredential;
}
/**
- * @param Date|null $birthDate
+ * @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 setBirthDate($birthDate)
+ public function setHasCredential($hasCredential)
{
$types = [
- "Date",
- "null",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
+ "string",
];
- $birthDate = self::checkTypes($birthDate, $types);
+ $hasCredential = self::checkTypes($hasCredential, $types);
- $this->birthDate = $birthDate;
+ $this->hasCredential = $hasCredential;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- public function getFunder()
+ public function getWorkLocation()
{
- return $this->funder;
+ return $this->workLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string $workLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFunder($funder)
+ public function setWorkLocation($workLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
];
- $funder = self::checkTypes($funder, $types);
+ $workLocation = self::checkTypes($workLocation, $types);
- $this->funder = $funder;
+ $this->workLocation = $workLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|string
+ * @return \OpenActive\Models\SchemaOrg\Country|string
*/
- public function getMakesOffer()
+ public function getNationality()
{
- return $this->makesOffer;
+ return $this->nationality;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|string $makesOffer
+ * @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 setMakesOffer($makesOffer)
+ public function setNationality($nationality)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
+ "\OpenActive\Models\SchemaOrg\Country",
"string",
];
- $makesOffer = self::checkTypes($makesOffer, $types);
+ $nationality = self::checkTypes($nationality, $types);
- $this->makesOffer = $makesOffer;
+ $this->nationality = $nationality;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getChildren()
+ public function getTaxID()
{
- return $this->children;
+ return $this->taxID;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $children
+ * @param string $taxID
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setChildren($children)
+ public function setTaxID($taxID)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $children = self::checkTypes($children, $types);
+ $taxID = self::checkTypes($taxID, $types);
- $this->children = $children;
+ $this->taxID = $taxID;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getWorksFor()
+ public function getAward()
{
- return $this->worksFor;
+ return $this->award;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $worksFor
+ * @param string $award
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWorksFor($worksFor)
+ public function setAward($award)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $worksFor = self::checkTypes($worksFor, $types);
+ $award = self::checkTypes($award, $types);
- $this->worksFor = $worksFor;
+ $this->award = $award;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getKnows()
+ public function getFamilyName()
{
- return $this->knows;
+ return $this->familyName;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $knows
+ * @param string $familyName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setKnows($knows)
+ public function setFamilyName($familyName)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $knows = self::checkTypes($knows, $types);
+ $familyName = self::checkTypes($familyName, $types);
- $this->knows = $knows;
+ $this->familyName = $familyName;
}
/**
- * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
*/
- public function getInteractionStatistic()
+ public function getHeight()
{
- return $this->interactionStatistic;
+ return $this->height;
}
/**
- * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $height
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInteractionStatistic($interactionStatistic)
+ public function setHeight($height)
{
$types = [
- "\OpenActive\Models\SchemaOrg\InteractionCounter",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Distance",
"string",
];
- $interactionStatistic = self::checkTypes($interactionStatistic, $types);
+ $height = self::checkTypes($height, $types);
- $this->interactionStatistic = $interactionStatistic;
+ $this->height = $height;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getAddress()
+ public function getWeight()
{
- return $this->address;
+ return $this->weight;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address
+ * @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 setAddress($address)
+ public function setWeight($weight)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "\OpenActive\Models\SchemaOrg\PostalAddress",
];
- $address = self::checkTypes($address, $types);
+ $weight = self::checkTypes($weight, $types);
- $this->address = $address;
+ $this->weight = $weight;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string
*/
- public function getMemberOf()
+ public function getHomeLocation()
{
- return $this->memberOf;
+ return $this->homeLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string $memberOf
+ * @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 setMemberOf($memberOf)
+ public function setHomeLocation($homeLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ProgramMembership",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $memberOf = self::checkTypes($memberOf, $types);
+ $homeLocation = self::checkTypes($homeLocation, $types);
- $this->memberOf = $memberOf;
+ $this->homeLocation = $homeLocation;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPublishingPrinciples()
+ public function getFunder()
{
- return $this->publishingPrinciples;
+ return $this->funder;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $publishingPrinciples
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPublishingPrinciples($publishingPrinciples)
+ public function setFunder($funder)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $publishingPrinciples = self::checkTypes($publishingPrinciples, $types);
+ $funder = self::checkTypes($funder, $types);
- $this->publishingPrinciples = $publishingPrinciples;
+ $this->funder = $funder;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Occupation|string
*/
- public function getColleagues()
+ public function getHasOccupation()
{
- return $this->colleagues;
+ return $this->hasOccupation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $colleagues
+ * @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 setColleagues($colleagues)
+ public function setHasOccupation($hasOccupation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Occupation",
"string",
];
- $colleagues = self::checkTypes($colleagues, $types);
+ $hasOccupation = self::checkTypes($hasOccupation, $types);
- $this->colleagues = $colleagues;
+ $this->hasOccupation = $hasOccupation;
}
/**
- * @return Date|null
+ * @return \OpenActive\Models\SchemaOrg\Demand|string
*/
- public function getDeathDate()
+ public function getSeeks()
{
- return $this->deathDate;
+ return $this->seeks;
}
/**
- * @param Date|null $deathDate
+ * @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 setDeathDate($deathDate)
+ public function setSeeks($seeks)
{
$types = [
- "Date",
- "null",
+ "\OpenActive\Models\SchemaOrg\Demand",
+ "string",
];
- $deathDate = self::checkTypes($deathDate, $types);
+ $seeks = self::checkTypes($seeks, $types);
- $this->deathDate = $deathDate;
+ $this->seeks = $seeks;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string
*/
- public function getEmail()
+ public function getHasOfferCatalog()
{
- return $this->email;
+ return $this->hasOfferCatalog;
}
/**
- * @param string $email
+ * @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 setEmail($email)
+ public function setHasOfferCatalog($hasOfferCatalog)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\OfferCatalog",
"string",
];
- $email = self::checkTypes($email, $types);
+ $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types);
- $this->email = $email;
+ $this->hasOfferCatalog = $hasOfferCatalog;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getAffiliation()
+ public function getKnows()
{
- return $this->affiliation;
+ return $this->knows;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $affiliation
+ * @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 setAffiliation($affiliation)
+ public function setKnows($knows)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $affiliation = self::checkTypes($affiliation, $types);
+ $knows = self::checkTypes($knows, $types);
- $this->affiliation = $affiliation;
+ $this->knows = $knows;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Grant|string
*/
- public function getSiblings()
+ public function getFunding()
{
- return $this->siblings;
+ return $this->funding;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $siblings
+ * @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 setSiblings($siblings)
+ public function setFunding($funding)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Grant",
"string",
];
- $siblings = self::checkTypes($siblings, $types);
+ $funding = self::checkTypes($funding, $types);
- $this->siblings = $siblings;
+ $this->funding = $funding;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return string
*/
- public function getBirthPlace()
+ public function getFaxNumber()
{
- return $this->birthPlace;
+ return $this->faxNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $birthPlace
+ * @param string $faxNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBirthPlace($birthPlace)
+ public function setFaxNumber($faxNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $birthPlace = self::checkTypes($birthPlace, $types);
+ $faxNumber = self::checkTypes($faxNumber, $types);
- $this->birthPlace = $birthPlace;
+ $this->faxNumber = $faxNumber;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string
+ * @return string
*/
- public function getBrand()
+ public function getAdditionalName()
{
- return $this->brand;
+ return $this->additionalName;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand
+ * @param string $additionalName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBrand($brand)
+ public function setAdditionalName($additionalName)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Brand",
"string",
];
- $brand = self::checkTypes($brand, $types);
+ $additionalName = self::checkTypes($additionalName, $types);
- $this->brand = $brand;
+ $this->additionalName = $additionalName;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getSponsor()
+ public function getNetWorth()
{
- return $this->sponsor;
+ return $this->netWorth;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
+ * @param \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string $netWorth
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSponsor($sponsor)
+ public function setNetWorth($netWorth)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
];
- $sponsor = self::checkTypes($sponsor, $types);
+ $netWorth = self::checkTypes($netWorth, $types);
- $this->sponsor = $sponsor;
+ $this->netWorth = $netWorth;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getNaics()
+ public function getSpouse()
{
- return $this->naics;
+ return $this->spouse;
}
/**
- * @param string $naics
+ * @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 setNaics($naics)
+ public function setSpouse($spouse)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $naics = self::checkTypes($naics, $types);
+ $spouse = self::checkTypes($spouse, $types);
- $this->naics = $naics;
+ $this->spouse = $spouse;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getContactPoint()
+ public function getColleagues()
{
- return $this->contactPoint;
+ return $this->colleagues;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint
+ * @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 setContactPoint($contactPoint)
+ public function setColleagues($colleagues)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $contactPoint = self::checkTypes($contactPoint, $types);
+ $colleagues = self::checkTypes($colleagues, $types);
- $this->contactPoint = $contactPoint;
+ $this->colleagues = $colleagues;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getCallSign()
+ public function getPerformerIn()
{
- return $this->callSign;
+ return $this->performerIn;
}
/**
- * @param string $callSign
+ * @param \OpenActive\Models\SchemaOrg\Event|string $performerIn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCallSign($callSign)
+ public function setPerformerIn($performerIn)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $callSign = self::checkTypes($callSign, $types);
+ $performerIn = self::checkTypes($performerIn, $types);
- $this->callSign = $callSign;
+ $this->performerIn = $performerIn;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getIsicV4()
+ public function getSibling()
{
- return $this->isicV4;
+ return $this->sibling;
}
/**
- * @param string $isicV4
+ * @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 setIsicV4($isicV4)
+ public function setSibling($sibling)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $isicV4 = self::checkTypes($isicV4, $types);
+ $sibling = self::checkTypes($sibling, $types);
- $this->isicV4 = $isicV4;
+ $this->sibling = $sibling;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return string
*/
- public function getHasPOS()
+ public function getGlobalLocationNumber()
{
- return $this->hasPOS;
+ return $this->globalLocationNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $hasPOS
+ * @param string $globalLocationNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasPOS($hasPOS)
+ public function setGlobalLocationNumber($globalLocationNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $hasPOS = self::checkTypes($hasPOS, $types);
+ $globalLocationNumber = self::checkTypes($globalLocationNumber, $types);
- $this->hasPOS = $hasPOS;
+ $this->globalLocationNumber = $globalLocationNumber;
}
/**
- * @return \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\OwnershipInfo|\OpenActive\Models\SchemaOrg\Product|string
*/
- public function getAlumniOf()
+ public function getOwns()
{
- return $this->alumniOf;
+ return $this->owns;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string $alumniOf
+ * @param \OpenActive\Models\SchemaOrg\OwnershipInfo|\OpenActive\Models\SchemaOrg\Product|string $owns
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlumniOf($alumniOf)
+ public function setOwns($owns)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EducationalOrganization",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\OwnershipInfo",
+ "\OpenActive\Models\SchemaOrg\Product",
"string",
];
- $alumniOf = self::checkTypes($alumniOf, $types);
+ $owns = self::checkTypes($owns, $types);
- $this->alumniOf = $alumniOf;
+ $this->owns = $owns;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getDuns()
+ public function getKnowsLanguage()
{
- return $this->duns;
+ return $this->knowsLanguage;
}
/**
- * @param string $duns
+ * @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 setDuns($duns)
+ public function setKnowsLanguage($knowsLanguage)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $duns = self::checkTypes($duns, $types);
+ $knowsLanguage = self::checkTypes($knowsLanguage, $types);
- $this->duns = $duns;
+ $this->knowsLanguage = $knowsLanguage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getWeight()
+ public function getBrand()
{
- return $this->weight;
+ return $this->brand;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight
+ * @param \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string $brand
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWeight($weight)
+ public function setBrand($brand)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Brand",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $weight = self::checkTypes($weight, $types);
+ $brand = self::checkTypes($brand, $types);
- $this->weight = $weight;
+ $this->brand = $brand;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Language|string
+ * @return Date|null
*/
- public function getKnowsLanguage()
+ public function getBirthDate()
{
- return $this->knowsLanguage;
+ return $this->birthDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Language|string $knowsLanguage
+ * @param Date|null $birthDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setKnowsLanguage($knowsLanguage)
+ public function setBirthDate($birthDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Language",
- "string",
+ "Date",
+ "null",
];
- $knowsLanguage = self::checkTypes($knowsLanguage, $types);
+ $birthDate = self::checkTypes($birthDate, $types);
- $this->knowsLanguage = $knowsLanguage;
+ $this->birthDate = $birthDate;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getRelatedTo()
+ public function getSiblings()
{
- return $this->relatedTo;
+ return $this->siblings;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $relatedTo
+ * @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 setRelatedTo($relatedTo)
+ public function setSiblings($siblings)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $relatedTo = self::checkTypes($relatedTo, $types);
+ $siblings = self::checkTypes($siblings, $types);
- $this->relatedTo = $relatedTo;
+ $this->siblings = $siblings;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getColleague()
+ public function getBirthPlace()
{
- return $this->colleague;
+ return $this->birthPlace;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $colleague
+ * @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 setColleague($colleague)
+ public function setBirthPlace($birthPlace)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $colleague = self::checkTypes($colleague, $types);
+ $birthPlace = self::checkTypes($birthPlace, $types);
- $this->colleague = $colleague;
+ $this->birthPlace = $birthPlace;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Demand|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getSeeks()
+ public function getParents()
{
- return $this->seeks;
+ return $this->parents;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Demand|string $seeks
+ * @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 setSeeks($seeks)
+ public function setParents($parents)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $seeks = self::checkTypes($seeks, $types);
+ $parents = self::checkTypes($parents, $types);
- $this->seeks = $seeks;
+ $this->parents = $parents;
}
/**
* @return string
*/
- public function getTaxID()
+ public function getTelephone()
{
- return $this->taxID;
+ return $this->telephone;
}
/**
- * @param string $taxID
+ * @param string $telephone
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTaxID($taxID)
+ public function setTelephone($telephone)
{
$types = [
"string",
];
- $taxID = self::checkTypes($taxID, $types);
+ $telephone = self::checkTypes($telephone, $types);
- $this->taxID = $taxID;
+ $this->telephone = $telephone;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getOwns()
+ public function getHasPOS()
{
- return $this->owns;
+ return $this->hasPOS;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string $owns
+ * @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 setOwns($owns)
+ public function setHasPOS($hasPOS)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Product",
- "\OpenActive\Models\SchemaOrg\OwnershipInfo",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $owns = self::checkTypes($owns, $types);
+ $hasPOS = self::checkTypes($hasPOS, $types);
- $this->owns = $owns;
+ $this->hasPOS = $hasPOS;
}
/**
- * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string
+ * @return string
*/
- public function getHasOfferCatalog()
+ public function getEmail()
{
- return $this->hasOfferCatalog;
+ return $this->email;
}
/**
- * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog
+ * @param string $email
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasOfferCatalog($hasOfferCatalog)
+ public function setEmail($email)
{
$types = [
- "\OpenActive\Models\SchemaOrg\OfferCatalog",
"string",
];
- $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types);
+ $email = self::checkTypes($email, $types);
- $this->hasOfferCatalog = $hasOfferCatalog;
+ $this->email = $email;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getFollows()
+ public function getCallSign()
{
- return $this->follows;
+ return $this->callSign;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $follows
+ * @param string $callSign
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFollows($follows)
+ public function setCallSign($callSign)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $follows = self::checkTypes($follows, $types);
+ $callSign = self::checkTypes($callSign, $types);
- $this->follows = $follows;
+ $this->callSign = $callSign;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return string
*/
- public function getNationality()
+ public function getVatID()
{
- return $this->nationality;
+ return $this->vatID;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $nationality
+ * @param string $vatID
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNationality($nationality)
+ public function setVatID($vatID)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
"string",
];
- $nationality = self::checkTypes($nationality, $types);
+ $vatID = self::checkTypes($vatID, $types);
- $this->nationality = $nationality;
+ $this->vatID = $vatID;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getFaxNumber()
+ public function getColleague()
{
- return $this->faxNumber;
+ return $this->colleague;
}
/**
- * @param string $faxNumber
+ * @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 setFaxNumber($faxNumber)
+ public function setColleague($colleague)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $faxNumber = self::checkTypes($faxNumber, $types);
+ $colleague = self::checkTypes($colleague, $types);
- $this->faxNumber = $faxNumber;
+ $this->colleague = $colleague;
}
}
diff --git a/src/Models/SchemaOrg/PhysicalActivity.php b/src/Models/SchemaOrg/PhysicalActivity.php
index 7607ab7b..8884450b 100644
--- a/src/Models/SchemaOrg/PhysicalActivity.php
+++ b/src/Models/SchemaOrg/PhysicalActivity.php
@@ -17,20 +17,28 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "epidemiology" => "epidemiology",
"category" => "category",
"pathophysiology" => "pathophysiology",
"associatedAnatomy" => "associatedAnatomy",
- "epidemiology" => "epidemiology",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The characteristics of associated patients, such as age, gender, race etc.
+ *
+ *
+ * @var string
+ */
+ protected $epidemiology;
+
/**
* 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|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
*/
protected $category;
@@ -46,20 +54,36 @@ public static function fieldList() {
* The anatomy of the underlying organ system or structures associated with this entity.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
protected $associatedAnatomy;
/**
- * The characteristics of associated patients, such as age, gender, race etc.
- *
- *
- * @var string
+ * @return string
*/
- protected $epidemiology;
+ public function getEpidemiology()
+ {
+ return $this->epidemiology;
+ }
+
+ /**
+ * @param string $epidemiology
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setEpidemiology($epidemiology)
+ {
+ $types = [
+ "string",
+ ];
+
+ $epidemiology = self::checkTypes($epidemiology, $types);
+
+ $this->epidemiology = $epidemiology;
+ }
/**
- * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
*/
public function getCategory()
{
@@ -67,15 +91,15 @@ public function getCategory()
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
+ * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setCategory($category)
{
$types = [
- "string",
"\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
+ "string",
"\OpenActive\Models\SchemaOrg\Thing",
"\OpenActive\Models\SchemaOrg\CategoryCode",
"null",
@@ -111,7 +135,7 @@ public function setPathophysiology($pathophysiology)
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
public function getAssociatedAnatomy()
{
@@ -119,7 +143,7 @@ public function getAssociatedAnatomy()
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string $associatedAnatomy
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $associatedAnatomy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
@@ -127,8 +151,8 @@ public function setAssociatedAnatomy($associatedAnatomy)
{
$types = [
"\OpenActive\Models\SchemaOrg\AnatomicalStructure",
- "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
"\OpenActive\Models\SchemaOrg\SuperficialAnatomy",
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
"string",
];
@@ -137,28 +161,4 @@ public function setAssociatedAnatomy($associatedAnatomy)
$this->associatedAnatomy = $associatedAnatomy;
}
- /**
- * @return string
- */
- public function getEpidemiology()
- {
- return $this->epidemiology;
- }
-
- /**
- * @param string $epidemiology
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setEpidemiology($epidemiology)
- {
- $types = [
- "string",
- ];
-
- $epidemiology = self::checkTypes($epidemiology, $types);
-
- $this->epidemiology = $epidemiology;
- }
-
}
diff --git a/src/Models/SchemaOrg/Physician.php b/src/Models/SchemaOrg/Physician.php
index 1431e4a1..6bedd080 100644
--- a/src/Models/SchemaOrg/Physician.php
+++ b/src/Models/SchemaOrg/Physician.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"availableService" => "availableService",
- "medicalSpecialty" => "medicalSpecialty",
"hospitalAffiliation" => "hospitalAffiliation",
+ "medicalSpecialty" => "medicalSpecialty",
];
return array_merge(parent::fieldList(), $fields);
@@ -29,28 +29,28 @@ public static function fieldList() {
* A medical service available from this provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTest|string
*/
protected $availableService;
/**
- * A medical specialty of the provider.
+ * A hospital with which the physician or office is affiliated.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ * @var \OpenActive\Models\SchemaOrg\Hospital|string
*/
- protected $medicalSpecialty;
+ protected $hospitalAffiliation;
/**
- * A hospital with which the physician or office is affiliated.
+ * A medical specialty of the provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\Hospital|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- protected $hospitalAffiliation;
+ protected $medicalSpecialty;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTest|string
*/
public function getAvailableService()
{
@@ -58,16 +58,16 @@ public function getAvailableService()
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string $availableService
+ * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTest|string $availableService
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAvailableService($availableService)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTest",
- "\OpenActive\Models\SchemaOrg\MedicalProcedure",
"\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\MedicalProcedure",
+ "\OpenActive\Models\SchemaOrg\MedicalTest",
"string",
];
@@ -77,53 +77,53 @@ public function setAvailableService($availableService)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ * @return \OpenActive\Models\SchemaOrg\Hospital|string
*/
- public function getMedicalSpecialty()
+ public function getHospitalAffiliation()
{
- return $this->medicalSpecialty;
+ return $this->hospitalAffiliation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $medicalSpecialty
+ * @param \OpenActive\Models\SchemaOrg\Hospital|string $hospitalAffiliation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMedicalSpecialty($medicalSpecialty)
+ public function setHospitalAffiliation($hospitalAffiliation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalSpecialty",
+ "\OpenActive\Models\SchemaOrg\Hospital",
"string",
];
- $medicalSpecialty = self::checkTypes($medicalSpecialty, $types);
+ $hospitalAffiliation = self::checkTypes($hospitalAffiliation, $types);
- $this->medicalSpecialty = $medicalSpecialty;
+ $this->hospitalAffiliation = $hospitalAffiliation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Hospital|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- public function getHospitalAffiliation()
+ public function getMedicalSpecialty()
{
- return $this->hospitalAffiliation;
+ return $this->medicalSpecialty;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Hospital|string $hospitalAffiliation
+ * @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 setHospitalAffiliation($hospitalAffiliation)
+ public function setMedicalSpecialty($medicalSpecialty)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Hospital",
+ "\OpenActive\Models\SchemaOrg\MedicalSpecialty",
"string",
];
- $hospitalAffiliation = self::checkTypes($hospitalAffiliation, $types);
+ $medicalSpecialty = self::checkTypes($medicalSpecialty, $types);
- $this->hospitalAffiliation = $hospitalAffiliation;
+ $this->medicalSpecialty = $medicalSpecialty;
}
}
diff --git a/src/Models/SchemaOrg/Place.php b/src/Models/SchemaOrg/Place.php
index 4f4a1b21..3c928b06 100644
--- a/src/Models/SchemaOrg/Place.php
+++ b/src/Models/SchemaOrg/Place.php
@@ -17,183 +17,184 @@ public static function getType()
public static function fieldList() {
$fields = [
- "telephone" => "telephone",
- "review" => "review",
- "maps" => "maps",
- "geoContains" => "geoContains",
- "maximumAttendeeCapacity" => "maximumAttendeeCapacity",
- "containsPlace" => "containsPlace",
- "smokingAllowed" => "smokingAllowed",
- "globalLocationNumber" => "globalLocationNumber",
- "keywords" => "keywords",
- "geoIntersects" => "geoIntersects",
+ "photos" => "photos",
+ "isAccessibleForFree" => "isAccessibleForFree",
+ "hasMap" => "hasMap",
"latitude" => "latitude",
- "geoTouches" => "geoTouches",
+ "containsPlace" => "containsPlace",
+ "geoCovers" => "geoCovers",
"geoCoveredBy" => "geoCoveredBy",
- "aggregateRating" => "aggregateRating",
- "address" => "address",
- "geoEquals" => "geoEquals",
- "map" => "map",
- "publicAccess" => "publicAccess",
"geoCrosses" => "geoCrosses",
- "containedInPlace" => "containedInPlace",
- "amenityFeature" => "amenityFeature",
- "slogan" => "slogan",
- "photos" => "photos",
- "geoCovers" => "geoCovers",
- "containedIn" => "containedIn",
- "hasDriveThroughService" => "hasDriveThroughService",
- "logo" => "logo",
- "isAccessibleForFree" => "isAccessibleForFree",
- "geoWithin" => "geoWithin",
- "geoDisjoint" => "geoDisjoint",
+ "smokingAllowed" => "smokingAllowed",
+ "geoTouches" => "geoTouches",
+ "photo" => "photo",
+ "branchCode" => "branchCode",
+ "geoContains" => "geoContains",
"tourBookingPage" => "tourBookingPage",
"isicV4" => "isicV4",
+ "geo" => "geo",
+ "maps" => "maps",
+ "keywords" => "keywords",
+ "address" => "address",
"geoOverlaps" => "geoOverlaps",
- "branchCode" => "branchCode",
+ "aggregateRating" => "aggregateRating",
+ "geoIntersects" => "geoIntersects",
+ "maximumAttendeeCapacity" => "maximumAttendeeCapacity",
+ "publicAccess" => "publicAccess",
"additionalProperty" => "additionalProperty",
+ "geoWithin" => "geoWithin",
+ "hasDriveThroughService" => "hasDriveThroughService",
"openingHoursSpecification" => "openingHoursSpecification",
- "reviews" => "reviews",
- "photo" => "photo",
"specialOpeningHoursSpecification" => "specialOpeningHoursSpecification",
- "hasMap" => "hasMap",
- "longitude" => "longitude",
- "geo" => "geo",
+ "event" => "event",
+ "logo" => "logo",
+ "containedInPlace" => "containedInPlace",
+ "amenityFeature" => "amenityFeature",
+ "map" => "map",
"events" => "events",
+ "geoEquals" => "geoEquals",
"faxNumber" => "faxNumber",
- "event" => "event",
+ "slogan" => "slogan",
+ "longitude" => "longitude",
+ "reviews" => "reviews",
+ "globalLocationNumber" => "globalLocationNumber",
+ "telephone" => "telephone",
+ "review" => "review",
+ "containedIn" => "containedIn",
+ "geoDisjoint" => "geoDisjoint",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The telephone number.
+ * Photographs of this place.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string
*/
- protected $telephone;
+ protected $photos;
/**
- * A review of the item.
+ * A flag to signal that the item, event, or place is accessible for free.
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var bool|null
*/
- protected $review;
+ protected $isAccessibleForFree;
/**
* A URL to a map of the place.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\Map
*/
- protected $maps;
+ protected $hasMap;
/**
- * 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).
+ * The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
+ * @var string|Number|null
*/
- protected $geoContains;
+ protected $latitude;
/**
- * The total number of individuals that may attend an event or venue.
+ * The basic containment relation between a place and another that it contains.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $maximumAttendeeCapacity;
+ protected $containsPlace;
/**
- * The basic containment relation between a place and another that it contains.
+ * Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
*/
- protected $containsPlace;
+ protected $geoCovers;
/**
- * Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.
+ * 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 bool|null
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $smokingAllowed;
+ protected $geoCoveredBy;
/**
- * The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.
+ * Represents a relationship between two geometries (or the places they represent), relating a geometry to 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 string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $globalLocationNumber;
+ protected $geoCrosses;
/**
- * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.
+ * Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var bool|null
*/
- protected $keywords;
+ protected $smokingAllowed;
/**
- * 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) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)
*
*
* @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
*/
- protected $geoIntersects;
+ protected $geoTouches;
/**
- * The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).
+ * A photograph of this place.
*
*
- * @var string|Number|null
+ * @var \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string
*/
- protected $latitude;
+ protected $photo;
/**
- * 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).
+ * 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
*/
- protected $geoCoveredBy;
+ protected $geoContains;
/**
- * The overall rating, based on a collection of reviews or ratings, of the item.
+ * 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\AggregateRating|string
+ * @var string
*/
- protected $aggregateRating;
+ protected $tourBookingPage;
/**
- * Physical address of the item.
+ * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @var string
*/
- protected $address;
+ protected $isicV4;
/**
- * 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 geo coordinates of the place.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
+ * @var \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string
*/
- protected $geoEquals;
+ protected $geo;
/**
* A URL to a map of the place.
@@ -201,71 +202,80 @@ public static function fieldList() {
*
* @var string
*/
- protected $map;
+ protected $maps;
/**
- * A flag to signal that the [[Place]] is open to public visitors. If this property is omitted there is no assumed default boolean value
+ * 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 bool|null
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $publicAccess;
+ protected $keywords;
/**
- * 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).
+ * Physical address of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
- protected $geoCrosses;
+ protected $address;
/**
- * The basic containment relation between a place and one that contains it.
+ * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $containedInPlace;
+ protected $geoOverlaps;
/**
- * An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.
+ * The overall rating, based on a collection of reviews or ratings, of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- protected $amenityFeature;
+ protected $aggregateRating;
/**
- * A slogan or motto associated with the item.
+ * 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 string
+ * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
*/
- protected $slogan;
+ protected $geoIntersects;
/**
- * Photographs of this place.
+ * The total number of individuals that may attend an event or venue.
*
*
- * @var \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string
+ * @var int|null
*/
- protected $photos;
+ protected $maximumAttendeeCapacity;
/**
- * 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).
+ * A flag to signal that the [[Place]] is open to public visitors. If this property is omitted there is no assumed default boolean value
*
*
- * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @var bool|null
*/
- protected $geoCovers;
+ protected $publicAccess;
/**
- * The basic containment relation between a place and one that contains it.
+ * 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\Place|string
+ * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- protected $containedIn;
+ protected $additionalProperty;
+
+ /**
+ * Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
+ */
+ protected $geoWithin;
/**
* 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.
@@ -276,86 +286,101 @@ public static function fieldList() {
protected $hasDriveThroughService;
/**
- * An associated logo.
+ * The opening hours of a certain place.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\ImageObject
+ * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
*/
- protected $logo;
+ protected $openingHoursSpecification;
/**
- * A flag to signal that the item, event, or place is accessible for free.
+ * 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 bool|null
+ * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
*/
- protected $isAccessibleForFree;
+ protected $specialOpeningHoursSpecification;
/**
- * 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).
+ * Upcoming or past event associated with this place, organization, or action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $geoWithin;
+ protected $event;
/**
- * 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))
+ * An associated logo.
*
*
- * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- protected $geoDisjoint;
+ protected $logo;
/**
- * A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.
+ * The basic containment relation between a place and one that contains it.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $tourBookingPage;
+ protected $containedInPlace;
/**
- * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or 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 \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
+ */
+ protected $amenityFeature;
+
+ /**
+ * A URL to a map of the place.
*
*
* @var string
*/
- protected $isicV4;
+ protected $map;
/**
- * 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).
+ * Upcoming or past events associated with this place or organization.
*
*
- * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $geoOverlaps;
+ protected $events;
/**
- * 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.
- *
+ * 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 $geoEquals;
+
+ /**
+ * The fax number.
*
*
* @var string
*/
- protected $branchCode;
+ protected $faxNumber;
/**
- * 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 slogan or motto associated with the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @var string
*/
- protected $additionalProperty;
+ protected $slogan;
/**
- * The opening hours of a certain place.
+ * The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).
*
*
- * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
+ * @var string|Number|null
*/
- protected $openingHoursSpecification;
+ protected $longitude;
/**
* Review of the item.
@@ -366,359 +391,365 @@ public static function fieldList() {
protected $reviews;
/**
- * A photograph of this place.
+ * The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.
*
*
- * @var \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string
+ * @var string
*/
- protected $photo;
+ protected $globalLocationNumber;
/**
- * The special opening hours of a certain place.\n\nUse this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].
- *
+ * The telephone number.
*
*
- * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
+ * @var string
*/
- protected $specialOpeningHoursSpecification;
+ protected $telephone;
/**
- * A URL to a map of the place.
+ * A review of the item.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Map
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $hasMap;
+ protected $review;
/**
- * The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).
+ * The basic containment relation between a place and one that contains it.
*
*
- * @var string|Number|null
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $longitude;
+ protected $containedIn;
/**
- * The geo coordinates of the place.
+ * Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geo;
+ protected $geoDisjoint;
/**
- * Upcoming or past events associated with this place or organization.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @return \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string
*/
- protected $events;
+ public function getPhotos()
+ {
+ return $this->photos;
+ }
/**
- * The fax number.
- *
- *
- * @var string
+ * @param \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string $photos
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- protected $faxNumber;
+ public function setPhotos($photos)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\ImageObject",
+ "\OpenActive\Models\SchemaOrg\Photograph",
+ "string",
+ ];
- /**
- * Upcoming or past event associated with this place, organization, or action.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Event|string
- */
- protected $event;
+ $photos = self::checkTypes($photos, $types);
+
+ $this->photos = $photos;
+ }
/**
- * @return string
+ * @return bool|null
*/
- public function getTelephone()
+ public function getIsAccessibleForFree()
{
- return $this->telephone;
+ return $this->isAccessibleForFree;
}
/**
- * @param string $telephone
+ * @param bool|null $isAccessibleForFree
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTelephone($telephone)
+ public function setIsAccessibleForFree($isAccessibleForFree)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $telephone = self::checkTypes($telephone, $types);
+ $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types);
- $this->telephone = $telephone;
+ $this->isAccessibleForFree = $isAccessibleForFree;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return string|\OpenActive\Models\SchemaOrg\Map
*/
- public function getReview()
+ public function getHasMap()
{
- return $this->review;
+ return $this->hasMap;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $review
+ * @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 setReview($review)
+ public function setHasMap($hasMap)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
"string",
+ "\OpenActive\Models\SchemaOrg\Map",
];
- $review = self::checkTypes($review, $types);
+ $hasMap = self::checkTypes($hasMap, $types);
- $this->review = $review;
+ $this->hasMap = $hasMap;
}
/**
- * @return string
+ * @return string|Number|null
*/
- public function getMaps()
+ public function getLatitude()
{
- return $this->maps;
+ return $this->latitude;
}
/**
- * @param string $maps
+ * @param string|Number|null $latitude
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaps($maps)
+ public function setLatitude($latitude)
{
$types = [
"string",
+ "Number",
+ "null",
];
- $maps = self::checkTypes($maps, $types);
+ $latitude = self::checkTypes($latitude, $types);
- $this->maps = $maps;
+ $this->latitude = $latitude;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getGeoContains()
+ public function getContainsPlace()
{
- return $this->geoContains;
+ return $this->containsPlace;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoContains
+ * @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 setGeoContains($geoContains)
+ public function setContainsPlace($containsPlace)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoContains = self::checkTypes($geoContains, $types);
+ $containsPlace = self::checkTypes($containsPlace, $types);
- $this->geoContains = $geoContains;
+ $this->containsPlace = $containsPlace;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
*/
- public function getMaximumAttendeeCapacity()
+ public function getGeoCovers()
{
- return $this->maximumAttendeeCapacity;
+ return $this->geoCovers;
}
/**
- * @param int|null $maximumAttendeeCapacity
+ * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCovers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumAttendeeCapacity($maximumAttendeeCapacity)
+ public function setGeoCovers($geoCovers)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "string",
];
- $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types);
+ $geoCovers = self::checkTypes($geoCovers, $types);
- $this->maximumAttendeeCapacity = $maximumAttendeeCapacity;
+ $this->geoCovers = $geoCovers;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getContainsPlace()
+ public function getGeoCoveredBy()
{
- return $this->containsPlace;
+ return $this->geoCoveredBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $containsPlace
+ * @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 setContainsPlace($containsPlace)
+ public function setGeoCoveredBy($geoCoveredBy)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $containsPlace = self::checkTypes($containsPlace, $types);
+ $geoCoveredBy = self::checkTypes($geoCoveredBy, $types);
- $this->containsPlace = $containsPlace;
+ $this->geoCoveredBy = $geoCoveredBy;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getSmokingAllowed()
+ public function getGeoCrosses()
{
- return $this->smokingAllowed;
+ return $this->geoCrosses;
}
/**
- * @param bool|null $smokingAllowed
+ * @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 setSmokingAllowed($smokingAllowed)
+ public function setGeoCrosses($geoCrosses)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
+ "string",
];
- $smokingAllowed = self::checkTypes($smokingAllowed, $types);
+ $geoCrosses = self::checkTypes($geoCrosses, $types);
- $this->smokingAllowed = $smokingAllowed;
+ $this->geoCrosses = $geoCrosses;
}
/**
- * @return string
+ * @return bool|null
*/
- public function getGlobalLocationNumber()
+ public function getSmokingAllowed()
{
- return $this->globalLocationNumber;
+ return $this->smokingAllowed;
}
/**
- * @param string $globalLocationNumber
+ * @param bool|null $smokingAllowed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGlobalLocationNumber($globalLocationNumber)
+ public function setSmokingAllowed($smokingAllowed)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $globalLocationNumber = self::checkTypes($globalLocationNumber, $types);
+ $smokingAllowed = self::checkTypes($smokingAllowed, $types);
- $this->globalLocationNumber = $globalLocationNumber;
+ $this->smokingAllowed = $smokingAllowed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
*/
- public function getKeywords()
+ public function getGeoTouches()
{
- return $this->keywords;
+ return $this->geoTouches;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords
+ * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoTouches
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setKeywords($keywords)
+ public function setGeoTouches($geoTouches)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $keywords = self::checkTypes($keywords, $types);
+ $geoTouches = self::checkTypes($geoTouches, $types);
- $this->keywords = $keywords;
+ $this->geoTouches = $geoTouches;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string
*/
- public function getGeoIntersects()
+ public function getPhoto()
{
- return $this->geoIntersects;
+ return $this->photo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoIntersects
+ * @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 setGeoIntersects($geoIntersects)
+ public function setPhoto($photo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Photograph",
+ "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
];
- $geoIntersects = self::checkTypes($geoIntersects, $types);
+ $photo = self::checkTypes($photo, $types);
- $this->geoIntersects = $geoIntersects;
+ $this->photo = $photo;
}
/**
- * @return string|Number|null
+ * @return string
*/
- public function getLatitude()
+ public function getBranchCode()
{
- return $this->latitude;
+ return $this->branchCode;
}
/**
- * @param string|Number|null $latitude
+ * @param string $branchCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLatitude($latitude)
+ public function setBranchCode($branchCode)
{
$types = [
"string",
- "Number",
- "null",
];
- $latitude = self::checkTypes($latitude, $types);
+ $branchCode = self::checkTypes($branchCode, $types);
- $this->latitude = $latitude;
+ $this->branchCode = $branchCode;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoTouches()
+ public function getGeoContains()
{
- return $this->geoTouches;
+ return $this->geoContains;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoTouches
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoContains
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoTouches($geoTouches)
+ public function setGeoContains($geoContains)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
@@ -726,337 +757,335 @@ public function setGeoTouches($geoTouches)
"string",
];
- $geoTouches = self::checkTypes($geoTouches, $types);
+ $geoContains = self::checkTypes($geoContains, $types);
- $this->geoTouches = $geoTouches;
+ $this->geoContains = $geoContains;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
+ * @return string
*/
- public function getGeoCoveredBy()
+ public function getTourBookingPage()
{
- return $this->geoCoveredBy;
+ return $this->tourBookingPage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoCoveredBy
+ * @param string $tourBookingPage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoCoveredBy($geoCoveredBy)
+ public function setTourBookingPage($tourBookingPage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoCoveredBy = self::checkTypes($geoCoveredBy, $types);
+ $tourBookingPage = self::checkTypes($tourBookingPage, $types);
- $this->geoCoveredBy = $geoCoveredBy;
+ $this->tourBookingPage = $tourBookingPage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @return string
*/
- public function getAggregateRating()
+ public function getIsicV4()
{
- return $this->aggregateRating;
+ return $this->isicV4;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating
+ * @param string $isicV4
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAggregateRating($aggregateRating)
+ public function setIsicV4($isicV4)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AggregateRating",
"string",
];
- $aggregateRating = self::checkTypes($aggregateRating, $types);
+ $isicV4 = self::checkTypes($isicV4, $types);
- $this->aggregateRating = $aggregateRating;
+ $this->isicV4 = $isicV4;
}
/**
- * @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 string
*/
- public function getGeoEquals()
+ public function getMaps()
{
- return $this->geoEquals;
+ return $this->maps;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoEquals
+ * @param string $maps
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoEquals($geoEquals)
+ public function setMaps($maps)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoEquals = self::checkTypes($geoEquals, $types);
+ $maps = self::checkTypes($maps, $types);
- $this->geoEquals = $geoEquals;
+ $this->maps = $maps;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getMap()
+ public function getKeywords()
{
- return $this->map;
+ return $this->keywords;
}
/**
- * @param string $map
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $keywords
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMap($map)
+ public function setKeywords($keywords)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $map = self::checkTypes($map, $types);
+ $keywords = self::checkTypes($keywords, $types);
- $this->map = $map;
+ $this->keywords = $keywords;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
- public function getPublicAccess()
+ public function getAddress()
{
- return $this->publicAccess;
+ return $this->address;
}
/**
- * @param bool|null $publicAccess
+ * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $address
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPublicAccess($publicAccess)
+ public function setAddress($address)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
+ "string",
];
- $publicAccess = self::checkTypes($publicAccess, $types);
+ $address = self::checkTypes($address, $types);
- $this->publicAccess = $publicAccess;
+ $this->address = $address;
}
/**
- * @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 getGeoOverlaps()
{
- return $this->geoCrosses;
+ return $this->geoOverlaps;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCrosses
+ * @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 setGeoCrosses($geoCrosses)
+ public function setGeoOverlaps($geoOverlaps)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoCrosses = self::checkTypes($geoCrosses, $types);
+ $geoOverlaps = self::checkTypes($geoOverlaps, $types);
- $this->geoCrosses = $geoCrosses;
+ $this->geoOverlaps = $geoOverlaps;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- public function getContainedInPlace()
+ public function getAggregateRating()
{
- return $this->containedInPlace;
+ return $this->aggregateRating;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $containedInPlace
+ * @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 setContainedInPlace($containedInPlace)
+ public function setAggregateRating($aggregateRating)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\AggregateRating",
"string",
];
- $containedInPlace = self::checkTypes($containedInPlace, $types);
+ $aggregateRating = self::checkTypes($aggregateRating, $types);
- $this->containedInPlace = $containedInPlace;
+ $this->aggregateRating = $aggregateRating;
}
/**
- * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
+ * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
*/
- public function getAmenityFeature()
+ public function getGeoIntersects()
{
- return $this->amenityFeature;
+ return $this->geoIntersects;
}
/**
- * @param \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string $amenityFeature
+ * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoIntersects
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAmenityFeature($amenityFeature)
+ public function setGeoIntersects($geoIntersects)
{
$types = [
- "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $amenityFeature = self::checkTypes($amenityFeature, $types);
+ $geoIntersects = self::checkTypes($geoIntersects, $types);
- $this->amenityFeature = $amenityFeature;
+ $this->geoIntersects = $geoIntersects;
}
/**
- * @return string
+ * @return int|null
*/
- public function getSlogan()
+ public function getMaximumAttendeeCapacity()
{
- return $this->slogan;
+ return $this->maximumAttendeeCapacity;
}
/**
- * @param string $slogan
+ * @param int|null $maximumAttendeeCapacity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSlogan($slogan)
+ public function setMaximumAttendeeCapacity($maximumAttendeeCapacity)
{
$types = [
- "string",
+ "int",
+ "null",
];
- $slogan = self::checkTypes($slogan, $types);
+ $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types);
- $this->slogan = $slogan;
+ $this->maximumAttendeeCapacity = $maximumAttendeeCapacity;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string
+ * @return bool|null
*/
- public function getPhotos()
+ public function getPublicAccess()
{
- return $this->photos;
+ return $this->publicAccess;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string $photos
+ * @param bool|null $publicAccess
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPhotos($photos)
+ public function setPublicAccess($publicAccess)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ImageObject",
- "\OpenActive\Models\SchemaOrg\Photograph",
- "string",
+ "bool",
+ "null",
];
- $photos = self::checkTypes($photos, $types);
+ $publicAccess = self::checkTypes($publicAccess, $types);
- $this->photos = $photos;
+ $this->publicAccess = $publicAccess;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- public function getGeoCovers()
+ public function getAdditionalProperty()
{
- return $this->geoCovers;
+ return $this->additionalProperty;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCovers
+ * @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 setGeoCovers($geoCovers)
+ public function setAdditionalProperty($additionalProperty)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
"string",
];
- $geoCovers = self::checkTypes($geoCovers, $types);
+ $additionalProperty = self::checkTypes($additionalProperty, $types);
- $this->geoCovers = $geoCovers;
+ $this->additionalProperty = $additionalProperty;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getContainedIn()
+ public function getGeoWithin()
{
- return $this->containedIn;
+ return $this->geoWithin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $containedIn
+ * @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 setContainedIn($containedIn)
+ public function setGeoWithin($geoWithin)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $containedIn = self::checkTypes($containedIn, $types);
+ $geoWithin = self::checkTypes($geoWithin, $types);
- $this->containedIn = $containedIn;
+ $this->geoWithin = $geoWithin;
}
/**
@@ -1085,480 +1114,451 @@ public function setHasDriveThroughService($hasDriveThroughService)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\ImageObject
+ * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
*/
- public function getLogo()
+ public function getOpeningHoursSpecification()
{
- return $this->logo;
+ return $this->openingHoursSpecification;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo
+ * @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 setLogo($logo)
+ public function setOpeningHoursSpecification($openingHoursSpecification)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification",
"string",
- "\OpenActive\Models\SchemaOrg\ImageObject",
- ];
-
- $logo = self::checkTypes($logo, $types);
-
- $this->logo = $logo;
- }
-
- /**
- * @return bool|null
- */
- public function getIsAccessibleForFree()
- {
- return $this->isAccessibleForFree;
- }
-
- /**
- * @param bool|null $isAccessibleForFree
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setIsAccessibleForFree($isAccessibleForFree)
- {
- $types = [
- "bool",
- "null",
];
- $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types);
+ $openingHoursSpecification = self::checkTypes($openingHoursSpecification, $types);
- $this->isAccessibleForFree = $isAccessibleForFree;
+ $this->openingHoursSpecification = $openingHoursSpecification;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
+ * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
*/
- public function getGeoWithin()
+ public function getSpecialOpeningHoursSpecification()
{
- return $this->geoWithin;
+ return $this->specialOpeningHoursSpecification;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoWithin
+ * @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 setGeoWithin($geoWithin)
+ public function setSpecialOpeningHoursSpecification($specialOpeningHoursSpecification)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
+ "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification",
"string",
];
- $geoWithin = self::checkTypes($geoWithin, $types);
+ $specialOpeningHoursSpecification = self::checkTypes($specialOpeningHoursSpecification, $types);
- $this->geoWithin = $geoWithin;
+ $this->specialOpeningHoursSpecification = $specialOpeningHoursSpecification;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getGeoDisjoint()
+ public function getEvent()
{
- return $this->geoDisjoint;
+ return $this->event;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoDisjoint
+ * @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 setGeoDisjoint($geoDisjoint)
+ public function setEvent($event)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $geoDisjoint = self::checkTypes($geoDisjoint, $types);
+ $event = self::checkTypes($event, $types);
- $this->geoDisjoint = $geoDisjoint;
+ $this->event = $event;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- public function getTourBookingPage()
+ public function getLogo()
{
- return $this->tourBookingPage;
+ return $this->logo;
}
/**
- * @param string $tourBookingPage
+ * @param \OpenActive\Models\SchemaOrg\ImageObject|string $logo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTourBookingPage($tourBookingPage)
+ public function setLogo($logo)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
];
- $tourBookingPage = self::checkTypes($tourBookingPage, $types);
+ $logo = self::checkTypes($logo, $types);
- $this->tourBookingPage = $tourBookingPage;
+ $this->logo = $logo;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getIsicV4()
+ public function getContainedInPlace()
{
- return $this->isicV4;
+ return $this->containedInPlace;
}
/**
- * @param string $isicV4
+ * @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 setIsicV4($isicV4)
+ public function setContainedInPlace($containedInPlace)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $isicV4 = self::checkTypes($isicV4, $types);
+ $containedInPlace = self::checkTypes($containedInPlace, $types);
- $this->isicV4 = $isicV4;
+ $this->containedInPlace = $containedInPlace;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
*/
- public function getGeoOverlaps()
+ public function getAmenityFeature()
{
- return $this->geoOverlaps;
+ return $this->amenityFeature;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoOverlaps
+ * @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 setGeoOverlaps($geoOverlaps)
+ public function setAmenityFeature($amenityFeature)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification",
"string",
];
- $geoOverlaps = self::checkTypes($geoOverlaps, $types);
+ $amenityFeature = self::checkTypes($amenityFeature, $types);
- $this->geoOverlaps = $geoOverlaps;
+ $this->amenityFeature = $amenityFeature;
}
/**
* @return string
*/
- public function getBranchCode()
+ public function getMap()
{
- return $this->branchCode;
+ return $this->map;
}
/**
- * @param string $branchCode
+ * @param string $map
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBranchCode($branchCode)
+ public function setMap($map)
{
$types = [
"string",
];
- $branchCode = self::checkTypes($branchCode, $types);
+ $map = self::checkTypes($map, $types);
- $this->branchCode = $branchCode;
+ $this->map = $map;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getAdditionalProperty()
+ public function getEvents()
{
- return $this->additionalProperty;
+ return $this->events;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty
+ * @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 setAdditionalProperty($additionalProperty)
+ public function setEvents($events)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $additionalProperty = self::checkTypes($additionalProperty, $types);
+ $events = self::checkTypes($events, $types);
- $this->additionalProperty = $additionalProperty;
+ $this->events = $events;
}
/**
- * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getOpeningHoursSpecification()
+ public function getGeoEquals()
{
- return $this->openingHoursSpecification;
+ return $this->geoEquals;
}
/**
- * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $openingHoursSpecification
+ * @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 setOpeningHoursSpecification($openingHoursSpecification)
+ public function setGeoEquals($geoEquals)
{
$types = [
- "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $openingHoursSpecification = self::checkTypes($openingHoursSpecification, $types);
+ $geoEquals = self::checkTypes($geoEquals, $types);
- $this->openingHoursSpecification = $openingHoursSpecification;
+ $this->geoEquals = $geoEquals;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return string
*/
- public function getReviews()
+ public function getFaxNumber()
{
- return $this->reviews;
+ return $this->faxNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $reviews
+ * @param string $faxNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReviews($reviews)
+ public function setFaxNumber($faxNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $reviews = self::checkTypes($reviews, $types);
+ $faxNumber = self::checkTypes($faxNumber, $types);
- $this->reviews = $reviews;
+ $this->faxNumber = $faxNumber;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string
+ * @return string
*/
- public function getPhoto()
+ public function getSlogan()
{
- return $this->photo;
+ return $this->slogan;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string $photo
+ * @param string $slogan
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPhoto($photo)
+ public function setSlogan($slogan)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Photograph",
- "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
];
- $photo = self::checkTypes($photo, $types);
+ $slogan = self::checkTypes($slogan, $types);
- $this->photo = $photo;
+ $this->slogan = $slogan;
}
/**
- * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
+ * @return string|Number|null
*/
- public function getSpecialOpeningHoursSpecification()
+ public function getLongitude()
{
- return $this->specialOpeningHoursSpecification;
+ return $this->longitude;
}
/**
- * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $specialOpeningHoursSpecification
+ * @param string|Number|null $longitude
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSpecialOpeningHoursSpecification($specialOpeningHoursSpecification)
+ public function setLongitude($longitude)
{
$types = [
- "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification",
"string",
+ "Number",
+ "null",
];
- $specialOpeningHoursSpecification = self::checkTypes($specialOpeningHoursSpecification, $types);
+ $longitude = self::checkTypes($longitude, $types);
- $this->specialOpeningHoursSpecification = $specialOpeningHoursSpecification;
+ $this->longitude = $longitude;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Map
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getHasMap()
+ public function getReviews()
{
- return $this->hasMap;
+ return $this->reviews;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Map $hasMap
+ * @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 setHasMap($hasMap)
+ public function setReviews($reviews)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
- "\OpenActive\Models\SchemaOrg\Map",
];
- $hasMap = self::checkTypes($hasMap, $types);
+ $reviews = self::checkTypes($reviews, $types);
- $this->hasMap = $hasMap;
+ $this->reviews = $reviews;
}
/**
- * @return string|Number|null
+ * @return string
*/
- public function getLongitude()
+ public function getGlobalLocationNumber()
{
- return $this->longitude;
+ return $this->globalLocationNumber;
}
/**
- * @param string|Number|null $longitude
+ * @param string $globalLocationNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLongitude($longitude)
+ public function setGlobalLocationNumber($globalLocationNumber)
{
$types = [
"string",
- "Number",
- "null",
];
- $longitude = self::checkTypes($longitude, $types);
+ $globalLocationNumber = self::checkTypes($globalLocationNumber, $types);
- $this->longitude = $longitude;
+ $this->globalLocationNumber = $globalLocationNumber;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string
+ * @return string
*/
- public function getGeo()
+ public function getTelephone()
{
- return $this->geo;
+ return $this->telephone;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string $geo
+ * @param string $telephone
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeo($geo)
+ public function setTelephone($telephone)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeoCoordinates",
- "\OpenActive\Models\SchemaOrg\GeoShape",
"string",
];
- $geo = self::checkTypes($geo, $types);
+ $telephone = self::checkTypes($telephone, $types);
- $this->geo = $geo;
+ $this->telephone = $telephone;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getEvents()
+ public function getReview()
{
- return $this->events;
+ return $this->review;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $events
+ * @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 setEvents($events)
+ public function setReview($review)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $events = self::checkTypes($events, $types);
+ $review = self::checkTypes($review, $types);
- $this->events = $events;
+ $this->review = $review;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getFaxNumber()
+ public function getContainedIn()
{
- return $this->faxNumber;
+ return $this->containedIn;
}
/**
- * @param string $faxNumber
+ * @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 setFaxNumber($faxNumber)
+ public function setContainedIn($containedIn)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $faxNumber = self::checkTypes($faxNumber, $types);
+ $containedIn = self::checkTypes($containedIn, $types);
- $this->faxNumber = $faxNumber;
+ $this->containedIn = $containedIn;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getEvent()
+ public function getGeoDisjoint()
{
- return $this->event;
+ return $this->geoDisjoint;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $event
+ * @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 setEvent($event)
+ public function setGeoDisjoint($geoDisjoint)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $event = self::checkTypes($event, $types);
+ $geoDisjoint = self::checkTypes($geoDisjoint, $types);
- $this->event = $event;
+ $this->geoDisjoint = $geoDisjoint;
}
}
diff --git a/src/Models/SchemaOrg/PlanAction.php b/src/Models/SchemaOrg/PlanAction.php
index e2590c54..f692e3ad 100644
--- a/src/Models/SchemaOrg/PlanAction.php
+++ b/src/Models/SchemaOrg/PlanAction.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* The time the object is scheduled to.
*
*
- * @var DateTime|null
+ * @var Date|DateTime|null
*/
protected $scheduledTime;
/**
- * @return DateTime|null
+ * @return Date|DateTime|null
*/
public function getScheduledTime()
{
@@ -40,13 +40,14 @@ public function getScheduledTime()
}
/**
- * @param DateTime|null $scheduledTime
+ * @param Date|DateTime|null $scheduledTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setScheduledTime($scheduledTime)
{
$types = [
+ "Date",
"DateTime",
"null",
];
diff --git a/src/Models/SchemaOrg/PlayAction.php b/src/Models/SchemaOrg/PlayAction.php
index 13454c63..f8455cf5 100644
--- a/src/Models/SchemaOrg/PlayAction.php
+++ b/src/Models/SchemaOrg/PlayAction.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "audience" => "audience",
"event" => "event",
+ "audience" => "audience",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * An intended audience, i.e. a group for whom something was created.
+ * Upcoming or past event associated with this place, organization, or action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Audience|string
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $audience;
+ protected $event;
/**
- * Upcoming or past event associated with this place, organization, or action.
+ * An intended audience, i.e. a group for whom something was created.
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var \OpenActive\Models\SchemaOrg\Audience|string
*/
- protected $event;
+ protected $audience;
/**
- * @return \OpenActive\Models\SchemaOrg\Audience|string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getAudience()
+ public function getEvent()
{
- return $this->audience;
+ return $this->event;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
+ * @param \OpenActive\Models\SchemaOrg\Event|string $event
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAudience($audience)
+ public function setEvent($event)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $audience = self::checkTypes($audience, $types);
+ $event = self::checkTypes($event, $types);
- $this->audience = $audience;
+ $this->event = $event;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return \OpenActive\Models\SchemaOrg\Audience|string
*/
- public function getEvent()
+ public function getAudience()
{
- return $this->event;
+ return $this->audience;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $event
+ * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEvent($event)
+ public function setAudience($audience)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\Audience",
"string",
];
- $event = self::checkTypes($event, $types);
+ $audience = self::checkTypes($audience, $types);
- $this->event = $event;
+ $this->audience = $audience;
}
}
diff --git a/src/Models/SchemaOrg/PodcastSeries.php b/src/Models/SchemaOrg/PodcastSeries.php
index 9f300e86..39296c4b 100644
--- a/src/Models/SchemaOrg/PodcastSeries.php
+++ b/src/Models/SchemaOrg/PodcastSeries.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "actor" => "actor",
"webFeed" => "webFeed",
+ "actor" => "actor",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * 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 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\Person|string
+ * @var \OpenActive\Models\SchemaOrg\DataFeed|string
*/
- protected $actor;
+ protected $webFeed;
/**
- * 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.
+ * 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\DataFeed|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $webFeed;
+ protected $actor;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\DataFeed|string
*/
- public function getActor()
+ public function getWebFeed()
{
- return $this->actor;
+ return $this->webFeed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @param \OpenActive\Models\SchemaOrg\DataFeed|string $webFeed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActor($actor)
+ public function setWebFeed($webFeed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\DataFeed",
"string",
];
- $actor = self::checkTypes($actor, $types);
+ $webFeed = self::checkTypes($webFeed, $types);
- $this->actor = $actor;
+ $this->webFeed = $webFeed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DataFeed|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getWebFeed()
+ public function getActor()
{
- return $this->webFeed;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DataFeed|string $webFeed
+ * @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 setWebFeed($webFeed)
+ public function setActor($actor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DataFeed",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $webFeed = self::checkTypes($webFeed, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->webFeed = $webFeed;
+ $this->actor = $actor;
}
}
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",
+ "addressRegion" => "addressRegion",
"streetAddress" => "streetAddress",
+ "addressLocality" => "addressLocality",
];
return array_merge(parent::fieldList(), $fields);
@@ -37,44 +37,44 @@ public static function fieldList() {
protected $addressCountry;
/**
- * The region in which the locality is, and which is in the country. For example, California or another appropriate first-level [Administrative division](https://en.wikipedia.org/wiki/List_of_administrative_divisions_by_country)
+ * The 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 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;
/**
- * The post office box number for PO box addresses.
+ * The street address. For example, 1600 Amphitheatre Pkwy.
*
*
* @var string
*/
- protected $postOfficeBoxNumber;
+ protected $streetAddress;
/**
- * The street address. For example, 1600 Amphitheatre Pkwy.
+ * The locality in which the street address is, and which is in the region. For example, Mountain View.
*
*
* @var string
*/
- protected $streetAddress;
+ protected $addressLocality;
/**
* @return \OpenActive\Models\SchemaOrg\Country|string
@@ -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 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;
}
/**
* @return string
*/
- public function getPostOfficeBoxNumber()
+ public function getStreetAddress()
{
- return $this->postOfficeBoxNumber;
+ return $this->streetAddress;
}
/**
- * @param string $postOfficeBoxNumber
+ * @param string $streetAddress
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostOfficeBoxNumber($postOfficeBoxNumber)
+ public function setStreetAddress($streetAddress)
{
$types = [
"string",
];
- $postOfficeBoxNumber = self::checkTypes($postOfficeBoxNumber, $types);
+ $streetAddress = self::checkTypes($streetAddress, $types);
- $this->postOfficeBoxNumber = $postOfficeBoxNumber;
+ $this->streetAddress = $streetAddress;
}
/**
* @return string
*/
- public function getStreetAddress()
+ public function getAddressLocality()
{
- return $this->streetAddress;
+ return $this->addressLocality;
}
/**
- * @param string $streetAddress
+ * @param string $addressLocality
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStreetAddress($streetAddress)
+ public function setAddressLocality($addressLocality)
{
$types = [
"string",
];
- $streetAddress = self::checkTypes($streetAddress, $types);
+ $addressLocality = self::checkTypes($addressLocality, $types);
- $this->streetAddress = $streetAddress;
+ $this->addressLocality = $addressLocality;
}
}
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..d770e926 100644
--- a/src/Models/SchemaOrg/PriceSpecification.php
+++ b/src/Models/SchemaOrg/PriceSpecification.php
@@ -17,67 +17,68 @@ public static function getType()
public static function fieldList() {
$fields = [
- "minPrice" => "minPrice",
- "eligibleQuantity" => "eligibleQuantity",
- "validFrom" => "validFrom",
- "maxPrice" => "maxPrice",
"priceCurrency" => "priceCurrency",
+ "validFrom" => "validFrom",
"valueAddedTaxIncluded" => "valueAddedTaxIncluded",
- "eligibleTransactionVolume" => "eligibleTransactionVolume",
"validThrough" => "validThrough",
+ "minPrice" => "minPrice",
"price" => "price",
+ "eligibleTransactionVolume" => "eligibleTransactionVolume",
+ "maxPrice" => "maxPrice",
+ "eligibleQuantity" => "eligibleQuantity",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The lowest price if the price is a range.
+ * 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 Number|null
+ * @var string
*/
- protected $minPrice;
+ protected $priceCurrency;
/**
- * 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 date when the item becomes valid.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var Date|DateTime|null
*/
- protected $eligibleQuantity;
+ protected $validFrom;
/**
- * 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.
+ * 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 $maxPrice;
+ protected $validThrough;
/**
- * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR".
+ * The lowest price if the price is a range.
*
*
- * @var string
+ * @var Number|null
*/
- protected $priceCurrency;
+ protected $minPrice;
/**
- * Specifies whether the applicable value-added tax (VAT) is included in the price specification or not.
+ * 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 bool|null
+ * @var string|Number|null
*/
- protected $valueAddedTaxIncluded;
+ protected $price;
/**
* The transaction volume, in a monetary unit, for which the offer or price specification is valid, e.g. for indicating a minimal purchasing volume, to express free shipping above a certain order volume, or to limit the acceptance of credit cards to purchases to a certain minimal amount.
@@ -88,170 +89,171 @@ public static function fieldList() {
protected $eligibleTransactionVolume;
/**
- * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
+ * The highest price if the price is a range.
*
*
- * @var Date|DateTime|null
+ * @var Number|null
*/
- protected $validThrough;
+ protected $maxPrice;
/**
- * 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 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 string|Number|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $price;
+ protected $eligibleQuantity;
/**
- * @return Number|null
+ * @return string
*/
- public function getMinPrice()
+ public function getPriceCurrency()
{
- return $this->minPrice;
+ return $this->priceCurrency;
}
/**
- * @param Number|null $minPrice
+ * @param string $priceCurrency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMinPrice($minPrice)
+ public function setPriceCurrency($priceCurrency)
{
$types = [
- "Number",
- "null",
+ "string",
];
- $minPrice = self::checkTypes($minPrice, $types);
+ $priceCurrency = self::checkTypes($priceCurrency, $types);
- $this->minPrice = $minPrice;
+ $this->priceCurrency = $priceCurrency;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return Date|DateTime|null
*/
- public function getEligibleQuantity()
+ public function getValidFrom()
{
- return $this->eligibleQuantity;
+ return $this->validFrom;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleQuantity
+ * @param Date|DateTime|null $validFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibleQuantity($eligibleQuantity)
+ public function setValidFrom($validFrom)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $eligibleQuantity = self::checkTypes($eligibleQuantity, $types);
+ $validFrom = self::checkTypes($validFrom, $types);
- $this->eligibleQuantity = $eligibleQuantity;
+ $this->validFrom = $validFrom;
}
/**
- * @return Date|DateTime|null
+ * @return bool|null
*/
- public function getValidFrom()
+ public function getValueAddedTaxIncluded()
{
- return $this->validFrom;
+ return $this->valueAddedTaxIncluded;
}
/**
- * @param Date|DateTime|null $validFrom
+ * @param bool|null $valueAddedTaxIncluded
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidFrom($validFrom)
+ public function setValueAddedTaxIncluded($valueAddedTaxIncluded)
{
$types = [
- "Date",
- "DateTime",
+ "bool",
"null",
];
- $validFrom = self::checkTypes($validFrom, $types);
+ $valueAddedTaxIncluded = self::checkTypes($valueAddedTaxIncluded, $types);
- $this->validFrom = $validFrom;
+ $this->valueAddedTaxIncluded = $valueAddedTaxIncluded;
}
/**
- * @return Number|null
+ * @return Date|DateTime|null
*/
- public function getMaxPrice()
+ public function getValidThrough()
{
- return $this->maxPrice;
+ return $this->validThrough;
}
/**
- * @param Number|null $maxPrice
+ * @param Date|DateTime|null $validThrough
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaxPrice($maxPrice)
+ public function setValidThrough($validThrough)
{
$types = [
- "Number",
+ "Date",
+ "DateTime",
"null",
];
- $maxPrice = self::checkTypes($maxPrice, $types);
+ $validThrough = self::checkTypes($validThrough, $types);
- $this->maxPrice = $maxPrice;
+ $this->validThrough = $validThrough;
}
/**
- * @return string
+ * @return Number|null
*/
- public function getPriceCurrency()
+ public function getMinPrice()
{
- return $this->priceCurrency;
+ return $this->minPrice;
}
/**
- * @param string $priceCurrency
+ * @param Number|null $minPrice
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPriceCurrency($priceCurrency)
+ public function setMinPrice($minPrice)
{
$types = [
- "string",
+ "Number",
+ "null",
];
- $priceCurrency = self::checkTypes($priceCurrency, $types);
+ $minPrice = self::checkTypes($minPrice, $types);
- $this->priceCurrency = $priceCurrency;
+ $this->minPrice = $minPrice;
}
/**
- * @return bool|null
+ * @return string|Number|null
*/
- public function getValueAddedTaxIncluded()
+ public function getPrice()
{
- return $this->valueAddedTaxIncluded;
+ return $this->price;
}
/**
- * @param bool|null $valueAddedTaxIncluded
+ * @param string|Number|null $price
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValueAddedTaxIncluded($valueAddedTaxIncluded)
+ public function setPrice($price)
{
$types = [
- "bool",
+ "string",
+ "Number",
"null",
];
- $valueAddedTaxIncluded = self::checkTypes($valueAddedTaxIncluded, $types);
+ $price = self::checkTypes($price, $types);
- $this->valueAddedTaxIncluded = $valueAddedTaxIncluded;
+ $this->price = $price;
}
/**
@@ -280,55 +282,53 @@ public function setEligibleTransactionVolume($eligibleTransactionVolume)
}
/**
- * @return Date|DateTime|null
+ * @return Number|null
*/
- public function getValidThrough()
+ public function getMaxPrice()
{
- return $this->validThrough;
+ return $this->maxPrice;
}
/**
- * @param Date|DateTime|null $validThrough
+ * @param Number|null $maxPrice
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidThrough($validThrough)
+ public function setMaxPrice($maxPrice)
{
$types = [
- "Date",
- "DateTime",
+ "Number",
"null",
];
- $validThrough = self::checkTypes($validThrough, $types);
+ $maxPrice = self::checkTypes($maxPrice, $types);
- $this->validThrough = $validThrough;
+ $this->maxPrice = $maxPrice;
}
/**
- * @return string|Number|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getPrice()
+ public function getEligibleQuantity()
{
- return $this->price;
+ return $this->eligibleQuantity;
}
/**
- * @param string|Number|null $price
+ * @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 setPrice($price)
+ public function setEligibleQuantity($eligibleQuantity)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "Number",
- "null",
];
- $price = self::checkTypes($price, $types);
+ $eligibleQuantity = self::checkTypes($eligibleQuantity, $types);
- $this->price = $price;
+ $this->eligibleQuantity = $eligibleQuantity;
}
}
diff --git a/src/Models/SchemaOrg/Product.php b/src/Models/SchemaOrg/Product.php
index 2d779e5b..b8483c74 100644
--- a/src/Models/SchemaOrg/Product.php
+++ b/src/Models/SchemaOrg/Product.php
@@ -17,69 +17,84 @@ public static function getType()
public static function fieldList() {
$fields = [
- "isAccessoryOrSparePartFor" => "isAccessoryOrSparePartFor",
- "hasAdultConsideration" => "hasAdultConsideration",
- "gtin12" => "gtin12",
- "nsn" => "nsn",
- "material" => "material",
- "review" => "review",
- "award" => "award",
- "width" => "width",
- "countryOfOrigin" => "countryOfOrigin",
- "pattern" => "pattern",
- "category" => "category",
- "funding" => "funding",
- "mpn" => "mpn",
- "height" => "height",
- "keywords" => "keywords",
+ "mobileUrl" => "mobileUrl",
"purchaseDate" => "purchaseDate",
- "hasEnergyConsumptionDetails" => "hasEnergyConsumptionDetails",
- "audience" => "audience",
+ "hasAdultConsideration" => "hasAdultConsideration",
"offers" => "offers",
- "productionDate" => "productionDate",
"itemCondition" => "itemCondition",
+ "color" => "color",
+ "gtin12" => "gtin12",
"awards" => "awards",
- "gtin" => "gtin",
- "productID" => "productID",
"countryOfAssembly" => "countryOfAssembly",
- "color" => "color",
+ "countryOfOrigin" => "countryOfOrigin",
+ "keywords" => "keywords",
+ "material" => "material",
+ "productID" => "productID",
"aggregateRating" => "aggregateRating",
- "isSimilarTo" => "isSimilarTo",
- "depth" => "depth",
- "countryOfLastProcessing" => "countryOfLastProcessing",
+ "positiveNotes" => "positiveNotes",
+ "category" => "category",
+ "releaseDate" => "releaseDate",
+ "sku" => "sku",
+ "productionDate" => "productionDate",
+ "gtin8" => "gtin8",
"isVariantOf" => "isVariantOf",
- "slogan" => "slogan",
- "brand" => "brand",
- "manufacturer" => "manufacturer",
- "hasMeasurement" => "hasMeasurement",
+ "depth" => "depth",
+ "award" => "award",
+ "additionalProperty" => "additionalProperty",
+ "height" => "height",
+ "weight" => "weight",
+ "gtin13" => "gtin13",
+ "isSimilarTo" => "isSimilarTo",
+ "asin" => "asin",
+ "isFamilyFriendly" => "isFamilyFriendly",
"isConsumableFor" => "isConsumableFor",
"logo" => "logo",
- "gtin8" => "gtin8",
- "sku" => "sku",
"inProductGroupWithID" => "inProductGroupWithID",
+ "manufacturer" => "manufacturer",
+ "gtin14" => "gtin14",
+ "isAccessoryOrSparePartFor" => "isAccessoryOrSparePartFor",
+ "isRelatedTo" => "isRelatedTo",
+ "funding" => "funding",
+ "slogan" => "slogan",
+ "audience" => "audience",
"model" => "model",
+ "width" => "width",
+ "hasMeasurement" => "hasMeasurement",
+ "reviews" => "reviews",
+ "pattern" => "pattern",
+ "brand" => "brand",
"hasMerchantReturnPolicy" => "hasMerchantReturnPolicy",
- "releaseDate" => "releaseDate",
- "gtin14" => "gtin14",
- "weight" => "weight",
+ "gtin" => "gtin",
+ "review" => "review",
+ "mpn" => "mpn",
+ "nsn" => "nsn",
+ "negativeNotes" => "negativeNotes",
+ "countryOfLastProcessing" => "countryOfLastProcessing",
+ "hasEnergyConsumptionDetails" => "hasEnergyConsumptionDetails",
"size" => "size",
- "additionalProperty" => "additionalProperty",
- "gtin13" => "gtin13",
- "reviews" => "reviews",
- "isFamilyFriendly" => "isFamilyFriendly",
- "isRelatedTo" => "isRelatedTo",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A pointer to another product (or multiple products) for which this product is an accessory or spare part.
+ * The [[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 \OpenActive\Models\SchemaOrg\Product|string
+ * @var string
*/
- protected $isAccessoryOrSparePartFor;
+ protected $mobileUrl;
+
+ /**
+ * The date the item, e.g. vehicle, was purchased by the current owner.
+ *
+ *
+ * @var Date|null
+ */
+ protected $purchaseDate;
/**
* Used to tag an item to be intended or suitable for consumption or use by adults only.
@@ -90,52 +105,53 @@ public static function fieldList() {
protected $hasAdultConsideration;
/**
- * The GTIN-12 code of the product, or the product to which the offer refers. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
+ * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
+ *
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $gtin12;
+ protected $offers;
/**
- * Indicates the [NATO stock number](https://en.wikipedia.org/wiki/NATO_Stock_Number) (nsn) of a [[Product]].
+ * 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 $nsn;
+ protected $itemCondition;
/**
- * A material that something is made from, e.g. leather, wool, cotton, paper.
+ * The color of the product.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Product
+ * @var string
*/
- protected $material;
+ protected $color;
/**
- * A review of the item.
+ * 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\Review|string
+ * @var string
*/
- protected $review;
+ protected $gtin12;
/**
- * An award won by or for this item.
+ * Awards won by or for this item.
*
*
* @var string
*/
- protected $award;
+ protected $awards;
/**
- * The width of the item.
+ * The place where the product was assembled.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
+ * @var string
*/
- protected $width;
+ protected $countryOfAssembly;
/**
* The country of origin of something, including products as well as creative works such as movie and TV content.
@@ -150,150 +166,145 @@ public static function fieldList() {
protected $countryOfOrigin;
/**
- * 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.
+ * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $pattern;
+ protected $keywords;
/**
- * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
+ * A material that something is made from, e.g. leather, wool, cotton, paper.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @var string|\OpenActive\Models\SchemaOrg\Product
*/
- protected $category;
+ protected $material;
/**
- * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
+ * The product identifier, such as ISBN. For example: ``` meta itemprop="productID" content="isbn:123-456-789" ```.
*
*
- * @var \OpenActive\Models\SchemaOrg\Grant|string
+ * @var string
*/
- protected $funding;
+ protected $productID;
/**
- * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.
+ * The overall rating, based on a collection of reviews or ratings, of the item.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- protected $mpn;
+ protected $aggregateRating;
/**
- * The height of the item.
+ * 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\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList
*/
- protected $height;
+ protected $positiveNotes;
/**
- * 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 category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
*/
- protected $keywords;
+ protected $category;
/**
- * The date the item e.g. vehicle was purchased by the current owner.
+ * The release date of a product or product model. This can be used to distinguish the exact variant of a product.
*
*
* @var Date|null
*/
- protected $purchaseDate;
+ protected $releaseDate;
/**
- * Defines the energy efficiency Category (also known as "class" or "rating") for a product according to an international energy efficiency standard.
+ * The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers.
*
*
- * @var \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string
+ * @var string
*/
- protected $hasEnergyConsumptionDetails;
+ protected $sku;
/**
- * An intended audience, i.e. a group for whom something was created.
+ * The date of production of the item, e.g. vehicle.
*
*
- * @var \OpenActive\Models\SchemaOrg\Audience|string
+ * @var Date|null
*/
- protected $audience;
+ protected $productionDate;
/**
- * 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 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\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var string
*/
- protected $offers;
+ protected $gtin8;
/**
- * The date of production of the item, e.g. vehicle.
+ * 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 Date|null
+ * @var \OpenActive\Models\SchemaOrg\ProductGroup|\OpenActive\Models\SchemaOrg\ProductModel|string
*/
- protected $productionDate;
+ protected $isVariantOf;
/**
- * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns.
+ * The depth of the item.
*
*
- * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
*/
- protected $itemCondition;
+ protected $depth;
/**
- * Awards won by or for this item.
+ * An award won by or for this item.
*
*
* @var string
*/
- protected $awards;
+ protected $award;
/**
- * A Global Trade Item Number ([GTIN](https://www.gs1.org/standards/id-keys/gtin)). GTINs identify trade items, including products and services, using numeric identification codes. The [[gtin]] property generalizes the earlier [[gtin8]], [[gtin12]], [[gtin13]], and [[gtin14]] properties. The GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) express GTINs as URLs. A correct [[gtin]] value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a "GS1 Digital Link" URL based on such a string. The numeric component should also have a [valid GS1 check digit](https://www.gs1.org/services/check-digit-calculator) and meet the other rules for valid GTINs. See also [GS1's GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) and [Wikipedia](https://en.wikipedia.org/wiki/Global_Trade_Item_Number) for more details. Left-padding of the gtin values is not required or encouraged.
- *
+ * A 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 $gtin;
+ protected $additionalProperty;
/**
- * The product identifier, such as ISBN. For example: ``` meta itemprop="productID" content="isbn:123-456-789" ```.
+ * The height of the item.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
*/
- protected $productID;
+ protected $height;
/**
- * The place where the product was assembled.
+ * The weight of the product or person.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $countryOfAssembly;
+ protected $weight;
/**
- * The color of the product.
+ * 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 $color;
-
- /**
- * The overall rating, based on a collection of reviews or ratings, of the item.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
- */
- protected $aggregateRating;
+ protected $gtin13;
/**
* A pointer to another, functionally similar product (or multiple products).
@@ -304,44 +315,47 @@ public static function fieldList() {
protected $isSimilarTo;
/**
- * The depth of the item.
+ * 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\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string
*/
- protected $depth;
+ protected $asin;
/**
- * The place where the item (typically [[Product]]) was last processed and tested before importation.
+ * Indicates whether this content is family friendly.
*
*
- * @var string
+ * @var bool|null
*/
- protected $countryOfLastProcessing;
+ protected $isFamilyFriendly;
/**
- * Indicates the kind of product that this is a variant of. In the case of [[ProductModel]], this is a pointer (from a ProductModel) to a base product from which this product is a variant. It is safe to infer that the variant inherits all product features from the base model, unless defined locally. This is not transitive. In the case of a [[ProductGroup]], the group description also serves as a template, representing a set of Products that vary on explicitly defined, specific dimensions only (so it defines both a set of variants, as well as which values distinguish amongst those variants). When used with [[ProductGroup]], this property can apply to any [[Product]] included in the group.
+ * A pointer to another product (or multiple products) for which this product is a consumable.
*
*
- * @var \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string
+ * @var \OpenActive\Models\SchemaOrg\Product|string
*/
- protected $isVariantOf;
+ protected $isConsumableFor;
/**
- * A slogan or motto associated with the item.
+ * An associated logo.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- protected $slogan;
+ protected $logo;
/**
- * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.
+ * Indicates the [[productGroupID]] for a [[ProductGroup]] that this product [[isVariantOf]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string
+ * @var string
*/
- protected $brand;
+ protected $inProductGroupWithID;
/**
* The manufacturer of the product.
@@ -352,61 +366,101 @@ public static function fieldList() {
protected $manufacturer;
/**
- * 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 GTIN-14 code of the product, or the product to which the offer refers. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string
*/
- protected $hasMeasurement;
+ protected $gtin14;
/**
- * A pointer to another product (or multiple products) for which this product is a consumable.
+ * 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 $isConsumableFor;
+ protected $isAccessoryOrSparePartFor;
/**
- * An associated logo.
+ * A pointer to another, somehow related product (or multiple products).
*
*
- * @var string|\OpenActive\Models\SchemaOrg\ImageObject
+ * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
*/
- protected $logo;
+ protected $isRelatedTo;
/**
- * 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 [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Grant|string
*/
- protected $gtin8;
+ protected $funding;
/**
- * 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 slogan or motto associated with the item.
*
*
* @var string
*/
- protected $sku;
+ protected $slogan;
/**
- * Indicates the [[productGroupID]] for a [[ProductGroup]] that this product [[isVariantOf]].
+ * An intended audience, i.e. a group for whom something was created.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Audience|string
*/
- protected $inProductGroupWithID;
+ protected $audience;
/**
* 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\ProductModel|string
+ * @var string|\OpenActive\Models\SchemaOrg\ProductModel
*/
protected $model;
+ /**
+ * The width of the item.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ protected $width;
+
+ /**
+ * 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.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ protected $hasMeasurement;
+
+ /**
+ * Review of the item.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Review|string
+ */
+ protected $reviews;
+
+ /**
+ * 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|\OpenActive\Models\SchemaOrg\DefinedTerm
+ */
+ protected $pattern;
+
+ /**
+ * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string
+ */
+ protected $brand;
+
/**
* Specifies a MerchantReturnPolicy that may be applicable.
*
@@ -416,126 +470,225 @@ 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 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 GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) express GTINs as URLs (URIs, IRIs, etc.). Details including regular expression examples can be found in, Section 6 of the GS1 URI Syntax specification; see also [schema.org tracking issue](https://github.com/schemaorg/schemaorg/issues/3156#issuecomment-1209522809) for schema.org-specific discussion. 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.
+ *
+ * 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 Date|null
+ * @var string
*/
- protected $releaseDate;
+ protected $gtin;
/**
- * The GTIN-14 code of the product, or the product to which the offer refers. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
+ * A review of the item.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $gtin14;
+ protected $review;
/**
- * The weight of the product or person.
+ * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string
*/
- protected $weight;
+ protected $mpn;
/**
- * 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.
+ * Indicates the [NATO stock number](https://en.wikipedia.org/wiki/NATO_Stock_Number) (nsn) of a [[Product]].
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification
+ * @var string
*/
- protected $size;
+ protected $nsn;
/**
- * 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.
+ * Provides negative considerations regarding something, most typically in pro/con lists for reviews (alongside [[positiveNotes]]). For symmetry
*
+ * In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. Since product descriptions
+ * tend to emphasise positive claims, it may be relatively unusual to find [[negativeNotes]] used in this way. Nevertheless for the sake of symmetry, [[negativeNotes]] can be used on [[Product]].
+ *
+ * The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most negative is at the beginning of the list).
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem
*/
- protected $additionalProperty;
+ protected $negativeNotes;
/**
- * The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
+ * The place where the item (typically [[Product]]) was last processed and tested before importation.
*
*
* @var string
*/
- protected $gtin13;
+ protected $countryOfLastProcessing;
/**
- * Review of the item.
+ * Defines the energy efficiency Category (also known as "class" or "rating") for a product according to an international energy efficiency standard.
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string
*/
- protected $reviews;
+ protected $hasEnergyConsumptionDetails;
/**
- * Indicates whether this content is family friendly.
+ * 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 bool|null
+ * @var string|\OpenActive\Models\SchemaOrg\SizeSpecification|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm
+ */
+ protected $size;
+
+ /**
+ * @return string
+ */
+ public function getMobileUrl()
+ {
+ return $this->mobileUrl;
+ }
+
+ /**
+ * @param string $mobileUrl
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMobileUrl($mobileUrl)
+ {
+ $types = [
+ "string",
+ ];
+
+ $mobileUrl = self::checkTypes($mobileUrl, $types);
+
+ $this->mobileUrl = $mobileUrl;
+ }
+
+ /**
+ * @return Date|null
+ */
+ public function getPurchaseDate()
+ {
+ return $this->purchaseDate;
+ }
+
+ /**
+ * @param Date|null $purchaseDate
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setPurchaseDate($purchaseDate)
+ {
+ $types = [
+ "Date",
+ "null",
+ ];
+
+ $purchaseDate = self::checkTypes($purchaseDate, $types);
+
+ $this->purchaseDate = $purchaseDate;
+ }
+
+ /**
+ * @return \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null
+ */
+ public function getHasAdultConsideration()
+ {
+ return $this->hasAdultConsideration;
+ }
+
+ /**
+ * @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 setHasAdultConsideration($hasAdultConsideration)
+ {
+ $types = [
+ "\OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration",
+ "null",
+ ];
+
+ $hasAdultConsideration = self::checkTypes($hasAdultConsideration, $types);
+
+ $this->hasAdultConsideration = $hasAdultConsideration;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $isFamilyFriendly;
+ public function getOffers()
+ {
+ return $this->offers;
+ }
/**
- * A pointer to another, somehow related product (or multiple products).
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
+ * @param \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string $offers
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- protected $isRelatedTo;
+ public function setOffers($offers)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\Offer",
+ "string",
+ ];
+
+ $offers = self::checkTypes($offers, $types);
+
+ $this->offers = $offers;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\Product|string
+ * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
*/
- public function getIsAccessoryOrSparePartFor()
+ public function getItemCondition()
{
- return $this->isAccessoryOrSparePartFor;
+ return $this->itemCondition;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Product|string $isAccessoryOrSparePartFor
+ * @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 setIsAccessoryOrSparePartFor($isAccessoryOrSparePartFor)
+ public function setItemCondition($itemCondition)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Product",
- "string",
+ "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
+ "null",
];
- $isAccessoryOrSparePartFor = self::checkTypes($isAccessoryOrSparePartFor, $types);
+ $itemCondition = self::checkTypes($itemCondition, $types);
- $this->isAccessoryOrSparePartFor = $isAccessoryOrSparePartFor;
+ $this->itemCondition = $itemCondition;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null
+ * @return string
*/
- public function getHasAdultConsideration()
+ public function getColor()
{
- return $this->hasAdultConsideration;
+ return $this->color;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null $hasAdultConsideration
+ * @param string $color
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasAdultConsideration($hasAdultConsideration)
+ public function setColor($color)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration",
- "null",
+ "string",
];
- $hasAdultConsideration = self::checkTypes($hasAdultConsideration, $types);
+ $color = self::checkTypes($color, $types);
- $this->hasAdultConsideration = $hasAdultConsideration;
+ $this->color = $color;
}
/**
@@ -565,1199 +718,1202 @@ public function setGtin12($gtin12)
/**
* @return string
*/
- public function getNsn()
+ public function getAwards()
{
- return $this->nsn;
+ return $this->awards;
}
/**
- * @param string $nsn
+ * @param string $awards
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNsn($nsn)
+ public function setAwards($awards)
{
$types = [
"string",
];
- $nsn = self::checkTypes($nsn, $types);
+ $awards = self::checkTypes($awards, $types);
- $this->nsn = $nsn;
+ $this->awards = $awards;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Product
+ * @return string
*/
- public function getMaterial()
+ public function getCountryOfAssembly()
{
- return $this->material;
+ return $this->countryOfAssembly;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Product $material
+ * @param string $countryOfAssembly
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaterial($material)
+ public function setCountryOfAssembly($countryOfAssembly)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Product",
];
- $material = self::checkTypes($material, $types);
+ $countryOfAssembly = self::checkTypes($countryOfAssembly, $types);
- $this->material = $material;
+ $this->countryOfAssembly = $countryOfAssembly;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return \OpenActive\Models\SchemaOrg\Country|string
*/
- public function getReview()
+ public function getCountryOfOrigin()
{
- return $this->review;
+ return $this->countryOfOrigin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $review
+ * @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 setReview($review)
+ public function setCountryOfOrigin($countryOfOrigin)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
+ "\OpenActive\Models\SchemaOrg\Country",
"string",
];
- $review = self::checkTypes($review, $types);
+ $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
- $this->review = $review;
+ $this->countryOfOrigin = $countryOfOrigin;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getAward()
+ public function getKeywords()
{
- return $this->award;
+ return $this->keywords;
}
/**
- * @param string $award
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $keywords
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAward($award)
+ public function setKeywords($keywords)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $award = self::checkTypes($award, $types);
+ $keywords = self::checkTypes($keywords, $types);
- $this->award = $award;
+ $this->keywords = $keywords;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
+ * @return string|\OpenActive\Models\SchemaOrg\Product
*/
- public function getWidth()
+ public function getMaterial()
{
- return $this->width;
+ return $this->material;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $width
+ * @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 setWidth($width)
+ public function setMaterial($material)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "\OpenActive\Models\SchemaOrg\Distance",
"string",
+ "\OpenActive\Models\SchemaOrg\Product",
];
- $width = self::checkTypes($width, $types);
+ $material = self::checkTypes($material, $types);
- $this->width = $width;
+ $this->material = $material;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return string
*/
- public function getCountryOfOrigin()
+ public function getProductID()
{
- return $this->countryOfOrigin;
+ return $this->productID;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin
+ * @param string $productID
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCountryOfOrigin($countryOfOrigin)
+ public function setProductID($productID)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
"string",
];
- $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
+ $productID = self::checkTypes($productID, $types);
- $this->countryOfOrigin = $countryOfOrigin;
+ $this->productID = $productID;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- public function getPattern()
+ public function getAggregateRating()
{
- return $this->pattern;
+ return $this->aggregateRating;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $pattern
+ * @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 setPattern($pattern)
+ public function setAggregateRating($aggregateRating)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\AggregateRating",
"string",
];
- $pattern = self::checkTypes($pattern, $types);
+ $aggregateRating = self::checkTypes($aggregateRating, $types);
- $this->pattern = $pattern;
+ $this->aggregateRating = $aggregateRating;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @return \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList
*/
- public function getCategory()
+ public function getPositiveNotes()
{
- return $this->category;
+ return $this->positiveNotes;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
+ * @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 setCategory($category)
+ public function setPositiveNotes($positiveNotes)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\WebContent",
"string",
- "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
- "\OpenActive\Models\SchemaOrg\Thing",
- "\OpenActive\Models\SchemaOrg\CategoryCode",
- "null",
+ "\OpenActive\Models\SchemaOrg\ListItem",
+ "\OpenActive\Models\SchemaOrg\ItemList",
];
- $category = self::checkTypes($category, $types);
+ $positiveNotes = self::checkTypes($positiveNotes, $types);
- $this->category = $category;
+ $this->positiveNotes = $positiveNotes;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Grant|string
+ * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
*/
- public function getFunding()
+ public function getCategory()
{
- return $this->funding;
+ return $this->category;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Grant|string $funding
+ * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFunding($funding)
+ public function setCategory($category)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Grant",
+ "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
"string",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
+ "null",
];
- $funding = self::checkTypes($funding, $types);
+ $category = self::checkTypes($category, $types);
- $this->funding = $funding;
+ $this->category = $category;
}
/**
- * @return string
+ * @return Date|null
*/
- public function getMpn()
+ public function getReleaseDate()
{
- return $this->mpn;
+ return $this->releaseDate;
}
/**
- * @param string $mpn
+ * @param Date|null $releaseDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMpn($mpn)
+ public function setReleaseDate($releaseDate)
{
$types = [
- "string",
+ "Date",
+ "null",
];
- $mpn = self::checkTypes($mpn, $types);
+ $releaseDate = self::checkTypes($releaseDate, $types);
- $this->mpn = $mpn;
+ $this->releaseDate = $releaseDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getHeight()
+ public function getSku()
{
- return $this->height;
+ return $this->sku;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height
+ * @param string $sku
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHeight($height)
+ public function setSku($sku)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Distance",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $height = self::checkTypes($height, $types);
+ $sku = self::checkTypes($sku, $types);
- $this->height = $height;
+ $this->sku = $sku;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return Date|null
*/
- public function getKeywords()
+ public function getProductionDate()
{
- return $this->keywords;
+ return $this->productionDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords
+ * @param Date|null $productionDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setKeywords($keywords)
+ public function setProductionDate($productionDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
- "string",
+ "Date",
+ "null",
];
- $keywords = self::checkTypes($keywords, $types);
+ $productionDate = self::checkTypes($productionDate, $types);
- $this->keywords = $keywords;
+ $this->productionDate = $productionDate;
}
/**
- * @return Date|null
+ * @return string
*/
- public function getPurchaseDate()
+ public function getGtin8()
{
- return $this->purchaseDate;
+ return $this->gtin8;
}
/**
- * @param Date|null $purchaseDate
+ * @param string $gtin8
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPurchaseDate($purchaseDate)
+ public function setGtin8($gtin8)
{
$types = [
- "Date",
- "null",
+ "string",
];
- $purchaseDate = self::checkTypes($purchaseDate, $types);
+ $gtin8 = self::checkTypes($gtin8, $types);
- $this->purchaseDate = $purchaseDate;
+ $this->gtin8 = $gtin8;
}
/**
- * @return \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string
+ * @return \OpenActive\Models\SchemaOrg\ProductGroup|\OpenActive\Models\SchemaOrg\ProductModel|string
*/
- public function getHasEnergyConsumptionDetails()
+ public function getIsVariantOf()
{
- return $this->hasEnergyConsumptionDetails;
+ return $this->isVariantOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string $hasEnergyConsumptionDetails
+ * @param \OpenActive\Models\SchemaOrg\ProductGroup|\OpenActive\Models\SchemaOrg\ProductModel|string $isVariantOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasEnergyConsumptionDetails($hasEnergyConsumptionDetails)
+ public function setIsVariantOf($isVariantOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EnergyConsumptionDetails",
+ "\OpenActive\Models\SchemaOrg\ProductGroup",
+ "\OpenActive\Models\SchemaOrg\ProductModel",
"string",
];
- $hasEnergyConsumptionDetails = self::checkTypes($hasEnergyConsumptionDetails, $types);
+ $isVariantOf = self::checkTypes($isVariantOf, $types);
- $this->hasEnergyConsumptionDetails = $hasEnergyConsumptionDetails;
+ $this->isVariantOf = $isVariantOf;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Audience|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
*/
- public function getAudience()
+ public function getDepth()
{
- return $this->audience;
+ return $this->depth;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $depth
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAudience($audience)
+ public function setDepth($depth)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Distance",
"string",
];
- $audience = self::checkTypes($audience, $types);
+ $depth = self::checkTypes($depth, $types);
- $this->audience = $audience;
+ $this->depth = $depth;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return string
*/
- public function getOffers()
+ public function getAward()
{
- return $this->offers;
+ return $this->award;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @param string $award
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOffers($offers)
+ public function setAward($award)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
"string",
];
- $offers = self::checkTypes($offers, $types);
+ $award = self::checkTypes($award, $types);
- $this->offers = $offers;
+ $this->award = $award;
}
/**
- * @return Date|null
+ * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- public function getProductionDate()
+ public function getAdditionalProperty()
{
- return $this->productionDate;
+ return $this->additionalProperty;
}
/**
- * @param Date|null $productionDate
+ * @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 setProductionDate($productionDate)
+ public function setAdditionalProperty($additionalProperty)
{
$types = [
- "Date",
- "null",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "string",
];
- $productionDate = self::checkTypes($productionDate, $types);
+ $additionalProperty = self::checkTypes($additionalProperty, $types);
- $this->productionDate = $productionDate;
+ $this->additionalProperty = $additionalProperty;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
*/
- public function getItemCondition()
+ public function getHeight()
{
- return $this->itemCondition;
+ return $this->height;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $height
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItemCondition($itemCondition)
+ public function setHeight($height)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
- "null",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Distance",
+ "string",
];
- $itemCondition = self::checkTypes($itemCondition, $types);
+ $height = self::checkTypes($height, $types);
- $this->itemCondition = $itemCondition;
+ $this->height = $height;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getAwards()
+ public function getWeight()
{
- return $this->awards;
+ return $this->weight;
}
/**
- * @param string $awards
+ * @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 setAwards($awards)
+ public function setWeight($weight)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $awards = self::checkTypes($awards, $types);
+ $weight = self::checkTypes($weight, $types);
- $this->awards = $awards;
+ $this->weight = $weight;
}
/**
* @return string
*/
- public function getGtin()
+ public function getGtin13()
{
- return $this->gtin;
+ return $this->gtin13;
}
/**
- * @param string $gtin
+ * @param string $gtin13
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGtin($gtin)
+ public function setGtin13($gtin13)
{
$types = [
"string",
];
- $gtin = self::checkTypes($gtin, $types);
+ $gtin13 = self::checkTypes($gtin13, $types);
- $this->gtin = $gtin;
+ $this->gtin13 = $gtin13;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
*/
- public function getProductID()
+ public function getIsSimilarTo()
{
- return $this->productID;
+ return $this->isSimilarTo;
}
/**
- * @param string $productID
+ * @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 setProductID($productID)
+ public function setIsSimilarTo($isSimilarTo)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Service",
+ "\OpenActive\Models\SchemaOrg\Product",
"string",
];
- $productID = self::checkTypes($productID, $types);
+ $isSimilarTo = self::checkTypes($isSimilarTo, $types);
- $this->productID = $productID;
+ $this->isSimilarTo = $isSimilarTo;
}
/**
* @return string
*/
- public function getCountryOfAssembly()
+ public function getAsin()
{
- return $this->countryOfAssembly;
+ return $this->asin;
}
/**
- * @param string $countryOfAssembly
+ * @param string $asin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCountryOfAssembly($countryOfAssembly)
+ public function setAsin($asin)
{
$types = [
"string",
];
- $countryOfAssembly = self::checkTypes($countryOfAssembly, $types);
+ $asin = self::checkTypes($asin, $types);
- $this->countryOfAssembly = $countryOfAssembly;
+ $this->asin = $asin;
}
/**
- * @return string
+ * @return bool|null
*/
- public function getColor()
+ public function getIsFamilyFriendly()
{
- return $this->color;
+ return $this->isFamilyFriendly;
}
/**
- * @param string $color
+ * @param bool|null $isFamilyFriendly
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setColor($color)
+ public function setIsFamilyFriendly($isFamilyFriendly)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $color = self::checkTypes($color, $types);
+ $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types);
- $this->color = $color;
+ $this->isFamilyFriendly = $isFamilyFriendly;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @return \OpenActive\Models\SchemaOrg\Product|string
*/
- public function getAggregateRating()
+ public function getIsConsumableFor()
{
- return $this->aggregateRating;
+ return $this->isConsumableFor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating
+ * @param \OpenActive\Models\SchemaOrg\Product|string $isConsumableFor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAggregateRating($aggregateRating)
+ public function setIsConsumableFor($isConsumableFor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AggregateRating",
+ "\OpenActive\Models\SchemaOrg\Product",
"string",
];
- $aggregateRating = self::checkTypes($aggregateRating, $types);
+ $isConsumableFor = self::checkTypes($isConsumableFor, $types);
- $this->aggregateRating = $aggregateRating;
+ $this->isConsumableFor = $isConsumableFor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
+ * @return \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- public function getIsSimilarTo()
+ public function getLogo()
{
- return $this->isSimilarTo;
+ return $this->logo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isSimilarTo
+ * @param \OpenActive\Models\SchemaOrg\ImageObject|string $logo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsSimilarTo($isSimilarTo)
+ public function setLogo($logo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Service",
- "\OpenActive\Models\SchemaOrg\Product",
+ "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
];
- $isSimilarTo = self::checkTypes($isSimilarTo, $types);
+ $logo = self::checkTypes($logo, $types);
- $this->isSimilarTo = $isSimilarTo;
+ $this->logo = $logo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getDepth()
+ public function getInProductGroupWithID()
{
- return $this->depth;
+ return $this->inProductGroupWithID;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $depth
+ * @param string $inProductGroupWithID
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDepth($depth)
+ public function setInProductGroupWithID($inProductGroupWithID)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Distance",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $depth = self::checkTypes($depth, $types);
+ $inProductGroupWithID = self::checkTypes($inProductGroupWithID, $types);
- $this->depth = $depth;
+ $this->inProductGroupWithID = $inProductGroupWithID;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getCountryOfLastProcessing()
+ public function getManufacturer()
{
- return $this->countryOfLastProcessing;
+ return $this->manufacturer;
}
/**
- * @param string $countryOfLastProcessing
+ * @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 setCountryOfLastProcessing($countryOfLastProcessing)
+ public function setManufacturer($manufacturer)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $countryOfLastProcessing = self::checkTypes($countryOfLastProcessing, $types);
+ $manufacturer = self::checkTypes($manufacturer, $types);
- $this->countryOfLastProcessing = $countryOfLastProcessing;
+ $this->manufacturer = $manufacturer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string
+ * @return string
*/
- public function getIsVariantOf()
+ public function getGtin14()
{
- return $this->isVariantOf;
+ return $this->gtin14;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string $isVariantOf
+ * @param string $gtin14
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsVariantOf($isVariantOf)
+ public function setGtin14($gtin14)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ProductModel",
- "\OpenActive\Models\SchemaOrg\ProductGroup",
"string",
];
- $isVariantOf = self::checkTypes($isVariantOf, $types);
+ $gtin14 = self::checkTypes($gtin14, $types);
- $this->isVariantOf = $isVariantOf;
+ $this->gtin14 = $gtin14;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Product|string
*/
- public function getSlogan()
+ public function getIsAccessoryOrSparePartFor()
{
- return $this->slogan;
+ return $this->isAccessoryOrSparePartFor;
}
/**
- * @param string $slogan
+ * @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 setSlogan($slogan)
+ public function setIsAccessoryOrSparePartFor($isAccessoryOrSparePartFor)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Product",
"string",
];
- $slogan = self::checkTypes($slogan, $types);
+ $isAccessoryOrSparePartFor = self::checkTypes($isAccessoryOrSparePartFor, $types);
- $this->slogan = $slogan;
+ $this->isAccessoryOrSparePartFor = $isAccessoryOrSparePartFor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string
+ * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
*/
- public function getBrand()
+ public function getIsRelatedTo()
{
- return $this->brand;
+ return $this->isRelatedTo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand
+ * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isRelatedTo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBrand($brand)
+ public function setIsRelatedTo($isRelatedTo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Brand",
+ "\OpenActive\Models\SchemaOrg\Service",
+ "\OpenActive\Models\SchemaOrg\Product",
"string",
];
- $brand = self::checkTypes($brand, $types);
+ $isRelatedTo = self::checkTypes($isRelatedTo, $types);
- $this->brand = $brand;
+ $this->isRelatedTo = $isRelatedTo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Grant|string
*/
- public function getManufacturer()
+ public function getFunding()
{
- return $this->manufacturer;
+ return $this->funding;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer
+ * @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 setManufacturer($manufacturer)
+ public function setFunding($funding)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Grant",
"string",
];
- $manufacturer = self::checkTypes($manufacturer, $types);
+ $funding = self::checkTypes($funding, $types);
- $this->manufacturer = $manufacturer;
+ $this->funding = $funding;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getHasMeasurement()
+ public function getSlogan()
{
- return $this->hasMeasurement;
+ return $this->slogan;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $hasMeasurement
+ * @param string $slogan
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMeasurement($hasMeasurement)
+ public function setSlogan($slogan)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $hasMeasurement = self::checkTypes($hasMeasurement, $types);
+ $slogan = self::checkTypes($slogan, $types);
- $this->hasMeasurement = $hasMeasurement;
+ $this->slogan = $slogan;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Product|string
+ * @return \OpenActive\Models\SchemaOrg\Audience|string
*/
- public function getIsConsumableFor()
+ public function getAudience()
{
- return $this->isConsumableFor;
+ return $this->audience;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Product|string $isConsumableFor
+ * @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 setIsConsumableFor($isConsumableFor)
+ public function setAudience($audience)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Product",
+ "\OpenActive\Models\SchemaOrg\Audience",
"string",
];
- $isConsumableFor = self::checkTypes($isConsumableFor, $types);
+ $audience = self::checkTypes($audience, $types);
- $this->isConsumableFor = $isConsumableFor;
+ $this->audience = $audience;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\ImageObject
+ * @return string|\OpenActive\Models\SchemaOrg\ProductModel
*/
- public function getLogo()
+ public function getModel()
{
- return $this->logo;
+ return $this->model;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo
+ * @param string|\OpenActive\Models\SchemaOrg\ProductModel $model
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLogo($logo)
+ public function setModel($model)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\ImageObject",
+ "\OpenActive\Models\SchemaOrg\ProductModel",
];
- $logo = self::checkTypes($logo, $types);
+ $model = self::checkTypes($model, $types);
- $this->logo = $logo;
+ $this->model = $model;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getGtin8()
+ public function getWidth()
{
- return $this->gtin8;
+ return $this->width;
}
/**
- * @param string $gtin8
+ * @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 setGtin8($gtin8)
+ public function setWidth($width)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Distance",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $gtin8 = self::checkTypes($gtin8, $types);
+ $width = self::checkTypes($width, $types);
- $this->gtin8 = $gtin8;
+ $this->width = $width;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getSku()
+ public function getHasMeasurement()
{
- return $this->sku;
+ return $this->hasMeasurement;
}
/**
- * @param string $sku
+ * @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 setSku($sku)
+ public function setHasMeasurement($hasMeasurement)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $sku = self::checkTypes($sku, $types);
+ $hasMeasurement = self::checkTypes($hasMeasurement, $types);
- $this->sku = $sku;
+ $this->hasMeasurement = $hasMeasurement;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getInProductGroupWithID()
+ public function getReviews()
{
- return $this->inProductGroupWithID;
+ return $this->reviews;
}
/**
- * @param string $inProductGroupWithID
+ * @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 setInProductGroupWithID($inProductGroupWithID)
+ public function setReviews($reviews)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $inProductGroupWithID = self::checkTypes($inProductGroupWithID, $types);
+ $reviews = self::checkTypes($reviews, $types);
- $this->inProductGroupWithID = $inProductGroupWithID;
+ $this->reviews = $reviews;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ProductModel|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getModel()
+ public function getPattern()
{
- return $this->model;
+ return $this->pattern;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ProductModel|string $model
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $pattern
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setModel($model)
+ public function setPattern($pattern)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ProductModel",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $model = self::checkTypes($model, $types);
+ $pattern = self::checkTypes($pattern, $types);
- $this->model = $model;
+ $this->pattern = $pattern;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string
+ * @return \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getHasMerchantReturnPolicy()
+ public function getBrand()
{
- return $this->hasMerchantReturnPolicy;
+ return $this->brand;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy
+ * @param \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string $brand
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy)
+ public function setBrand($brand)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy",
+ "\OpenActive\Models\SchemaOrg\Brand",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types);
+ $brand = self::checkTypes($brand, $types);
- $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy;
+ $this->brand = $brand;
}
/**
- * @return Date|null
+ * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string
*/
- public function getReleaseDate()
+ public function getHasMerchantReturnPolicy()
{
- return $this->releaseDate;
+ return $this->hasMerchantReturnPolicy;
}
/**
- * @param Date|null $releaseDate
+ * @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 setReleaseDate($releaseDate)
+ public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy)
{
$types = [
- "Date",
- "null",
+ "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy",
+ "string",
];
- $releaseDate = self::checkTypes($releaseDate, $types);
+ $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types);
- $this->releaseDate = $releaseDate;
+ $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy;
}
/**
* @return string
*/
- public function getGtin14()
+ public function getGtin()
{
- return $this->gtin14;
+ return $this->gtin;
}
/**
- * @param string $gtin14
+ * @param string $gtin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGtin14($gtin14)
+ public function setGtin($gtin)
{
$types = [
"string",
];
- $gtin14 = self::checkTypes($gtin14, $types);
+ $gtin = self::checkTypes($gtin, $types);
- $this->gtin14 = $gtin14;
+ $this->gtin = $gtin;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getWeight()
+ public function getReview()
{
- return $this->weight;
+ return $this->review;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight
+ * @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 setWeight($weight)
+ public function setReview($review)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $weight = self::checkTypes($weight, $types);
+ $review = self::checkTypes($review, $types);
- $this->weight = $weight;
+ $this->review = $review;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification
+ * @return string
*/
- public function getSize()
+ public function getMpn()
{
- return $this->size;
+ return $this->mpn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification $size
+ * @param string $mpn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSize($size)
+ public function setMpn($mpn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
- "\OpenActive\Models\SchemaOrg\SizeSpecification",
];
- $size = self::checkTypes($size, $types);
+ $mpn = self::checkTypes($mpn, $types);
- $this->size = $size;
+ $this->mpn = $mpn;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @return string
*/
- public function getAdditionalProperty()
+ public function getNsn()
{
- return $this->additionalProperty;
+ return $this->nsn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty
+ * @param string $nsn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdditionalProperty($additionalProperty)
+ public function setNsn($nsn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
"string",
];
- $additionalProperty = self::checkTypes($additionalProperty, $types);
+ $nsn = self::checkTypes($nsn, $types);
- $this->additionalProperty = $additionalProperty;
+ $this->nsn = $nsn;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem
*/
- public function getGtin13()
+ public function getNegativeNotes()
{
- return $this->gtin13;
+ return $this->negativeNotes;
}
/**
- * @param string $gtin13
+ * @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 setGtin13($gtin13)
+ public function setNegativeNotes($negativeNotes)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ItemList",
+ "\OpenActive\Models\SchemaOrg\WebContent",
"string",
+ "\OpenActive\Models\SchemaOrg\ListItem",
];
- $gtin13 = self::checkTypes($gtin13, $types);
+ $negativeNotes = self::checkTypes($negativeNotes, $types);
- $this->gtin13 = $gtin13;
+ $this->negativeNotes = $negativeNotes;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return string
*/
- public function getReviews()
+ public function getCountryOfLastProcessing()
{
- return $this->reviews;
+ return $this->countryOfLastProcessing;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $reviews
+ * @param string $countryOfLastProcessing
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReviews($reviews)
+ public function setCountryOfLastProcessing($countryOfLastProcessing)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $reviews = self::checkTypes($reviews, $types);
+ $countryOfLastProcessing = self::checkTypes($countryOfLastProcessing, $types);
- $this->reviews = $reviews;
+ $this->countryOfLastProcessing = $countryOfLastProcessing;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string
*/
- public function getIsFamilyFriendly()
+ public function getHasEnergyConsumptionDetails()
{
- return $this->isFamilyFriendly;
+ return $this->hasEnergyConsumptionDetails;
}
/**
- * @param bool|null $isFamilyFriendly
+ * @param \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string $hasEnergyConsumptionDetails
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsFamilyFriendly($isFamilyFriendly)
+ public function setHasEnergyConsumptionDetails($hasEnergyConsumptionDetails)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\EnergyConsumptionDetails",
+ "string",
];
- $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types);
+ $hasEnergyConsumptionDetails = self::checkTypes($hasEnergyConsumptionDetails, $types);
- $this->isFamilyFriendly = $isFamilyFriendly;
+ $this->hasEnergyConsumptionDetails = $hasEnergyConsumptionDetails;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
+ * @return string|\OpenActive\Models\SchemaOrg\SizeSpecification|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getIsRelatedTo()
+ public function getSize()
{
- return $this->isRelatedTo;
+ return $this->size;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isRelatedTo
+ * @param string|\OpenActive\Models\SchemaOrg\SizeSpecification|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm $size
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsRelatedTo($isRelatedTo)
+ public function setSize($size)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Service",
- "\OpenActive\Models\SchemaOrg\Product",
"string",
+ "\OpenActive\Models\SchemaOrg\SizeSpecification",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $isRelatedTo = self::checkTypes($isRelatedTo, $types);
+ $size = self::checkTypes($size, $types);
- $this->isRelatedTo = $isRelatedTo;
+ $this->size = $size;
}
}
diff --git a/src/Models/SchemaOrg/ProductCollection.php b/src/Models/SchemaOrg/ProductCollection.php
index e842cc57..43e06033 100644
--- a/src/Models/SchemaOrg/ProductCollection.php
+++ b/src/Models/SchemaOrg/ProductCollection.php
@@ -5,7 +5,7 @@
/**
*
*/
-class ProductCollection extends \OpenActive\Models\SchemaOrg\Product
+class ProductCollection extends \OpenActive\Models\SchemaOrg\Collection
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/ProductGroup.php b/src/Models/SchemaOrg/ProductGroup.php
index a33132b4..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..a6a92577 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,81 +26,81 @@ 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.
*
*
- * @var \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string
+ * @var \OpenActive\Models\SchemaOrg\ProductGroup|\OpenActive\Models\SchemaOrg\ProductModel|string
*/
protected $isVariantOf;
/**
* @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;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string
+ * @return \OpenActive\Models\SchemaOrg\ProductGroup|\OpenActive\Models\SchemaOrg\ProductModel|string
*/
public function getIsVariantOf()
{
@@ -108,15 +108,15 @@ public function getIsVariantOf()
}
/**
- * @param \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string $isVariantOf
+ * @param \OpenActive\Models\SchemaOrg\ProductGroup|\OpenActive\Models\SchemaOrg\ProductModel|string $isVariantOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setIsVariantOf($isVariantOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ProductModel",
"\OpenActive\Models\SchemaOrg\ProductGroup",
+ "\OpenActive\Models\SchemaOrg\ProductModel",
"string",
];
diff --git a/src/Models/SchemaOrg/ProgramMembership.php b/src/Models/SchemaOrg/ProgramMembership.php
index c73bd560..8aa85201 100644
--- a/src/Models/SchemaOrg/ProgramMembership.php
+++ b/src/Models/SchemaOrg/ProgramMembership.php
@@ -17,40 +17,32 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "programName" => "programName",
"membershipPointsEarned" => "membershipPointsEarned",
- "member" => "member",
- "membershipNumber" => "membershipNumber",
"hostingOrganization" => "hostingOrganization",
- "programName" => "programName",
+ "membershipNumber" => "membershipNumber",
"members" => "members",
+ "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.)
- *
- *
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
- */
- protected $membershipPointsEarned;
-
- /**
- * A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.
+ * The program providing the membership.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $member;
+ protected $programName;
/**
- * A unique identifier for the membership.
+ * 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 string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- protected $membershipNumber;
+ protected $membershipPointsEarned;
/**
* The organization (airline, travelers' club, etc.) the membership is made with.
@@ -61,12 +53,12 @@ public static function fieldList() {
protected $hostingOrganization;
/**
- * The program providing the membership.
+ * A unique identifier for the membership.
*
*
* @var string
*/
- protected $programName;
+ protected $membershipNumber;
/**
* A member of this organization.
@@ -77,80 +69,62 @@ public static function fieldList() {
protected $members;
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
- */
- public function getMembershipPointsEarned()
- {
- return $this->membershipPointsEarned;
- }
-
- /**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $membershipPointsEarned
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function setMembershipPointsEarned($membershipPointsEarned)
- {
- $types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
- "null",
- ];
-
- $membershipPointsEarned = self::checkTypes($membershipPointsEarned, $types);
-
- $this->membershipPointsEarned = $membershipPointsEarned;
- }
+ protected $member;
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getMember()
+ public function getProgramName()
{
- return $this->member;
+ return $this->programName;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $member
+ * @param string $programName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMember($member)
+ public function setProgramName($programName)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $member = self::checkTypes($member, $types);
+ $programName = self::checkTypes($programName, $types);
- $this->member = $member;
+ $this->programName = $programName;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function getMembershipNumber()
+ public function getMembershipPointsEarned()
{
- return $this->membershipNumber;
+ return $this->membershipPointsEarned;
}
/**
- * @param string $membershipNumber
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $membershipPointsEarned
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMembershipNumber($membershipNumber)
+ public function setMembershipPointsEarned($membershipPointsEarned)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "Number",
+ "null",
];
- $membershipNumber = self::checkTypes($membershipNumber, $types);
+ $membershipPointsEarned = self::checkTypes($membershipPointsEarned, $types);
- $this->membershipNumber = $membershipNumber;
+ $this->membershipPointsEarned = $membershipPointsEarned;
}
/**
@@ -181,25 +155,25 @@ public function setHostingOrganization($hostingOrganization)
/**
* @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;
}
/**
@@ -228,4 +202,30 @@ public function setMembers($members)
$this->members = $members;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ */
+ public function getMember()
+ {
+ return $this->member;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $member
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMember($member)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
+ ];
+
+ $member = self::checkTypes($member, $types);
+
+ $this->member = $member;
+ }
+
}
diff --git a/src/Models/SchemaOrg/PronounceableText.php b/src/Models/SchemaOrg/PronounceableText.php
index 15e10a48..6cf05cdf 100644
--- a/src/Models/SchemaOrg/PronounceableText.php
+++ b/src/Models/SchemaOrg/PronounceableText.php
@@ -17,142 +17,142 @@ public static function getType()
public static function fieldList() {
$fields = [
- "phoneticText" => "phoneticText",
- "speechToTextMarkup" => "speechToTextMarkup",
"textValue" => "textValue",
"inLanguage" => "inLanguage",
+ "phoneticText" => "phoneticText",
+ "speechToTextMarkup" => "speechToTextMarkup",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Representation of a text [[textValue]] using the specified [[speechToTextMarkup]]. For example the city name of Houston in IPA: /ˈhjuːstən/.
+ * Text value being annotated.
*
*
* @var string
*/
- protected $phoneticText;
+ protected $textValue;
/**
- * Form of markup used. eg. [SSML](https://www.w3.org/TR/speech-synthesis11) or [IPA](https://www.wikidata.org/wiki/Property:P898).
+ * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $speechToTextMarkup;
+ protected $inLanguage;
/**
- * Text value being annotated.
+ * Representation of a text [[textValue]] using the specified [[speechToTextMarkup]]. For example the city name of Houston in IPA: /ˈhjuːstən/.
*
*
* @var string
*/
- protected $textValue;
+ protected $phoneticText;
/**
- * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].
+ * Form of markup used. eg. [SSML](https://www.w3.org/TR/speech-synthesis11) or [IPA](https://www.wikidata.org/wiki/Property:P898).
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var string
*/
- protected $inLanguage;
+ protected $speechToTextMarkup;
/**
* @return string
*/
- public function getPhoneticText()
+ public function getTextValue()
{
- return $this->phoneticText;
+ return $this->textValue;
}
/**
- * @param string $phoneticText
+ * @param string $textValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPhoneticText($phoneticText)
+ public function setTextValue($textValue)
{
$types = [
"string",
];
- $phoneticText = self::checkTypes($phoneticText, $types);
+ $textValue = self::checkTypes($textValue, $types);
- $this->phoneticText = $phoneticText;
+ $this->textValue = $textValue;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getSpeechToTextMarkup()
+ public function getInLanguage()
{
- return $this->speechToTextMarkup;
+ return $this->inLanguage;
}
/**
- * @param string $speechToTextMarkup
+ * @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 setSpeechToTextMarkup($speechToTextMarkup)
+ public function setInLanguage($inLanguage)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $speechToTextMarkup = self::checkTypes($speechToTextMarkup, $types);
+ $inLanguage = self::checkTypes($inLanguage, $types);
- $this->speechToTextMarkup = $speechToTextMarkup;
+ $this->inLanguage = $inLanguage;
}
/**
* @return string
*/
- public function getTextValue()
+ public function getPhoneticText()
{
- return $this->textValue;
+ return $this->phoneticText;
}
/**
- * @param string $textValue
+ * @param string $phoneticText
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTextValue($textValue)
+ public function setPhoneticText($phoneticText)
{
$types = [
"string",
];
- $textValue = self::checkTypes($textValue, $types);
+ $phoneticText = self::checkTypes($phoneticText, $types);
- $this->textValue = $textValue;
+ $this->phoneticText = $phoneticText;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return string
*/
- public function getInLanguage()
+ public function getSpeechToTextMarkup()
{
- return $this->inLanguage;
+ return $this->speechToTextMarkup;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
+ * @param string $speechToTextMarkup
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInLanguage($inLanguage)
+ public function setSpeechToTextMarkup($speechToTextMarkup)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Language",
];
- $inLanguage = self::checkTypes($inLanguage, $types);
+ $speechToTextMarkup = self::checkTypes($speechToTextMarkup, $types);
- $this->inLanguage = $inLanguage;
+ $this->speechToTextMarkup = $speechToTextMarkup;
}
}
diff --git a/src/Models/SchemaOrg/Property.php b/src/Models/SchemaOrg/Property.php
index bdc35f9f..d07fb6a8 100644
--- a/src/Models/SchemaOrg/Property.php
+++ b/src/Models/SchemaOrg/Property.php
@@ -17,9 +17,9 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "rangeIncludes" => "rangeIncludes",
"domainIncludes" => "domainIncludes",
"supersededBy" => "supersededBy",
- "rangeIncludes" => "rangeIncludes",
"inverseOf" => "inverseOf",
];
@@ -27,28 +27,28 @@ public static function fieldList() {
}
/**
- * Relates a property to a class that is (one of) the type(s) the property is expected to be used on.
+ * Relates a property to a class that constitutes (one of) the expected type(s) for values of the property.
*
*
* @var \OpenActive\Models\SchemaOrg\Class|string
*/
- protected $domainIncludes;
+ protected $rangeIncludes;
/**
- * Relates a term (i.e. a property, class or enumeration) to one that supersedes it.
+ * 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\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\Class|string
*/
- protected $supersededBy;
+ protected $domainIncludes;
/**
- * Relates a property to a class that constitutes (one of) the expected type(s) for values of the property.
+ * Relates a term (i.e. a property, class or enumeration) to one that supersedes it.
*
*
- * @var \OpenActive\Models\SchemaOrg\Class|string
+ * @var \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|null
*/
- protected $rangeIncludes;
+ protected $supersededBy;
/**
* Relates a property to a property that is its inverse. Inverse properties relate the same pairs of items to each other, but in reversed direction. For example, the 'alumni' and 'alumniOf' properties are inverseOf each other. Some properties don't have explicit inverses; in these situations RDFa and JSON-LD syntax for reverse properties can be used.
@@ -61,79 +61,79 @@ public static function fieldList() {
/**
* @return \OpenActive\Models\SchemaOrg\Class|string
*/
- public function getDomainIncludes()
+ public function getRangeIncludes()
{
- return $this->domainIncludes;
+ return $this->rangeIncludes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Class|string $domainIncludes
+ * @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 setDomainIncludes($domainIncludes)
+ public function setRangeIncludes($rangeIncludes)
{
$types = [
"\OpenActive\Models\SchemaOrg\Class",
"string",
];
- $domainIncludes = self::checkTypes($domainIncludes, $types);
+ $rangeIncludes = self::checkTypes($rangeIncludes, $types);
- $this->domainIncludes = $domainIncludes;
+ $this->rangeIncludes = $rangeIncludes;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\Class|string
*/
- public function getSupersededBy()
+ public function getDomainIncludes()
{
- return $this->supersededBy;
+ return $this->domainIncludes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null $supersededBy
+ * @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 setSupersededBy($supersededBy)
+ public function setDomainIncludes($domainIncludes)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Enumeration",
"\OpenActive\Models\SchemaOrg\Class",
"string",
- "\OpenActive\Enums\PropertyEnumeration",
- "null",
];
- $supersededBy = self::checkTypes($supersededBy, $types);
+ $domainIncludes = self::checkTypes($domainIncludes, $types);
- $this->supersededBy = $supersededBy;
+ $this->domainIncludes = $domainIncludes;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Class|string
+ * @return \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|null
*/
- public function getRangeIncludes()
+ public function getSupersededBy()
{
- return $this->rangeIncludes;
+ return $this->supersededBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Class|string $rangeIncludes
+ * @param \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|null $supersededBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRangeIncludes($rangeIncludes)
+ public function setSupersededBy($supersededBy)
{
$types = [
+ "\OpenActive\Enums\PropertyEnumeration",
+ "\OpenActive\Models\SchemaOrg\Enumeration",
"\OpenActive\Models\SchemaOrg\Class",
"string",
+ "null",
];
- $rangeIncludes = self::checkTypes($rangeIncludes, $types);
+ $supersededBy = self::checkTypes($supersededBy, $types);
- $this->rangeIncludes = $rangeIncludes;
+ $this->supersededBy = $supersededBy;
}
/**
diff --git a/src/Models/SchemaOrg/PropertyValue.php b/src/Models/SchemaOrg/PropertyValue.php
index f8056176..580ff315 100644
--- a/src/Models/SchemaOrg/PropertyValue.php
+++ b/src/Models/SchemaOrg/PropertyValue.php
@@ -17,70 +17,66 @@ public static function getType()
public static function fieldList() {
$fields = [
- "valueReference" => "valueReference",
- "propertyID" => "propertyID",
- "maxValue" => "maxValue",
"unitText" => "unitText",
"measurementTechnique" => "measurementTechnique",
- "minValue" => "minValue",
"value" => "value",
+ "maxValue" => "maxValue",
+ "valueReference" => "valueReference",
+ "minValue" => "minValue",
"unitCode" => "unitCode",
+ "measurementMethod" => "measurementMethod",
+ "propertyID" => "propertyID",
];
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 string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for
+ * unitCode.
*
*
- * @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
*/
- protected $valueReference;
+ protected $unitText;
/**
- * 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)
- * 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.
+ * A technique, method or technology used in an [[Observation]], [[StatisticalVariable]] or [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), corresponding to the method used for measuring the corresponding variable(s) (for datasets, described using [[variableMeasured]]; for [[Observation]], a [[StatisticalVariable]]). Often but not necessarily each [[variableMeasured]] will have an explicit representation as (or mapping to) an property such as those defined in Schema.org, or other RDF vocabularies and "knowledge graphs". In that case the subproperty of [[variableMeasured]] called [[measuredProperty]] is applicable.
+ *
+ * The [[measurementTechnique]] property helps when extra clarification is needed about how a [[measuredProperty]] was measured. This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but can often serve as a high level summary for dataset discovery.
+ *
+ * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory".
+ *
+ * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. The value can also be from an enumeration, organized as a [[MeasurementMetholdEnumeration]].
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
- protected $propertyID;
+ protected $measurementTechnique;
/**
- * The upper value of some characteristic or property.
+ * The value of a [[QuantitativeValue]] (including [[Observation]]) or property value node.\n\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\n* For [[PropertyValue]], it can be 'Text', 'Number', 'Boolean', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
*
*
- * @var Number|null
+ * @var bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null
*/
- protected $maxValue;
+ protected $value;
/**
- * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for
- * unitCode.
+ * The upper value of some characteristic or property.
*
*
- * @var string
+ * @var Number|null
*/
- protected $unitText;
+ protected $maxValue;
/**
- * 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\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|string|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|null
*/
- protected $measurementTechnique;
+ protected $valueReference;
/**
* The lower value of some characteristic or property.
@@ -91,148 +87,166 @@ 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.
+ * 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|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null
+ * @var string
*/
- protected $value;
+ protected $unitCode;
/**
- * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon.
+ * A subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ protected $measurementMethod;
+
+ /**
+ * 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)
+ * 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.
*
*
* @var string
*/
- protected $unitCode;
+ protected $propertyID;
/**
- * @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
*/
- public function getValueReference()
+ public function getUnitText()
{
- return $this->valueReference;
+ return $this->unitText;
}
/**
- * @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 $unitText
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValueReference($valueReference)
+ public function setUnitText($unitText)
{
$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",
];
- $valueReference = self::checkTypes($valueReference, $types);
+ $unitText = self::checkTypes($unitText, $types);
- $this->valueReference = $valueReference;
+ $this->unitText = $unitText;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
- public function getPropertyID()
+ public function getMeasurementTechnique()
{
- return $this->propertyID;
+ return $this->measurementTechnique;
}
/**
- * @param string $propertyID
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementTechnique
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPropertyID($propertyID)
+ public function setMeasurementTechnique($measurementTechnique)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
];
- $propertyID = self::checkTypes($propertyID, $types);
+ $measurementTechnique = self::checkTypes($measurementTechnique, $types);
- $this->propertyID = $propertyID;
+ $this->measurementTechnique = $measurementTechnique;
}
/**
- * @return Number|null
+ * @return bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null
*/
- public function getMaxValue()
+ public function getValue()
{
- return $this->maxValue;
+ return $this->value;
}
/**
- * @param Number|null $maxValue
+ * @param bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null $value
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaxValue($maxValue)
+ public function setValue($value)
{
$types = [
+ "bool",
+ "string",
"Number",
+ "\OpenActive\Models\SchemaOrg\StructuredValue",
"null",
];
- $maxValue = self::checkTypes($maxValue, $types);
+ $value = self::checkTypes($value, $types);
- $this->maxValue = $maxValue;
+ $this->value = $value;
}
/**
- * @return string
+ * @return Number|null
*/
- public function getUnitText()
+ public function getMaxValue()
{
- return $this->unitText;
+ return $this->maxValue;
}
/**
- * @param string $unitText
+ * @param Number|null $maxValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUnitText($unitText)
+ public function setMaxValue($maxValue)
{
$types = [
- "string",
+ "Number",
+ "null",
];
- $unitText = self::checkTypes($unitText, $types);
+ $maxValue = self::checkTypes($maxValue, $types);
- $this->unitText = $unitText;
+ $this->maxValue = $maxValue;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|string|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|null
*/
- public function getMeasurementTechnique()
+ public function getValueReference()
{
- return $this->measurementTechnique;
+ return $this->valueReference;
}
/**
- * @param string $measurementTechnique
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|string|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|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\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration",
"string",
+ "\OpenActive\Models\SchemaOrg\Enumeration",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
+ "\OpenActive\Models\SchemaOrg\StructuredValue",
+ "null",
];
- $measurementTechnique = self::checkTypes($measurementTechnique, $types);
+ $valueReference = self::checkTypes($valueReference, $types);
- $this->measurementTechnique = $measurementTechnique;
+ $this->valueReference = $valueReference;
}
/**
@@ -261,55 +275,78 @@ public function setMinValue($minValue)
}
/**
- * @return string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null
+ * @return string
*/
- public function getValue()
+ public function getUnitCode()
{
- return $this->value;
+ return $this->unitCode;
}
/**
- * @param string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null $value
+ * @param string $unitCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValue($value)
+ public function setUnitCode($unitCode)
{
$types = [
"string",
- "Number",
- "\OpenActive\Models\SchemaOrg\StructuredValue",
- "bool",
+ ];
+
+ $unitCode = self::checkTypes($unitCode, $types);
+
+ $this->unitCode = $unitCode;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ public function getMeasurementMethod()
+ {
+ return $this->measurementMethod;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementMethod
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMeasurementMethod($measurementMethod)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
"null",
];
- $value = self::checkTypes($value, $types);
+ $measurementMethod = self::checkTypes($measurementMethod, $types);
- $this->value = $value;
+ $this->measurementMethod = $measurementMethod;
}
/**
* @return string
*/
- public function getUnitCode()
+ public function getPropertyID()
{
- return $this->unitCode;
+ return $this->propertyID;
}
/**
- * @param string $unitCode
+ * @param string $propertyID
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUnitCode($unitCode)
+ public function setPropertyID($propertyID)
{
$types = [
"string",
];
- $unitCode = self::checkTypes($unitCode, $types);
+ $propertyID = self::checkTypes($propertyID, $types);
- $this->unitCode = $unitCode;
+ $this->propertyID = $propertyID;
}
}
diff --git a/src/Models/SchemaOrg/PropertyValueSpecification.php b/src/Models/SchemaOrg/PropertyValueSpecification.php
index e316e8b1..018370c9 100644
--- a/src/Models/SchemaOrg/PropertyValueSpecification.php
+++ b/src/Models/SchemaOrg/PropertyValueSpecification.php
@@ -17,16 +17,16 @@ public static function getType()
public static function fieldList() {
$fields = [
- "valueMaxLength" => "valueMaxLength",
- "readonlyValue" => "readonlyValue",
- "maxValue" => "maxValue",
- "valueName" => "valueName",
+ "valuePattern" => "valuePattern",
+ "valueRequired" => "valueRequired",
"defaultValue" => "defaultValue",
+ "readonlyValue" => "readonlyValue",
+ "stepValue" => "stepValue",
"valueMinLength" => "valueMinLength",
- "valueRequired" => "valueRequired",
+ "valueMaxLength" => "valueMaxLength",
+ "maxValue" => "maxValue",
"minValue" => "minValue",
- "valuePattern" => "valuePattern",
- "stepValue" => "stepValue",
+ "valueName" => "valueName",
"multipleValues" => "multipleValues",
];
@@ -34,44 +34,44 @@ public static function fieldList() {
}
/**
- * Specifies the allowed range for number of characters in a literal value.
+ * Specifies a regular expression for testing literal values according to the HTML spec.
*
*
- * @var Number|null
+ * @var string
*/
- protected $valueMaxLength;
+ protected $valuePattern;
/**
- * 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.
+ * Whether the property must be filled in to complete the action. Default is false.
*
*
* @var bool|null
*/
- protected $readonlyValue;
+ protected $valueRequired;
/**
- * The upper value of some characteristic or property.
+ * The default value of the input. For properties that expect a literal, the default is a literal value, for properties that expect an object, it's an ID reference to one of the current values.
*
*
- * @var Number|null
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $maxValue;
+ protected $defaultValue;
/**
- * Indicates the name of the PropertyValueSpecification to be used in URL templates and form encoding in a manner analogous to HTML's `input@name`.
+ * Whether or not a property is mutable. Default is false. Specifying this for a property that also has a value makes it act similar to a "hidden" input in an HTML form.
*
*
- * @var string
+ * @var bool|null
*/
- protected $valueName;
+ protected $readonlyValue;
/**
- * 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.
+ * The stepValue attribute indicates the granularity that is expected (and required) of the value in a PropertyValueSpecification.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Thing
+ * @var Number|null
*/
- protected $defaultValue;
+ protected $stepValue;
/**
* Specifies the minimum allowed range for number of characters in a literal value.
@@ -82,36 +82,36 @@ public static function fieldList() {
protected $valueMinLength;
/**
- * Whether the property must be filled in to complete the action. Default is false.
+ * Specifies the allowed range for number of characters in a literal value.
*
*
- * @var bool|null
+ * @var Number|null
*/
- protected $valueRequired;
+ protected $valueMaxLength;
/**
- * The lower value of some characteristic or property.
+ * The upper value of some characteristic or property.
*
*
* @var Number|null
*/
- protected $minValue;
+ protected $maxValue;
/**
- * 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.
+ * Indicates the name of the PropertyValueSpecification to be used in URL templates and form encoding in a manner analogous to HTML's `input@name`.
*
*
- * @var Number|null
+ * @var string
*/
- protected $stepValue;
+ protected $valueName;
/**
* Whether multiple values are allowed for the property. Default is false.
@@ -122,127 +122,127 @@ public static function fieldList() {
protected $multipleValues;
/**
- * @return Number|null
+ * @return string
*/
- public function getValueMaxLength()
+ public function getValuePattern()
{
- return $this->valueMaxLength;
+ return $this->valuePattern;
}
/**
- * @param Number|null $valueMaxLength
+ * @param string $valuePattern
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValueMaxLength($valueMaxLength)
+ public function setValuePattern($valuePattern)
{
$types = [
- "Number",
- "null",
+ "string",
];
- $valueMaxLength = self::checkTypes($valueMaxLength, $types);
+ $valuePattern = self::checkTypes($valuePattern, $types);
- $this->valueMaxLength = $valueMaxLength;
+ $this->valuePattern = $valuePattern;
}
/**
* @return bool|null
*/
- public function getReadonlyValue()
+ public function getValueRequired()
{
- return $this->readonlyValue;
+ return $this->valueRequired;
}
/**
- * @param bool|null $readonlyValue
+ * @param bool|null $valueRequired
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReadonlyValue($readonlyValue)
+ public function setValueRequired($valueRequired)
{
$types = [
"bool",
"null",
];
- $readonlyValue = self::checkTypes($readonlyValue, $types);
+ $valueRequired = self::checkTypes($valueRequired, $types);
- $this->readonlyValue = $readonlyValue;
+ $this->valueRequired = $valueRequired;
}
/**
- * @return Number|null
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getMaxValue()
+ public function getDefaultValue()
{
- return $this->maxValue;
+ return $this->defaultValue;
}
/**
- * @param Number|null $maxValue
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $defaultValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaxValue($maxValue)
+ public function setDefaultValue($defaultValue)
{
$types = [
- "Number",
- "null",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "string",
];
- $maxValue = self::checkTypes($maxValue, $types);
+ $defaultValue = self::checkTypes($defaultValue, $types);
- $this->maxValue = $maxValue;
+ $this->defaultValue = $defaultValue;
}
/**
- * @return string
+ * @return bool|null
*/
- public function getValueName()
+ public function getReadonlyValue()
{
- return $this->valueName;
+ return $this->readonlyValue;
}
/**
- * @param string $valueName
+ * @param bool|null $readonlyValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValueName($valueName)
+ public function setReadonlyValue($readonlyValue)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $valueName = self::checkTypes($valueName, $types);
+ $readonlyValue = self::checkTypes($readonlyValue, $types);
- $this->valueName = $valueName;
+ $this->readonlyValue = $readonlyValue;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Thing
+ * @return Number|null
*/
- public function getDefaultValue()
+ public function getStepValue()
{
- return $this->defaultValue;
+ return $this->stepValue;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Thing $defaultValue
+ * @param Number|null $stepValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDefaultValue($defaultValue)
+ public function setStepValue($stepValue)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\Thing",
+ "Number",
+ "null",
];
- $defaultValue = self::checkTypes($defaultValue, $types);
+ $stepValue = self::checkTypes($stepValue, $types);
- $this->defaultValue = $defaultValue;
+ $this->stepValue = $stepValue;
}
/**
@@ -271,102 +271,102 @@ public function setValueMinLength($valueMinLength)
}
/**
- * @return bool|null
+ * @return Number|null
*/
- public function getValueRequired()
+ public function getValueMaxLength()
{
- return $this->valueRequired;
+ return $this->valueMaxLength;
}
/**
- * @param bool|null $valueRequired
+ * @param Number|null $valueMaxLength
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValueRequired($valueRequired)
+ public function setValueMaxLength($valueMaxLength)
{
$types = [
- "bool",
+ "Number",
"null",
];
- $valueRequired = self::checkTypes($valueRequired, $types);
+ $valueMaxLength = self::checkTypes($valueMaxLength, $types);
- $this->valueRequired = $valueRequired;
+ $this->valueMaxLength = $valueMaxLength;
}
/**
* @return Number|null
*/
- public function getMinValue()
+ public function getMaxValue()
{
- return $this->minValue;
+ return $this->maxValue;
}
/**
- * @param Number|null $minValue
+ * @param Number|null $maxValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMinValue($minValue)
+ public function setMaxValue($maxValue)
{
$types = [
"Number",
"null",
];
- $minValue = self::checkTypes($minValue, $types);
+ $maxValue = self::checkTypes($maxValue, $types);
- $this->minValue = $minValue;
+ $this->maxValue = $maxValue;
}
/**
- * @return 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;
}
/**
- * @return Number|null
+ * @return string
*/
- public function getStepValue()
+ public function getValueName()
{
- return $this->stepValue;
+ return $this->valueName;
}
/**
- * @param Number|null $stepValue
+ * @param string $valueName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStepValue($stepValue)
+ public function setValueName($valueName)
{
$types = [
- "Number",
- "null",
+ "string",
];
- $stepValue = self::checkTypes($stepValue, $types);
+ $valueName = self::checkTypes($valueName, $types);
- $this->stepValue = $stepValue;
+ $this->valueName = $valueName;
}
/**
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..934cc506 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 = [
- "pageStart" => "pageStart",
- "pageEnd" => "pageEnd",
- "issueNumber" => "issueNumber",
"pagination" => "pagination",
+ "issueNumber" => "issueNumber",
+ "pageEnd" => "pageEnd",
+ "pageStart" => "pageStart",
];
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 ends; for example "138" or "xvi".
*
*
* @var string|int|null
*/
- protected $issueNumber;
+ 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".
+ * The page on which the work starts; for example "135" or "xiii".
*
*
- * @var string
+ * @var string|int|null
*/
- protected $pagination;
+ protected $pageStart;
/**
- * @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 getPageEnd()
{
- return $this->issueNumber;
+ return $this->pageEnd;
}
/**
- * @param string|int|null $issueNumber
+ * @param string|int|null $pageEnd
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIssueNumber($issueNumber)
+ public function setPageEnd($pageEnd)
{
$types = [
"string",
@@ -131,33 +129,35 @@ public function setIssueNumber($issueNumber)
"null",
];
- $issueNumber = self::checkTypes($issueNumber, $types);
+ $pageEnd = self::checkTypes($pageEnd, $types);
- $this->issueNumber = $issueNumber;
+ $this->pageEnd = $pageEnd;
}
/**
- * @return string
+ * @return string|int|null
*/
- public function getPagination()
+ public function getPageStart()
{
- return $this->pagination;
+ return $this->pageStart;
}
/**
- * @param string $pagination
+ * @param string|int|null $pageStart
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPagination($pagination)
+ public function setPageStart($pageStart)
{
$types = [
"string",
+ "int",
+ "null",
];
- $pagination = self::checkTypes($pagination, $types);
+ $pageStart = self::checkTypes($pageStart, $types);
- $this->pagination = $pagination;
+ $this->pageStart = $pageStart;
}
}
diff --git a/src/Models/SchemaOrg/PublicationVolume.php b/src/Models/SchemaOrg/PublicationVolume.php
index 77d18ace..5dd8adbb 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 = [
- "pageStart" => "pageStart",
- "pageEnd" => "pageEnd",
- "volumeNumber" => "volumeNumber",
"pagination" => "pagination",
+ "volumeNumber" => "volumeNumber",
+ "pageEnd" => "pageEnd",
+ "pageStart" => "pageStart",
];
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 ends; for example "138" or "xvi".
*
*
* @var string|int|null
*/
- protected $volumeNumber;
+ 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".
+ * The page on which the work starts; for example "135" or "xiii".
*
*
- * @var string
+ * @var string|int|null
*/
- protected $pagination;
+ protected $pageStart;
/**
- * @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 getPageEnd()
{
- return $this->volumeNumber;
+ return $this->pageEnd;
}
/**
- * @param string|int|null $volumeNumber
+ * @param string|int|null $pageEnd
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVolumeNumber($volumeNumber)
+ public function setPageEnd($pageEnd)
{
$types = [
"string",
@@ -131,33 +129,35 @@ public function setVolumeNumber($volumeNumber)
"null",
];
- $volumeNumber = self::checkTypes($volumeNumber, $types);
+ $pageEnd = self::checkTypes($pageEnd, $types);
- $this->volumeNumber = $volumeNumber;
+ $this->pageEnd = $pageEnd;
}
/**
- * @return string
+ * @return string|int|null
*/
- public function getPagination()
+ public function getPageStart()
{
- return $this->pagination;
+ return $this->pageStart;
}
/**
- * @param string $pagination
+ * @param string|int|null $pageStart
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPagination($pagination)
+ public function setPageStart($pageStart)
{
$types = [
"string",
+ "int",
+ "null",
];
- $pagination = self::checkTypes($pagination, $types);
+ $pageStart = self::checkTypes($pageStart, $types);
- $this->pagination = $pagination;
+ $this->pageStart = $pageStart;
}
}
diff --git a/src/Models/SchemaOrg/QuantitativeValue.php b/src/Models/SchemaOrg/QuantitativeValue.php
index 13658c50..b33c1445 100644
--- a/src/Models/SchemaOrg/QuantitativeValue.php
+++ b/src/Models/SchemaOrg/QuantitativeValue.php
@@ -17,257 +17,257 @@ public static function getType()
public static function fieldList() {
$fields = [
- "valueReference" => "valueReference",
- "maxValue" => "maxValue",
"unitText" => "unitText",
- "minValue" => "minValue",
"value" => "value",
- "unitCode" => "unitCode",
"additionalProperty" => "additionalProperty",
+ "maxValue" => "maxValue",
+ "valueReference" => "valueReference",
+ "minValue" => "minValue",
+ "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 string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for
+ * unitCode.
*
*
- * @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
*/
- protected $valueReference;
+ protected $unitText;
/**
- * The upper value of some characteristic or property.
+ * The value of a [[QuantitativeValue]] (including [[Observation]]) or property value node.\n\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\n* For [[PropertyValue]], it can be 'Text', 'Number', 'Boolean', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
*
*
- * @var Number|null
+ * @var bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null
*/
- protected $maxValue;
+ protected $value;
/**
- * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for
- * unitCode.
+ * 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 $unitText;
+ protected $additionalProperty;
/**
- * The lower value of some characteristic or property.
+ * The upper value of some characteristic or property.
*
*
* @var Number|null
*/
- protected $minValue;
+ protected $maxValue;
/**
- * The value of the quantitative value or property value node.\n\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\n* For [[PropertyValue]], it can be 'Text;', 'Number', 'Boolean', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
+ * A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement.
*
*
- * @var string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|string|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|null
*/
- protected $value;
+ protected $valueReference;
/**
- * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon.
+ * The lower value of some characteristic or property.
*
*
- * @var string
+ * @var Number|null
*/
- protected $unitCode;
+ protected $minValue;
/**
- * 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 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\PropertyValue|string
+ * @var string
*/
- protected $additionalProperty;
+ protected $unitCode;
/**
- * @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
*/
- public function getValueReference()
+ public function getUnitText()
{
- return $this->valueReference;
+ return $this->unitText;
}
/**
- * @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 $unitText
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValueReference($valueReference)
+ public function setUnitText($unitText)
{
$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",
];
- $valueReference = self::checkTypes($valueReference, $types);
+ $unitText = self::checkTypes($unitText, $types);
- $this->valueReference = $valueReference;
+ $this->unitText = $unitText;
}
/**
- * @return Number|null
+ * @return bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null
*/
- public function getMaxValue()
+ public function getValue()
{
- return $this->maxValue;
+ return $this->value;
}
/**
- * @param Number|null $maxValue
+ * @param bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null $value
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaxValue($maxValue)
+ public function setValue($value)
{
$types = [
+ "bool",
+ "string",
"Number",
+ "\OpenActive\Models\SchemaOrg\StructuredValue",
"null",
];
- $maxValue = self::checkTypes($maxValue, $types);
+ $value = self::checkTypes($value, $types);
- $this->maxValue = $maxValue;
+ $this->value = $value;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- public function getUnitText()
+ public function getAdditionalProperty()
{
- return $this->unitText;
+ return $this->additionalProperty;
}
/**
- * @param string $unitText
+ * @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 setUnitText($unitText)
+ public function setAdditionalProperty($additionalProperty)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
"string",
];
- $unitText = self::checkTypes($unitText, $types);
+ $additionalProperty = self::checkTypes($additionalProperty, $types);
- $this->unitText = $unitText;
+ $this->additionalProperty = $additionalProperty;
}
/**
* @return Number|null
*/
- public function getMinValue()
+ public function getMaxValue()
{
- return $this->minValue;
+ return $this->maxValue;
}
/**
- * @param Number|null $minValue
+ * @param Number|null $maxValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMinValue($minValue)
+ public function setMaxValue($maxValue)
{
$types = [
"Number",
"null",
];
- $minValue = self::checkTypes($minValue, $types);
+ $maxValue = self::checkTypes($maxValue, $types);
- $this->minValue = $minValue;
+ $this->maxValue = $maxValue;
}
/**
- * @return string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|string|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|null
*/
- public function getValue()
+ public function getValueReference()
{
- return $this->value;
+ return $this->valueReference;
}
/**
- * @param string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null $value
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|string|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|null $valueReference
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValue($value)
+ public function setValueReference($valueReference)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration",
"string",
- "Number",
+ "\OpenActive\Models\SchemaOrg\Enumeration",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
"\OpenActive\Models\SchemaOrg\StructuredValue",
- "bool",
"null",
];
- $value = self::checkTypes($value, $types);
+ $valueReference = self::checkTypes($valueReference, $types);
- $this->value = $value;
+ $this->valueReference = $valueReference;
}
/**
- * @return string
+ * @return Number|null
*/
- public function getUnitCode()
+ public function getMinValue()
{
- return $this->unitCode;
+ return $this->minValue;
}
/**
- * @param string $unitCode
+ * @param Number|null $minValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUnitCode($unitCode)
+ public function setMinValue($minValue)
{
$types = [
- "string",
+ "Number",
+ "null",
];
- $unitCode = self::checkTypes($unitCode, $types);
+ $minValue = self::checkTypes($minValue, $types);
- $this->unitCode = $unitCode;
+ $this->minValue = $minValue;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @return string
*/
- public function getAdditionalProperty()
+ public function getUnitCode()
{
- return $this->additionalProperty;
+ return $this->unitCode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty
+ * @param string $unitCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdditionalProperty($additionalProperty)
+ public function setUnitCode($unitCode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
"string",
];
- $additionalProperty = self::checkTypes($additionalProperty, $types);
+ $unitCode = self::checkTypes($unitCode, $types);
- $this->additionalProperty = $additionalProperty;
+ $this->unitCode = $unitCode;
}
}
diff --git a/src/Models/SchemaOrg/QuantitativeValueDistribution.php b/src/Models/SchemaOrg/QuantitativeValueDistribution.php
index 899a1813..7df9d29e 100644
--- a/src/Models/SchemaOrg/QuantitativeValueDistribution.php
+++ b/src/Models/SchemaOrg/QuantitativeValueDistribution.php
@@ -17,214 +17,214 @@ public static function getType()
public static function fieldList() {
$fields = [
- "percentile75" => "percentile75",
"median" => "median",
- "percentile10" => "percentile10",
+ "duration" => "duration",
"percentile25" => "percentile25",
+ "percentile75" => "percentile75",
+ "percentile10" => "percentile10",
"percentile90" => "percentile90",
- "duration" => "duration",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The 75th percentile value.
+ * The median value.
*
*
* @var Number|null
*/
- protected $percentile75;
+ protected $median;
/**
- * The median value.
+ * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var Number|null
+ * @var DateInterval|string|null
*/
- protected $median;
+ protected $duration;
/**
- * The 10th percentile value.
+ * The 25th percentile value.
*
*
* @var Number|null
*/
- protected $percentile10;
+ protected $percentile25;
/**
- * The 25th percentile value.
+ * The 75th percentile value.
*
*
* @var Number|null
*/
- protected $percentile25;
+ protected $percentile75;
/**
- * The 90th percentile value.
+ * The 10th percentile value.
*
*
* @var Number|null
*/
- protected $percentile90;
+ protected $percentile10;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The 90th percentile value.
*
*
- * @var DateInterval|string|null
+ * @var Number|null
*/
- protected $duration;
+ protected $percentile90;
/**
* @return Number|null
*/
- public function getPercentile75()
+ public function getMedian()
{
- return $this->percentile75;
+ return $this->median;
}
/**
- * @param Number|null $percentile75
+ * @param Number|null $median
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPercentile75($percentile75)
+ public function setMedian($median)
{
$types = [
"Number",
"null",
];
- $percentile75 = self::checkTypes($percentile75, $types);
+ $median = self::checkTypes($median, $types);
- $this->percentile75 = $percentile75;
+ $this->median = $median;
}
/**
- * @return Number|null
+ * @return DateInterval|string|null
*/
- public function getMedian()
+ public function getDuration()
{
- return $this->median;
+ return $this->duration;
}
/**
- * @param Number|null $median
+ * @param DateInterval|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMedian($median)
+ public function setDuration($duration)
{
$types = [
- "Number",
+ "DateInterval",
+ "string",
"null",
];
- $median = self::checkTypes($median, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->median = $median;
+ $this->duration = $duration;
}
/**
* @return Number|null
*/
- public function getPercentile10()
+ public function getPercentile25()
{
- return $this->percentile10;
+ return $this->percentile25;
}
/**
- * @param Number|null $percentile10
+ * @param Number|null $percentile25
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPercentile10($percentile10)
+ public function setPercentile25($percentile25)
{
$types = [
"Number",
"null",
];
- $percentile10 = self::checkTypes($percentile10, $types);
+ $percentile25 = self::checkTypes($percentile25, $types);
- $this->percentile10 = $percentile10;
+ $this->percentile25 = $percentile25;
}
/**
* @return Number|null
*/
- public function getPercentile25()
+ public function getPercentile75()
{
- return $this->percentile25;
+ return $this->percentile75;
}
/**
- * @param Number|null $percentile25
+ * @param Number|null $percentile75
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPercentile25($percentile25)
+ public function setPercentile75($percentile75)
{
$types = [
"Number",
"null",
];
- $percentile25 = self::checkTypes($percentile25, $types);
+ $percentile75 = self::checkTypes($percentile75, $types);
- $this->percentile25 = $percentile25;
+ $this->percentile75 = $percentile75;
}
/**
* @return Number|null
*/
- public function getPercentile90()
+ public function getPercentile10()
{
- return $this->percentile90;
+ return $this->percentile10;
}
/**
- * @param Number|null $percentile90
+ * @param Number|null $percentile10
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPercentile90($percentile90)
+ public function setPercentile10($percentile10)
{
$types = [
"Number",
"null",
];
- $percentile90 = self::checkTypes($percentile90, $types);
+ $percentile10 = self::checkTypes($percentile10, $types);
- $this->percentile90 = $percentile90;
+ $this->percentile10 = $percentile10;
}
/**
- * @return DateInterval|string|null
+ * @return Number|null
*/
- public function getDuration()
+ public function getPercentile90()
{
- return $this->duration;
+ return $this->percentile90;
}
/**
- * @param DateInterval|string|null $duration
+ * @param Number|null $percentile90
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDuration($duration)
+ public function setPercentile90($percentile90)
{
$types = [
- "DateInterval",
- "string",
+ "Number",
"null",
];
- $duration = self::checkTypes($duration, $types);
+ $percentile90 = self::checkTypes($percentile90, $types);
- $this->duration = $duration;
+ $this->percentile90 = $percentile90;
}
}
diff --git a/src/Models/SchemaOrg/Question.php b/src/Models/SchemaOrg/Question.php
index 9049d777..75d4203e 100644
--- a/src/Models/SchemaOrg/Question.php
+++ b/src/Models/SchemaOrg/Question.php
@@ -17,20 +17,28 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "eduQuestionType" => "eduQuestionType",
"suggestedAnswer" => "suggestedAnswer",
"acceptedAnswer" => "acceptedAnswer",
"answerCount" => "answerCount",
- "eduQuestionType" => "eduQuestionType",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * 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;
+
/**
* An answer (possibly one of several, possibly incorrect) to a Question, e.g. on a Question/Answer site.
*
*
- * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Answer|string
+ * @var \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string
*/
protected $suggestedAnswer;
@@ -51,15 +59,31 @@ 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".
- *
- *
- * @var string
+ * @return string
*/
- protected $eduQuestionType;
+ 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;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Answer|string
+ * @return \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string
*/
public function getSuggestedAnswer()
{
@@ -67,15 +91,15 @@ public function getSuggestedAnswer()
}
/**
- * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Answer|string $suggestedAnswer
+ * @param \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string $suggestedAnswer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setSuggestedAnswer($suggestedAnswer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ItemList",
"\OpenActive\Models\SchemaOrg\Answer",
+ "\OpenActive\Models\SchemaOrg\ItemList",
"string",
];
@@ -135,28 +159,4 @@ public function setAnswerCount($answerCount)
$this->answerCount = $answerCount;
}
- /**
- * @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;
- }
-
}
diff --git a/src/Models/SchemaOrg/Quotation.php b/src/Models/SchemaOrg/Quotation.php
index c49ffc80..ed0e40b0 100644
--- a/src/Models/SchemaOrg/Quotation.php
+++ b/src/Models/SchemaOrg/Quotation.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* The (e.g. fictional) character, Person or Organization to whom the quotation is attributed within the containing CreativeWork.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
protected $spokenByCharacter;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
public function getSpokenByCharacter()
{
@@ -40,15 +40,15 @@ public function getSpokenByCharacter()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $spokenByCharacter
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $spokenByCharacter
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setSpokenByCharacter($spokenByCharacter)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
diff --git a/src/Models/SchemaOrg/RadioSeries.php b/src/Models/SchemaOrg/RadioSeries.php
index 4ae0b3b6..1134a037 100644
--- a/src/Models/SchemaOrg/RadioSeries.php
+++ b/src/Models/SchemaOrg/RadioSeries.php
@@ -17,59 +17,59 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "actors" => "actors",
+ "episodes" => "episodes",
"season" => "season",
"containsSeason" => "containsSeason",
- "director" => "director",
- "actor" => "actor",
"trailer" => "trailer",
- "episodes" => "episodes",
- "numberOfEpisodes" => "numberOfEpisodes",
- "seasons" => "seasons",
"productionCompany" => "productionCompany",
- "actors" => "actors",
+ "episode" => "episode",
+ "seasons" => "seasons",
"numberOfSeasons" => "numberOfSeasons",
"musicBy" => "musicBy",
- "episode" => "episode",
"directors" => "directors",
+ "director" => "director",
+ "numberOfEpisodes" => "numberOfEpisodes",
+ "actor" => "actor",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A season in a media series.
+ * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $season;
+ protected $actors;
/**
- * A season that is part of the media series.
+ * An episode of a TV/radio series or season.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ * @var \OpenActive\Models\SchemaOrg\Episode|string
*/
- protected $containsSeason;
+ protected $episodes;
/**
- * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
+ * A season in a media series.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- protected $director;
+ protected $season;
/**
- * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
+ * A season that is part of the media series.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- protected $actor;
+ protected $containsSeason;
/**
- * The trailer of a movie or tv/radio series, season, episode, etc.
+ * The trailer of a movie or TV/radio series, season, episode, etc.
*
*
* @var \OpenActive\Models\SchemaOrg\VideoObject|string
@@ -77,20 +77,20 @@ public static function fieldList() {
protected $trailer;
/**
- * 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.
+ * An episode of a TV, radio or game media within a series or season.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\Episode|string
*/
- protected $numberOfEpisodes;
+ protected $episode;
/**
* A season in a media series.
@@ -101,151 +101,151 @@ public static function fieldList() {
protected $seasons;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * The number of seasons in this series.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var int|null
*/
- protected $productionCompany;
+ protected $numberOfSeasons;
/**
- * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
+ * The composer of the soundtrack.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- protected $actors;
+ protected $musicBy;
/**
- * The number of seasons in this series.
+ * A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $numberOfSeasons;
+ 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;
/**
- * An episode of a tv, radio or game media within a series or season.
+ * The number of episodes in this season or series.
*
*
- * @var \OpenActive\Models\SchemaOrg\Episode|string
+ * @var int|null
*/
- protected $episode;
+ protected $numberOfEpisodes;
/**
- * 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., or in an event. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $directors;
+ protected $actor;
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getSeason()
+ public function getActors()
{
- return $this->season;
+ return $this->actors;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason $season
+ * @param \OpenActive\Models\SchemaOrg\Person|string $actors
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSeason($season)
+ public function setActors($actors)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
];
- $season = self::checkTypes($season, $types);
+ $actors = self::checkTypes($actors, $types);
- $this->season = $season;
+ $this->actors = $actors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ * @return \OpenActive\Models\SchemaOrg\Episode|string
*/
- public function getContainsSeason()
+ public function getEpisodes()
{
- return $this->containsSeason;
+ return $this->episodes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $containsSeason
+ * @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 setContainsSeason($containsSeason)
+ public function setEpisodes($episodes)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
+ "\OpenActive\Models\SchemaOrg\Episode",
"string",
];
- $containsSeason = self::checkTypes($containsSeason, $types);
+ $episodes = self::checkTypes($episodes, $types);
- $this->containsSeason = $containsSeason;
+ $this->episodes = $episodes;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- public function getDirector()
+ public function getSeason()
{
- return $this->director;
+ return $this->season;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @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 setDirector($director)
+ public function setSeason($season)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
"string",
];
- $director = self::checkTypes($director, $types);
+ $season = self::checkTypes($season, $types);
- $this->director = $director;
+ $this->season = $season;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- public function getActor()
+ public function getContainsSeason()
{
- return $this->actor;
+ return $this->containsSeason;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $containsSeason
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActor($actor)
+ public function setContainsSeason($containsSeason)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
"string",
];
- $actor = self::checkTypes($actor, $types);
+ $containsSeason = self::checkTypes($containsSeason, $types);
- $this->actor = $actor;
+ $this->containsSeason = $containsSeason;
}
/**
@@ -274,53 +274,53 @@ public function setTrailer($trailer)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Episode|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getEpisodes()
+ public function getProductionCompany()
{
- return $this->episodes;
+ return $this->productionCompany;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEpisodes($episodes)
+ public function setProductionCompany($productionCompany)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Episode",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $episodes = self::checkTypes($episodes, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->episodes = $episodes;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Episode|string
*/
- public function getNumberOfEpisodes()
+ public function getEpisode()
{
- return $this->numberOfEpisodes;
+ return $this->episode;
}
/**
- * @param int|null $numberOfEpisodes
+ * @param \OpenActive\Models\SchemaOrg\Episode|string $episode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfEpisodes($numberOfEpisodes)
+ public function setEpisode($episode)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Episode",
+ "string",
];
- $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types);
+ $episode = self::checkTypes($episode, $types);
- $this->numberOfEpisodes = $numberOfEpisodes;
+ $this->episode = $episode;
}
/**
@@ -349,154 +349,154 @@ public function setSeasons($seasons)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return int|null
*/
- public function getProductionCompany()
+ public function getNumberOfSeasons()
{
- return $this->productionCompany;
+ return $this->numberOfSeasons;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @param int|null $numberOfSeasons
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionCompany($productionCompany)
+ public function setNumberOfSeasons($numberOfSeasons)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "int",
+ "null",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $numberOfSeasons = self::checkTypes($numberOfSeasons, $types);
- $this->productionCompany = $productionCompany;
+ $this->numberOfSeasons = $numberOfSeasons;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- public function getActors()
+ public function getMusicBy()
{
- return $this->actors;
+ return $this->musicBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actors
+ * @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 setActors($actors)
+ public function setMusicBy($musicBy)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
"string",
];
- $actors = self::checkTypes($actors, $types);
+ $musicBy = self::checkTypes($musicBy, $types);
- $this->actors = $actors;
+ $this->musicBy = $musicBy;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getNumberOfSeasons()
+ public function getDirectors()
{
- return $this->numberOfSeasons;
+ return $this->directors;
}
/**
- * @param int|null $numberOfSeasons
+ * @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 setNumberOfSeasons($numberOfSeasons)
+ public function setDirectors($directors)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $numberOfSeasons = self::checkTypes($numberOfSeasons, $types);
+ $directors = self::checkTypes($directors, $types);
- $this->numberOfSeasons = $numberOfSeasons;
+ $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\Episode|string
+ * @return int|null
*/
- public function getEpisode()
+ public function getNumberOfEpisodes()
{
- return $this->episode;
+ return $this->numberOfEpisodes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Episode|string $episode
+ * @param int|null $numberOfEpisodes
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEpisode($episode)
+ public function setNumberOfEpisodes($numberOfEpisodes)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Episode",
- "string",
+ "int",
+ "null",
];
- $episode = self::checkTypes($episode, $types);
+ $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types);
- $this->episode = $episode;
+ $this->numberOfEpisodes = $numberOfEpisodes;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDirectors()
+ public function getActor()
{
- return $this->directors;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @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 setDirectors($directors)
+ public function setActor($actor)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->directors = $directors;
+ $this->actor = $actor;
}
}
diff --git a/src/Models/SchemaOrg/Rating.php b/src/Models/SchemaOrg/Rating.php
index 1e7d5d9d..d5d3086c 100644
--- a/src/Models/SchemaOrg/Rating.php
+++ b/src/Models/SchemaOrg/Rating.php
@@ -17,181 +17,179 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "ratingExplanation" => "ratingExplanation",
+ "author" => "author",
+ "ratingValue" => "ratingValue",
"reviewAspect" => "reviewAspect",
"worstRating" => "worstRating",
- "author" => "author",
"bestRating" => "bestRating",
- "ratingValue" => "ratingValue",
- "ratingExplanation" => "ratingExplanation",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * This Review or Rating is relevant to this part or facet of the itemReviewed.
+ * A short explanation (e.g. one to two sentences) providing background context and other information that led to the conclusion expressed in the rating. This is particularly applicable to ratings associated with "fact check" markup using [[ClaimReview]].
*
*
* @var string
*/
- protected $reviewAspect;
+ protected $ratingExplanation;
/**
- * The lowest value allowed in this rating system. If worstRating is omitted, 1 is assumed.
+ * The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.
*
*
- * @var string|Number|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $worstRating;
+ protected $author;
/**
- * 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 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 \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var string|Number|null
*/
- protected $author;
+ protected $ratingValue;
/**
- * The highest value allowed in this rating system. If bestRating is omitted, 5 is assumed.
+ * This Review or Rating is relevant to this part or facet of the itemReviewed.
*
*
- * @var string|Number|null
+ * @var string
*/
- protected $bestRating;
+ protected $reviewAspect;
/**
- * The rating for the content.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
+ * The lowest value allowed in this rating system. If worstRating is omitted, 1 is assumed.
*
*
* @var string|Number|null
*/
- protected $ratingValue;
+ protected $worstRating;
/**
- * A short explanation (e.g. one to two sentences) providing background context and other information that led to the conclusion expressed in the rating. This is particularly applicable to ratings associated with "fact check" markup using [[ClaimReview]].
+ * The highest value allowed in this rating system. If bestRating is omitted, 5 is assumed.
*
*
- * @var string
+ * @var string|Number|null
*/
- protected $ratingExplanation;
+ protected $bestRating;
/**
* @return string
*/
- public function getReviewAspect()
+ public function getRatingExplanation()
{
- return $this->reviewAspect;
+ return $this->ratingExplanation;
}
/**
- * @param string $reviewAspect
+ * @param string $ratingExplanation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReviewAspect($reviewAspect)
+ public function setRatingExplanation($ratingExplanation)
{
$types = [
"string",
];
- $reviewAspect = self::checkTypes($reviewAspect, $types);
+ $ratingExplanation = self::checkTypes($ratingExplanation, $types);
- $this->reviewAspect = $reviewAspect;
+ $this->ratingExplanation = $ratingExplanation;
}
/**
- * @return string|Number|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getWorstRating()
+ public function getAuthor()
{
- return $this->worstRating;
+ return $this->author;
}
/**
- * @param string|Number|null $worstRating
+ * @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 setWorstRating($worstRating)
+ public function setAuthor($author)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "Number",
- "null",
];
- $worstRating = self::checkTypes($worstRating, $types);
+ $author = self::checkTypes($author, $types);
- $this->worstRating = $worstRating;
+ $this->author = $author;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return string|Number|null
*/
- public function getAuthor()
+ public function getRatingValue()
{
- return $this->author;
+ return $this->ratingValue;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $author
+ * @param string|Number|null $ratingValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAuthor($author)
+ public function setRatingValue($ratingValue)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
+ "Number",
+ "null",
];
- $author = self::checkTypes($author, $types);
+ $ratingValue = self::checkTypes($ratingValue, $types);
- $this->author = $author;
+ $this->ratingValue = $ratingValue;
}
/**
- * @return string|Number|null
+ * @return string
*/
- public function getBestRating()
+ public function getReviewAspect()
{
- return $this->bestRating;
+ return $this->reviewAspect;
}
/**
- * @param string|Number|null $bestRating
+ * @param string $reviewAspect
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBestRating($bestRating)
+ public function setReviewAspect($reviewAspect)
{
$types = [
"string",
- "Number",
- "null",
];
- $bestRating = self::checkTypes($bestRating, $types);
+ $reviewAspect = self::checkTypes($reviewAspect, $types);
- $this->bestRating = $bestRating;
+ $this->reviewAspect = $reviewAspect;
}
/**
* @return string|Number|null
*/
- public function getRatingValue()
+ public function getWorstRating()
{
- return $this->ratingValue;
+ return $this->worstRating;
}
/**
- * @param string|Number|null $ratingValue
+ * @param string|Number|null $worstRating
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRatingValue($ratingValue)
+ public function setWorstRating($worstRating)
{
$types = [
"string",
@@ -199,33 +197,35 @@ public function setRatingValue($ratingValue)
"null",
];
- $ratingValue = self::checkTypes($ratingValue, $types);
+ $worstRating = self::checkTypes($worstRating, $types);
- $this->ratingValue = $ratingValue;
+ $this->worstRating = $worstRating;
}
/**
- * @return string
+ * @return string|Number|null
*/
- public function getRatingExplanation()
+ public function getBestRating()
{
- return $this->ratingExplanation;
+ return $this->bestRating;
}
/**
- * @param string $ratingExplanation
+ * @param string|Number|null $bestRating
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRatingExplanation($ratingExplanation)
+ public function setBestRating($bestRating)
{
$types = [
"string",
+ "Number",
+ "null",
];
- $ratingExplanation = self::checkTypes($ratingExplanation, $types);
+ $bestRating = self::checkTypes($bestRating, $types);
- $this->ratingExplanation = $ratingExplanation;
+ $this->bestRating = $bestRating;
}
}
diff --git a/src/Models/SchemaOrg/RealEstateListing.php b/src/Models/SchemaOrg/RealEstateListing.php
index a6c8c690..1b3d619f 100644
--- a/src/Models/SchemaOrg/RealEstateListing.php
+++ b/src/Models/SchemaOrg/RealEstateListing.php
@@ -17,80 +17,80 @@ public static function getType()
public static function fieldList() {
$fields = [
- "leaseLength" => "leaseLength",
"datePosted" => "datePosted",
+ "leaseLength" => "leaseLength",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.
+ * Publication date of an online listing.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
+ * @var Date|DateTime|null
*/
- protected $leaseLength;
+ protected $datePosted;
/**
- * Publication date of an online listing.
+ * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
*/
- protected $datePosted;
+ protected $leaseLength;
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
+ * @return Date|DateTime|null
*/
- public function getLeaseLength()
+ public function getDatePosted()
{
- return $this->leaseLength;
+ return $this->datePosted;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength
+ * @param Date|DateTime|null $datePosted
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLeaseLength($leaseLength)
+ public function setDatePosted($datePosted)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "DateInterval",
- "string",
+ "Date",
+ "DateTime",
"null",
];
- $leaseLength = self::checkTypes($leaseLength, $types);
+ $datePosted = self::checkTypes($datePosted, $types);
- $this->leaseLength = $leaseLength;
+ $this->datePosted = $datePosted;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
*/
- public function getDatePosted()
+ public function getLeaseLength()
{
- return $this->datePosted;
+ return $this->leaseLength;
}
/**
- * @param Date|DateTime|null $datePosted
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDatePosted($datePosted)
+ public function setLeaseLength($leaseLength)
{
$types = [
- "Date",
- "DateTime",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "DateInterval",
+ "string",
"null",
];
- $datePosted = self::checkTypes($datePosted, $types);
+ $leaseLength = self::checkTypes($leaseLength, $types);
- $this->datePosted = $datePosted;
+ $this->leaseLength = $leaseLength;
}
}
diff --git a/src/Models/SchemaOrg/ReceiveAction.php b/src/Models/SchemaOrg/ReceiveAction.php
index 19fe5426..57cd84f6 100644
--- a/src/Models/SchemaOrg/ReceiveAction.php
+++ b/src/Models/SchemaOrg/ReceiveAction.php
@@ -17,79 +17,79 @@ public static function getType()
public static function fieldList() {
$fields = [
- "sender" => "sender",
"deliveryMethod" => "deliveryMethod",
+ "sender" => "sender",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A sub property of participant. The participant who is at the sending end of the action.
+ * A sub property of instrument. The method of delivery.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
*/
- protected $sender;
+ protected $deliveryMethod;
/**
- * A sub property of instrument. The method of delivery.
+ * A sub property of participant. The participant who is at the sending end of the action.
*
*
- * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|\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\Audience|\OpenActive\Models\SchemaOrg\Person|\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\Audience|\OpenActive\Models\SchemaOrg\Person|\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\Audience",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\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..7fac48ee 100644
--- a/src/Models/SchemaOrg/Recipe.php
+++ b/src/Models/SchemaOrg/Recipe.php
@@ -18,15 +18,15 @@ public static function getType()
public static function fieldList() {
$fields = [
"recipeInstructions" => "recipeInstructions",
- "ingredients" => "ingredients",
- "recipeCuisine" => "recipeCuisine",
- "suitableForDiet" => "suitableForDiet",
+ "recipeCategory" => "recipeCategory",
"nutrition" => "nutrition",
- "cookingMethod" => "cookingMethod",
- "recipeIngredient" => "recipeIngredient",
- "recipeYield" => "recipeYield",
+ "suitableForDiet" => "suitableForDiet",
+ "recipeCuisine" => "recipeCuisine",
"cookTime" => "cookTime",
- "recipeCategory" => "recipeCategory",
+ "recipeYield" => "recipeYield",
+ "recipeIngredient" => "recipeIngredient",
+ "cookingMethod" => "cookingMethod",
+ "ingredients" => "ingredients",
];
return array_merge(parent::fieldList(), $fields);
@@ -36,25 +36,25 @@ public static function fieldList() {
* A step in making the recipe, in the form of a single item (document, video, etc.) or an ordered list with HowToStep and/or HowToSection items.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList
+ * @var string|\OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork
*/
protected $recipeInstructions;
/**
- * A single ingredient used in the recipe, e.g. sugar, flour or garlic.
+ * The category of the recipe—for example, appetizer, entree, etc.
*
*
* @var string
*/
- protected $ingredients;
+ protected $recipeCategory;
/**
- * The cuisine of the recipe (for example, French or Ethiopian).
+ * Nutrition information about the recipe or menu item.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\NutritionInformation|string
*/
- protected $recipeCuisine;
+ protected $nutrition;
/**
* Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc.
@@ -65,55 +65,55 @@ public static function fieldList() {
protected $suitableForDiet;
/**
- * Nutrition information about the recipe or menu item.
+ * The cuisine of the recipe (for example, French or Ethiopian).
*
*
- * @var \OpenActive\Models\SchemaOrg\NutritionInformation|string
+ * @var string
*/
- protected $nutrition;
+ protected $recipeCuisine;
/**
- * The method of cooking, such as Frying, Steaming, ...
+ * The time it takes to actually cook the dish, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var string
+ * @var DateInterval|string|null
*/
- protected $cookingMethod;
+ protected $cookTime;
/**
- * A single ingredient used in the recipe, e.g. sugar, flour or garlic.
+ * The quantity produced by the recipe (for example, number of people served, number of servings, etc).
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $recipeIngredient;
+ protected $recipeYield;
/**
- * The quantity produced by the recipe (for example, number of people served, number of servings, etc).
+ * A single ingredient used in the recipe, e.g. sugar, flour or garlic.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @var string
*/
- protected $recipeYield;
+ protected $recipeIngredient;
/**
- * The time it takes to actually cook the dish, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The method of cooking, such as Frying, Steaming, ...
*
*
- * @var DateInterval|string|null
+ * @var string
*/
- protected $cookTime;
+ protected $cookingMethod;
/**
- * 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|\OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork
*/
public function getRecipeInstructions()
{
@@ -121,7 +121,7 @@ public function getRecipeInstructions()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList $recipeInstructions
+ * @param string|\OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork $recipeInstructions
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
@@ -129,8 +129,8 @@ public function setRecipeInstructions($recipeInstructions)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"\OpenActive\Models\SchemaOrg\ItemList",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
];
$recipeInstructions = self::checkTypes($recipeInstructions, $types);
@@ -141,49 +141,50 @@ public function setRecipeInstructions($recipeInstructions)
/**
* @return string
*/
- public function getIngredients()
+ public function getRecipeCategory()
{
- return $this->ingredients;
+ return $this->recipeCategory;
}
/**
- * @param string $ingredients
+ * @param string $recipeCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIngredients($ingredients)
+ public function setRecipeCategory($recipeCategory)
{
$types = [
"string",
];
- $ingredients = self::checkTypes($ingredients, $types);
+ $recipeCategory = self::checkTypes($recipeCategory, $types);
- $this->ingredients = $ingredients;
+ $this->recipeCategory = $recipeCategory;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\NutritionInformation|string
*/
- public function getRecipeCuisine()
+ public function getNutrition()
{
- return $this->recipeCuisine;
+ return $this->nutrition;
}
/**
- * @param string $recipeCuisine
+ * @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 setRecipeCuisine($recipeCuisine)
+ public function setNutrition($nutrition)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\NutritionInformation",
"string",
];
- $recipeCuisine = self::checkTypes($recipeCuisine, $types);
+ $nutrition = self::checkTypes($nutrition, $types);
- $this->recipeCuisine = $recipeCuisine;
+ $this->nutrition = $nutrition;
}
/**
@@ -212,151 +213,150 @@ public function setSuitableForDiet($suitableForDiet)
}
/**
- * @return \OpenActive\Models\SchemaOrg\NutritionInformation|string
+ * @return string
*/
- public function getNutrition()
+ public function getRecipeCuisine()
{
- return $this->nutrition;
+ return $this->recipeCuisine;
}
/**
- * @param \OpenActive\Models\SchemaOrg\NutritionInformation|string $nutrition
+ * @param string $recipeCuisine
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNutrition($nutrition)
+ public function setRecipeCuisine($recipeCuisine)
{
$types = [
- "\OpenActive\Models\SchemaOrg\NutritionInformation",
"string",
];
- $nutrition = self::checkTypes($nutrition, $types);
+ $recipeCuisine = self::checkTypes($recipeCuisine, $types);
- $this->nutrition = $nutrition;
+ $this->recipeCuisine = $recipeCuisine;
}
/**
- * @return string
+ * @return DateInterval|string|null
*/
- public function getCookingMethod()
+ public function getCookTime()
{
- return $this->cookingMethod;
+ return $this->cookTime;
}
/**
- * @param string $cookingMethod
+ * @param DateInterval|string|null $cookTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCookingMethod($cookingMethod)
+ public function setCookTime($cookTime)
{
$types = [
+ "DateInterval",
"string",
+ "null",
];
- $cookingMethod = self::checkTypes($cookingMethod, $types);
+ $cookTime = self::checkTypes($cookTime, $types);
- $this->cookingMethod = $cookingMethod;
+ $this->cookTime = $cookTime;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getRecipeIngredient()
+ public function getRecipeYield()
{
- return $this->recipeIngredient;
+ return $this->recipeYield;
}
/**
- * @param string $recipeIngredient
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $recipeYield
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecipeIngredient($recipeIngredient)
+ public function setRecipeYield($recipeYield)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $recipeIngredient = self::checkTypes($recipeIngredient, $types);
+ $recipeYield = self::checkTypes($recipeYield, $types);
- $this->recipeIngredient = $recipeIngredient;
+ $this->recipeYield = $recipeYield;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @return string
*/
- public function getRecipeYield()
+ public function getRecipeIngredient()
{
- return $this->recipeYield;
+ return $this->recipeIngredient;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $recipeYield
+ * @param string $recipeIngredient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecipeYield($recipeYield)
+ public function setRecipeIngredient($recipeIngredient)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $recipeYield = self::checkTypes($recipeYield, $types);
+ $recipeIngredient = self::checkTypes($recipeIngredient, $types);
- $this->recipeYield = $recipeYield;
+ $this->recipeIngredient = $recipeIngredient;
}
/**
- * @return DateInterval|string|null
+ * @return string
*/
- public function getCookTime()
+ public function getCookingMethod()
{
- return $this->cookTime;
+ return $this->cookingMethod;
}
/**
- * @param DateInterval|string|null $cookTime
+ * @param string $cookingMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCookTime($cookTime)
+ public function setCookingMethod($cookingMethod)
{
$types = [
- "DateInterval",
"string",
- "null",
];
- $cookTime = self::checkTypes($cookTime, $types);
+ $cookingMethod = self::checkTypes($cookingMethod, $types);
- $this->cookTime = $cookTime;
+ $this->cookingMethod = $cookingMethod;
}
/**
* @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..c7b374e5 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|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
*/
protected $category;
/**
- * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
*/
public function getCategory()
{
@@ -40,15 +40,15 @@ public function getCategory()
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
+ * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setCategory($category)
{
$types = [
- "string",
"\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
+ "string",
"\OpenActive\Models\SchemaOrg\Thing",
"\OpenActive\Models\SchemaOrg\CategoryCode",
"null",
diff --git a/src/Models/SchemaOrg/RentAction.php b/src/Models/SchemaOrg/RentAction.php
index e4936bdd..808deb82 100644
--- a/src/Models/SchemaOrg/RentAction.php
+++ b/src/Models/SchemaOrg/RentAction.php
@@ -17,78 +17,78 @@ public static function getType()
public static function fieldList() {
$fields = [
- "landlord" => "landlord",
"realEstateAgent" => "realEstateAgent",
+ "landlord" => "landlord",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A sub property of participant. The owner of the real estate property.
+ * A sub property of participant. The real estate agent involved in the action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\RealEstateAgent|string
*/
- protected $landlord;
+ protected $realEstateAgent;
/**
- * A sub property of participant. The real estate agent involved in the action.
+ * A sub property of participant. The owner of the real estate property.
*
*
- * @var \OpenActive\Models\SchemaOrg\RealEstateAgent|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $realEstateAgent;
+ protected $landlord;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\RealEstateAgent|string
*/
- public function getLandlord()
+ public function getRealEstateAgent()
{
- return $this->landlord;
+ return $this->realEstateAgent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $landlord
+ * @param \OpenActive\Models\SchemaOrg\RealEstateAgent|string $realEstateAgent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLandlord($landlord)
+ public function setRealEstateAgent($realEstateAgent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\RealEstateAgent",
"string",
];
- $landlord = self::checkTypes($landlord, $types);
+ $realEstateAgent = self::checkTypes($realEstateAgent, $types);
- $this->landlord = $landlord;
+ $this->realEstateAgent = $realEstateAgent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\RealEstateAgent|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getRealEstateAgent()
+ public function getLandlord()
{
- return $this->realEstateAgent;
+ return $this->landlord;
}
/**
- * @param \OpenActive\Models\SchemaOrg\RealEstateAgent|string $realEstateAgent
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $landlord
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRealEstateAgent($realEstateAgent)
+ public function setLandlord($landlord)
{
$types = [
- "\OpenActive\Models\SchemaOrg\RealEstateAgent",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $realEstateAgent = self::checkTypes($realEstateAgent, $types);
+ $landlord = self::checkTypes($landlord, $types);
- $this->realEstateAgent = $realEstateAgent;
+ $this->landlord = $landlord;
}
}
diff --git a/src/Models/SchemaOrg/RentalCarReservation.php b/src/Models/SchemaOrg/RentalCarReservation.php
index 0b0ae3fe..488af4f1 100644
--- a/src/Models/SchemaOrg/RentalCarReservation.php
+++ b/src/Models/SchemaOrg/RentalCarReservation.php
@@ -17,22 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
- "dropoffLocation" => "dropoffLocation",
- "dropoffTime" => "dropoffTime",
"pickupTime" => "pickupTime",
+ "dropoffTime" => "dropoffTime",
"pickupLocation" => "pickupLocation",
+ "dropoffLocation" => "dropoffLocation",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Where a rental car can be dropped off.
+ * When a taxi will pick up a passenger or a rental car can be picked up.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var DateTime|null
*/
- protected $dropoffLocation;
+ protected $pickupTime;
/**
* When a rental car can be dropped off.
@@ -43,44 +43,44 @@ public static function fieldList() {
protected $dropoffTime;
/**
- * When a taxi will pickup a passenger or a rental car can be picked up.
+ * Where a taxi will pick up a passenger or a rental car can be picked up.
*
*
- * @var DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $pickupTime;
+ protected $pickupLocation;
/**
- * Where a taxi will pick up a passenger or a rental car can be picked up.
+ * Where a rental car can be dropped off.
*
*
* @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $pickupLocation;
+ protected $dropoffLocation;
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return DateTime|null
*/
- public function getDropoffLocation()
+ public function getPickupTime()
{
- return $this->dropoffLocation;
+ return $this->pickupTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $dropoffLocation
+ * @param DateTime|null $pickupTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDropoffLocation($dropoffLocation)
+ public function setPickupTime($pickupTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "string",
+ "DateTime",
+ "null",
];
- $dropoffLocation = self::checkTypes($dropoffLocation, $types);
+ $pickupTime = self::checkTypes($pickupTime, $types);
- $this->dropoffLocation = $dropoffLocation;
+ $this->pickupTime = $pickupTime;
}
/**
@@ -109,53 +109,53 @@ public function setDropoffTime($dropoffTime)
}
/**
- * @return DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getPickupTime()
+ public function getPickupLocation()
{
- return $this->pickupTime;
+ return $this->pickupLocation;
}
/**
- * @param DateTime|null $pickupTime
+ * @param \OpenActive\Models\SchemaOrg\Place|string $pickupLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPickupTime($pickupTime)
+ public function setPickupLocation($pickupLocation)
{
$types = [
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "string",
];
- $pickupTime = self::checkTypes($pickupTime, $types);
+ $pickupLocation = self::checkTypes($pickupLocation, $types);
- $this->pickupTime = $pickupTime;
+ $this->pickupLocation = $pickupLocation;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getPickupLocation()
+ public function getDropoffLocation()
{
- return $this->pickupLocation;
+ return $this->dropoffLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $pickupLocation
+ * @param \OpenActive\Models\SchemaOrg\Place|string $dropoffLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPickupLocation($pickupLocation)
+ public function setDropoffLocation($dropoffLocation)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $pickupLocation = self::checkTypes($pickupLocation, $types);
+ $dropoffLocation = self::checkTypes($dropoffLocation, $types);
- $this->pickupLocation = $pickupLocation;
+ $this->dropoffLocation = $dropoffLocation;
}
}
diff --git a/src/Models/SchemaOrg/RepaymentSpecification.php b/src/Models/SchemaOrg/RepaymentSpecification.php
index bdca1b02..a567ecbc 100644
--- a/src/Models/SchemaOrg/RepaymentSpecification.php
+++ b/src/Models/SchemaOrg/RepaymentSpecification.php
@@ -17,23 +17,23 @@ public static function getType()
public static function fieldList() {
$fields = [
- "numberOfLoanPayments" => "numberOfLoanPayments",
+ "downPayment" => "downPayment",
"earlyPrepaymentPenalty" => "earlyPrepaymentPenalty",
"loanPaymentAmount" => "loanPaymentAmount",
+ "numberOfLoanPayments" => "numberOfLoanPayments",
"loanPaymentFrequency" => "loanPaymentFrequency",
- "downPayment" => "downPayment",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The number of payments contractually required at origination to repay the loan. For monthly paying loans this is the number of months from the contractual first payment date to the maturity date.
+ * a type of payment made in cash during the onset of the purchase of an expensive good/service. The payment typically represents only a percentage of the full purchase price.
*
*
- * @var Number|null
+ * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
*/
- protected $numberOfLoanPayments;
+ protected $downPayment;
/**
* The amount to be paid as a penalty in the event of early payment of the loan.
@@ -52,44 +52,46 @@ public static function fieldList() {
protected $loanPaymentAmount;
/**
- * 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 Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
*/
- public function getNumberOfLoanPayments()
+ public function getDownPayment()
{
- return $this->numberOfLoanPayments;
+ return $this->downPayment;
}
/**
- * @param Number|null $numberOfLoanPayments
+ * @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 setNumberOfLoanPayments($numberOfLoanPayments)
+ public function setDownPayment($downPayment)
{
$types = [
"Number",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
"null",
];
- $numberOfLoanPayments = self::checkTypes($numberOfLoanPayments, $types);
+ $downPayment = self::checkTypes($downPayment, $types);
- $this->numberOfLoanPayments = $numberOfLoanPayments;
+ $this->downPayment = $downPayment;
}
/**
@@ -145,53 +147,51 @@ public function setLoanPaymentAmount($loanPaymentAmount)
/**
* @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/ReplaceAction.php b/src/Models/SchemaOrg/ReplaceAction.php
index e4cbd8a2..dc19979b 100644
--- a/src/Models/SchemaOrg/ReplaceAction.php
+++ b/src/Models/SchemaOrg/ReplaceAction.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "replacee" => "replacee",
"replacer" => "replacer",
+ "replacee" => "replacee",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A sub property of object. The object that is being replaced.
+ * A sub property of object. The object that replaces.
*
*
* @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $replacee;
+ protected $replacer;
/**
- * A sub property of object. The object that replaces.
+ * A sub property of object. The object that is being replaced.
*
*
* @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $replacer;
+ protected $replacee;
/**
* @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getReplacee()
+ public function getReplacer()
{
- return $this->replacee;
+ return $this->replacer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $replacee
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $replacer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReplacee($replacee)
+ public function setReplacer($replacer)
{
$types = [
"\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $replacee = self::checkTypes($replacee, $types);
+ $replacer = self::checkTypes($replacer, $types);
- $this->replacee = $replacee;
+ $this->replacer = $replacer;
}
/**
* @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getReplacer()
+ public function getReplacee()
{
- return $this->replacer;
+ return $this->replacee;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $replacer
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $replacee
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReplacer($replacer)
+ public function setReplacee($replacee)
{
$types = [
"\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $replacer = self::checkTypes($replacer, $types);
+ $replacee = self::checkTypes($replacee, $types);
- $this->replacer = $replacer;
+ $this->replacee = $replacee;
}
}
diff --git a/src/Models/SchemaOrg/Reservation.php b/src/Models/SchemaOrg/Reservation.php
index aa63acae..5b2a6d14 100644
--- a/src/Models/SchemaOrg/Reservation.php
+++ b/src/Models/SchemaOrg/Reservation.php
@@ -17,111 +17,111 @@ public static function getType()
public static function fieldList() {
$fields = [
- "modifiedTime" => "modifiedTime",
- "totalPrice" => "totalPrice",
- "reservedTicket" => "reservedTicket",
- "reservationStatus" => "reservationStatus",
- "provider" => "provider",
- "broker" => "broker",
- "bookingTime" => "bookingTime",
- "programMembershipUsed" => "programMembershipUsed",
"bookingAgent" => "bookingAgent",
+ "bookingTime" => "bookingTime",
"priceCurrency" => "priceCurrency",
+ "reservedTicket" => "reservedTicket",
+ "modifiedTime" => "modifiedTime",
+ "reservationFor" => "reservationFor",
"reservationId" => "reservationId",
+ "broker" => "broker",
+ "totalPrice" => "totalPrice",
+ "provider" => "provider",
+ "reservationStatus" => "reservationStatus",
"underName" => "underName",
- "reservationFor" => "reservationFor",
+ "programMembershipUsed" => "programMembershipUsed",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The date and time the reservation was modified.
+ * 'bookingAgent' is an out-dated term indicating a 'broker' that serves as a booking agent.
*
*
- * @var DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $modifiedTime;
+ protected $bookingAgent;
/**
- * The total price for the reservation or ticket, including applicable taxes, shipping, etc.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
+ * The date and time the reservation was booked.
*
*
- * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null
+ * @var DateTime|null
*/
- protected $totalPrice;
+ protected $bookingTime;
/**
- * A ticket associated with the reservation.
+ * 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\Ticket|string
+ * @var string
*/
- protected $reservedTicket;
+ protected $priceCurrency;
/**
- * The current status of the reservation.
+ * A ticket associated with the reservation.
*
*
- * @var \OpenActive\Models\SchemaOrg\ReservationStatusType|string
+ * @var \OpenActive\Models\SchemaOrg\Ticket|string
*/
- protected $reservationStatus;
+ protected $reservedTicket;
/**
- * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
+ * The date and time the reservation was modified.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var DateTime|null
*/
- protected $provider;
+ protected $modifiedTime;
/**
- * 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.
+ * A unique identifier for the reservation.
*
*
- * @var DateTime|null
+ * @var string
*/
- protected $bookingTime;
+ protected $reservationId;
/**
- * Any membership in a frequent flyer, hotel loyalty program, etc. being applied to the reservation.
+ * An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred.
*
*
- * @var \OpenActive\Models\SchemaOrg\ProgramMembership|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $programMembershipUsed;
+ protected $broker;
/**
- * 'bookingAgent' is an out-dated term indicating a 'broker' that serves as a booking agent.
+ * 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\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var string|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|null
*/
- protected $bookingAgent;
+ protected $totalPrice;
/**
- * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR".
+ * The 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\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $priceCurrency;
+ protected $provider;
/**
- * A unique identifier for the reservation.
+ * The current status of the reservation.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\ReservationStatusType|string
*/
- protected $reservationId;
+ protected $reservationStatus;
/**
* The person or organization the reservation or ticket is for.
@@ -132,289 +132,289 @@ public static function fieldList() {
protected $underName;
/**
- * The thing -- flight, event, restaurant,etc. being reserved.
+ * Any membership in a frequent flyer, hotel loyalty program, etc. being applied to the reservation.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\ProgramMembership|string
*/
- protected $reservationFor;
+ protected $programMembershipUsed;
/**
- * @return DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getModifiedTime()
+ public function getBookingAgent()
{
- return $this->modifiedTime;
+ return $this->bookingAgent;
}
/**
- * @param DateTime|null $modifiedTime
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $bookingAgent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setModifiedTime($modifiedTime)
+ public function setBookingAgent($bookingAgent)
{
$types = [
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $modifiedTime = self::checkTypes($modifiedTime, $types);
+ $bookingAgent = self::checkTypes($bookingAgent, $types);
- $this->modifiedTime = $modifiedTime;
+ $this->bookingAgent = $bookingAgent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null
+ * @return DateTime|null
*/
- public function getTotalPrice()
+ public function getBookingTime()
{
- return $this->totalPrice;
+ return $this->bookingTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null $totalPrice
+ * @param DateTime|null $bookingTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTotalPrice($totalPrice)
+ public function setBookingTime($bookingTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
- "string",
- "Number",
+ "DateTime",
"null",
];
- $totalPrice = self::checkTypes($totalPrice, $types);
+ $bookingTime = self::checkTypes($bookingTime, $types);
- $this->totalPrice = $totalPrice;
+ $this->bookingTime = $bookingTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Ticket|string
+ * @return string
*/
- public function getReservedTicket()
+ public function getPriceCurrency()
{
- return $this->reservedTicket;
+ return $this->priceCurrency;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Ticket|string $reservedTicket
+ * @param string $priceCurrency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReservedTicket($reservedTicket)
+ public function setPriceCurrency($priceCurrency)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Ticket",
"string",
];
- $reservedTicket = self::checkTypes($reservedTicket, $types);
+ $priceCurrency = self::checkTypes($priceCurrency, $types);
- $this->reservedTicket = $reservedTicket;
+ $this->priceCurrency = $priceCurrency;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ReservationStatusType|string
+ * @return \OpenActive\Models\SchemaOrg\Ticket|string
*/
- public function getReservationStatus()
+ public function getReservedTicket()
{
- return $this->reservationStatus;
+ return $this->reservedTicket;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ReservationStatusType|string $reservationStatus
+ * @param \OpenActive\Models\SchemaOrg\Ticket|string $reservedTicket
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReservationStatus($reservationStatus)
+ public function setReservedTicket($reservedTicket)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ReservationStatusType",
+ "\OpenActive\Models\SchemaOrg\Ticket",
"string",
];
- $reservationStatus = self::checkTypes($reservationStatus, $types);
+ $reservedTicket = self::checkTypes($reservedTicket, $types);
- $this->reservationStatus = $reservationStatus;
+ $this->reservedTicket = $reservedTicket;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return DateTime|null
*/
- public function getProvider()
+ public function getModifiedTime()
{
- return $this->provider;
+ return $this->modifiedTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @param DateTime|null $modifiedTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProvider($provider)
+ public function setModifiedTime($modifiedTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "DateTime",
+ "null",
];
- $provider = self::checkTypes($provider, $types);
+ $modifiedTime = self::checkTypes($modifiedTime, $types);
- $this->provider = $provider;
+ $this->modifiedTime = $modifiedTime;
}
/**
- * @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 string
*/
- public function getBookingTime()
+ public function getReservationId()
{
- return $this->bookingTime;
+ return $this->reservationId;
}
/**
- * @param DateTime|null $bookingTime
+ * @param string $reservationId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBookingTime($bookingTime)
+ public function setReservationId($reservationId)
{
$types = [
- "DateTime",
- "null",
+ "string",
];
- $bookingTime = self::checkTypes($bookingTime, $types);
+ $reservationId = self::checkTypes($reservationId, $types);
- $this->bookingTime = $bookingTime;
+ $this->reservationId = $reservationId;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ProgramMembership|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getProgramMembershipUsed()
+ public function getBroker()
{
- return $this->programMembershipUsed;
+ return $this->broker;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ProgramMembership|string $programMembershipUsed
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProgramMembershipUsed($programMembershipUsed)
+ public function setBroker($broker)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ProgramMembership",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $programMembershipUsed = self::checkTypes($programMembershipUsed, $types);
+ $broker = self::checkTypes($broker, $types);
- $this->programMembershipUsed = $programMembershipUsed;
+ $this->broker = $broker;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return string|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|null
*/
- public function getBookingAgent()
+ public function getTotalPrice()
{
- return $this->bookingAgent;
+ return $this->totalPrice;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $bookingAgent
+ * @param string|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|null $totalPrice
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBookingAgent($bookingAgent)
+ public function setTotalPrice($totalPrice)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
+ "Number",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "null",
];
- $bookingAgent = self::checkTypes($bookingAgent, $types);
+ $totalPrice = self::checkTypes($totalPrice, $types);
- $this->bookingAgent = $bookingAgent;
+ $this->totalPrice = $totalPrice;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getPriceCurrency()
+ public function getProvider()
{
- return $this->priceCurrency;
+ return $this->provider;
}
/**
- * @param string $priceCurrency
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $provider
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPriceCurrency($priceCurrency)
+ public function setProvider($provider)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $priceCurrency = self::checkTypes($priceCurrency, $types);
+ $provider = self::checkTypes($provider, $types);
- $this->priceCurrency = $priceCurrency;
+ $this->provider = $provider;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\ReservationStatusType|string
*/
- public function getReservationId()
+ public function getReservationStatus()
{
- return $this->reservationId;
+ return $this->reservationStatus;
}
/**
- * @param string $reservationId
+ * @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 setReservationId($reservationId)
+ public function setReservationStatus($reservationStatus)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ReservationStatusType",
"string",
];
- $reservationId = self::checkTypes($reservationId, $types);
+ $reservationStatus = self::checkTypes($reservationStatus, $types);
- $this->reservationId = $reservationId;
+ $this->reservationStatus = $reservationStatus;
}
/**
@@ -444,28 +444,28 @@ public function setUnderName($underName)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\ProgramMembership|string
*/
- public function getReservationFor()
+ public function getProgramMembershipUsed()
{
- return $this->reservationFor;
+ return $this->programMembershipUsed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $reservationFor
+ * @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 setReservationFor($reservationFor)
+ public function setProgramMembershipUsed($programMembershipUsed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\ProgramMembership",
"string",
];
- $reservationFor = self::checkTypes($reservationFor, $types);
+ $programMembershipUsed = self::checkTypes($programMembershipUsed, $types);
- $this->reservationFor = $reservationFor;
+ $this->programMembershipUsed = $programMembershipUsed;
}
}
diff --git a/src/Models/SchemaOrg/ReturnAction.php b/src/Models/SchemaOrg/ReturnAction.php
index d6d476a0..182de915 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\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
protected $recipient;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
public function getRecipient()
{
@@ -40,17 +40,17 @@ public function getRecipient()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setRecipient($recipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
diff --git a/src/Models/SchemaOrg/Review.php b/src/Models/SchemaOrg/Review.php
index 07193ea8..de86e7f2 100644
--- a/src/Models/SchemaOrg/Review.php
+++ b/src/Models/SchemaOrg/Review.php
@@ -17,51 +17,55 @@ public static function getType()
public static function fieldList() {
$fields = [
- "reviewRating" => "reviewRating",
"itemReviewed" => "itemReviewed",
- "negativeNotes" => "negativeNotes",
- "reviewAspect" => "reviewAspect",
- "associatedClaimReview" => "associatedClaimReview",
+ "reviewBody" => "reviewBody",
"positiveNotes" => "positiveNotes",
"associatedReview" => "associatedReview",
+ "associatedClaimReview" => "associatedClaimReview",
+ "reviewAspect" => "reviewAspect",
"associatedMediaReview" => "associatedMediaReview",
- "reviewBody" => "reviewBody",
+ "reviewRating" => "reviewRating",
+ "negativeNotes" => "negativeNotes",
];
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 item that is being reviewed/rated.
*
*
- * @var \OpenActive\Models\SchemaOrg\Rating|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $reviewRating;
+ protected $itemReviewed;
/**
- * The item that is being reviewed/rated.
+ * The actual body of the review.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var string
*/
- protected $itemReviewed;
+ protected $reviewBody;
/**
- * Indicates, in the context of a [[Review]] (e.g. framed as 'pro' vs 'con' considerations), negative considerations - either as unstructured text, or a list.
+ * Provides positive considerations regarding something, for example product highlights or (alongside [[negativeNotes]]) pro/con lists for reviews.
+ *
+ * In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described.
+ *
+ * The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most positive is at the beginning of the list).
*
*
- * @var \OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList
+ * @var \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList
*/
- protected $negativeNotes;
+ protected $positiveNotes;
/**
- * This Review or Rating is relevant to this part or facet of the itemReviewed.
+ * An associated [[Review]].
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $reviewAspect;
+ protected $associatedReview;
/**
* 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]].
@@ -72,136 +76,141 @@ public static function fieldList() {
protected $associatedClaimReview;
/**
- * Indicates, in the context of a [[Review]] (e.g. framed as 'pro' vs 'con' considerations), positive considerations - either as unstructured text, or a list.
+ * This Review or Rating is relevant to this part or facet of the itemReviewed.
*
*
- * @var \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList
+ * @var string
*/
- protected $positiveNotes;
+ protected $reviewAspect;
/**
- * An associated [[Review]].
+ * 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 $associatedReview;
+ protected $associatedMediaReview;
/**
- * An associated [[MediaReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]].
+ * The rating given in this review. Note that reviews can themselves be rated. The ```reviewRating``` applies to rating given by the review. The [[aggregateRating]] property applies to the review itself, as a creative work.
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var \OpenActive\Models\SchemaOrg\Rating|string
*/
- protected $associatedMediaReview;
+ protected $reviewRating;
/**
- * The actual body of the review.
+ * 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 string
+ * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem
*/
- protected $reviewBody;
+ protected $negativeNotes;
/**
- * @return \OpenActive\Models\SchemaOrg\Rating|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getReviewRating()
+ public function getItemReviewed()
{
- return $this->reviewRating;
+ return $this->itemReviewed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Rating|string $reviewRating
+ * @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 setReviewRating($reviewRating)
+ public function setItemReviewed($itemReviewed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Rating",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $reviewRating = self::checkTypes($reviewRating, $types);
+ $itemReviewed = self::checkTypes($itemReviewed, $types);
- $this->reviewRating = $reviewRating;
+ $this->itemReviewed = $itemReviewed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return string
*/
- public function getItemReviewed()
+ public function getReviewBody()
{
- return $this->itemReviewed;
+ return $this->reviewBody;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $itemReviewed
+ * @param string $reviewBody
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItemReviewed($itemReviewed)
+ public function setReviewBody($reviewBody)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $itemReviewed = self::checkTypes($itemReviewed, $types);
+ $reviewBody = self::checkTypes($reviewBody, $types);
- $this->itemReviewed = $itemReviewed;
+ $this->reviewBody = $reviewBody;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList
+ * @return \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList
*/
- public function getNegativeNotes()
+ public function getPositiveNotes()
{
- return $this->negativeNotes;
+ return $this->positiveNotes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList $negativeNotes
+ * @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 setNegativeNotes($negativeNotes)
+ public function setPositiveNotes($positiveNotes)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ListItem",
- "string",
"\OpenActive\Models\SchemaOrg\WebContent",
+ "string",
+ "\OpenActive\Models\SchemaOrg\ListItem",
"\OpenActive\Models\SchemaOrg\ItemList",
];
- $negativeNotes = self::checkTypes($negativeNotes, $types);
+ $positiveNotes = self::checkTypes($positiveNotes, $types);
- $this->negativeNotes = $negativeNotes;
+ $this->positiveNotes = $positiveNotes;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getReviewAspect()
+ public function getAssociatedReview()
{
- return $this->reviewAspect;
+ return $this->associatedReview;
}
/**
- * @param string $reviewAspect
+ * @param \OpenActive\Models\SchemaOrg\Review|string $associatedReview
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReviewAspect($reviewAspect)
+ public function setAssociatedReview($associatedReview)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $reviewAspect = self::checkTypes($reviewAspect, $types);
+ $associatedReview = self::checkTypes($associatedReview, $types);
- $this->reviewAspect = $reviewAspect;
+ $this->associatedReview = $associatedReview;
}
/**
@@ -230,104 +239,104 @@ public function setAssociatedClaimReview($associatedClaimReview)
}
/**
- * @return \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList
+ * @return string
*/
- public function getPositiveNotes()
+ public function getReviewAspect()
{
- return $this->positiveNotes;
+ return $this->reviewAspect;
}
/**
- * @param \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList $positiveNotes
+ * @param string $reviewAspect
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPositiveNotes($positiveNotes)
+ public function setReviewAspect($reviewAspect)
{
$types = [
- "\OpenActive\Models\SchemaOrg\WebContent",
"string",
- "\OpenActive\Models\SchemaOrg\ListItem",
- "\OpenActive\Models\SchemaOrg\ItemList",
];
- $positiveNotes = self::checkTypes($positiveNotes, $types);
+ $reviewAspect = self::checkTypes($reviewAspect, $types);
- $this->positiveNotes = $positiveNotes;
+ $this->reviewAspect = $reviewAspect;
}
/**
* @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getAssociatedReview()
+ public function getAssociatedMediaReview()
{
- return $this->associatedReview;
+ return $this->associatedMediaReview;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $associatedReview
+ * @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 setAssociatedReview($associatedReview)
+ public function setAssociatedMediaReview($associatedMediaReview)
{
$types = [
"\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $associatedReview = self::checkTypes($associatedReview, $types);
+ $associatedMediaReview = self::checkTypes($associatedMediaReview, $types);
- $this->associatedReview = $associatedReview;
+ $this->associatedMediaReview = $associatedMediaReview;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return \OpenActive\Models\SchemaOrg\Rating|string
*/
- public function getAssociatedMediaReview()
+ public function getReviewRating()
{
- return $this->associatedMediaReview;
+ return $this->reviewRating;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $associatedMediaReview
+ * @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 setAssociatedMediaReview($associatedMediaReview)
+ public function setReviewRating($reviewRating)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
+ "\OpenActive\Models\SchemaOrg\Rating",
"string",
];
- $associatedMediaReview = self::checkTypes($associatedMediaReview, $types);
+ $reviewRating = self::checkTypes($reviewRating, $types);
- $this->associatedMediaReview = $associatedMediaReview;
+ $this->reviewRating = $reviewRating;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem
*/
- public function getReviewBody()
+ public function getNegativeNotes()
{
- return $this->reviewBody;
+ return $this->negativeNotes;
}
/**
- * @param string $reviewBody
+ * @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 setReviewBody($reviewBody)
+ public function setNegativeNotes($negativeNotes)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ItemList",
+ "\OpenActive\Models\SchemaOrg\WebContent",
"string",
+ "\OpenActive\Models\SchemaOrg\ListItem",
];
- $reviewBody = self::checkTypes($reviewBody, $types);
+ $negativeNotes = self::checkTypes($negativeNotes, $types);
- $this->reviewBody = $reviewBody;
+ $this->negativeNotes = $negativeNotes;
}
}
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..937f1235 100644
--- a/src/Models/SchemaOrg/Role.php
+++ b/src/Models/SchemaOrg/Role.php
@@ -19,8 +19,8 @@ public static function fieldList() {
$fields = [
"namedPosition" => "namedPosition",
"startDate" => "startDate",
- "endDate" => "endDate",
"roleName" => "roleName",
+ "endDate" => "endDate",
];
return array_merge(parent::fieldList(), $fields);
@@ -43,20 +43,20 @@ public static function fieldList() {
protected $startDate;
/**
- * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * A role played, performed or filled by a person or organization. For example, the team of creators for a comic book might fill the roles named 'inker', 'penciller', and 'letterer'; or an athlete in a SportsTeam might play in the position named 'Quarterback'.
*
*
- * @var Date|DateTime|null
+ * @var string
*/
- protected $endDate;
+ protected $roleName;
/**
- * A role played, performed or filled by a person or organization. For example, the team of creators for a comic book might fill the roles named 'inker', 'penciller', and 'letterer'; or an athlete in a SportsTeam might play in the position named 'Quarterback'.
+ * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var string
+ * @var Date|DateTime|null
*/
- protected $roleName;
+ protected $endDate;
/**
* @return string
@@ -109,53 +109,53 @@ public function setStartDate($startDate)
}
/**
- * @return Date|DateTime|null
+ * @return string
*/
- public function getEndDate()
+ public function getRoleName()
{
- return $this->endDate;
+ return $this->roleName;
}
/**
- * @param Date|DateTime|null $endDate
+ * @param string $roleName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndDate($endDate)
+ public function setRoleName($roleName)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
];
- $endDate = self::checkTypes($endDate, $types);
+ $roleName = self::checkTypes($roleName, $types);
- $this->endDate = $endDate;
+ $this->roleName = $roleName;
}
/**
- * @return string
+ * @return Date|DateTime|null
*/
- public function getRoleName()
+ public function getEndDate()
{
- return $this->roleName;
+ return $this->endDate;
}
/**
- * @param string $roleName
+ * @param Date|DateTime|null $endDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRoleName($roleName)
+ public function setEndDate($endDate)
{
$types = [
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $roleName = self::checkTypes($roleName, $types);
+ $endDate = self::checkTypes($endDate, $types);
- $this->roleName = $roleName;
+ $this->endDate = $endDate;
}
}
diff --git a/src/Models/SchemaOrg/RsvpAction.php b/src/Models/SchemaOrg/RsvpAction.php
index e75f683d..216610bf 100644
--- a/src/Models/SchemaOrg/RsvpAction.php
+++ b/src/Models/SchemaOrg/RsvpAction.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"rsvpResponse" => "rsvpResponse",
- "comment" => "comment",
"additionalNumberOfGuests" => "additionalNumberOfGuests",
+ "comment" => "comment",
];
return array_merge(parent::fieldList(), $fields);
@@ -34,20 +34,20 @@ public static function fieldList() {
protected $rsvpResponse;
/**
- * Comments, typically from users.
+ * If responding yes, the number of guests who will attend in addition to the invitee.
*
*
- * @var \OpenActive\Models\SchemaOrg\Comment|string
+ * @var Number|null
*/
- protected $comment;
+ protected $additionalNumberOfGuests;
/**
- * If responding yes, the number of guests who will attend in addition to the invitee.
+ * Comments, typically from users.
*
*
- * @var Number|null
+ * @var \OpenActive\Models\SchemaOrg\Comment|string
*/
- protected $additionalNumberOfGuests;
+ protected $comment;
/**
* @return \OpenActive\Enums\SchemaOrg\RsvpResponseType|null
@@ -75,53 +75,53 @@ public function setRsvpResponse($rsvpResponse)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Comment|string
+ * @return Number|null
*/
- public function getComment()
+ public function getAdditionalNumberOfGuests()
{
- return $this->comment;
+ return $this->additionalNumberOfGuests;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Comment|string $comment
+ * @param Number|null $additionalNumberOfGuests
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setComment($comment)
+ public function setAdditionalNumberOfGuests($additionalNumberOfGuests)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Comment",
- "string",
+ "Number",
+ "null",
];
- $comment = self::checkTypes($comment, $types);
+ $additionalNumberOfGuests = self::checkTypes($additionalNumberOfGuests, $types);
- $this->comment = $comment;
+ $this->additionalNumberOfGuests = $additionalNumberOfGuests;
}
/**
- * @return Number|null
+ * @return \OpenActive\Models\SchemaOrg\Comment|string
*/
- public function getAdditionalNumberOfGuests()
+ public function getComment()
{
- return $this->additionalNumberOfGuests;
+ return $this->comment;
}
/**
- * @param Number|null $additionalNumberOfGuests
+ * @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 setAdditionalNumberOfGuests($additionalNumberOfGuests)
+ public function setComment($comment)
{
$types = [
- "Number",
- "null",
+ "\OpenActive\Models\SchemaOrg\Comment",
+ "string",
];
- $additionalNumberOfGuests = self::checkTypes($additionalNumberOfGuests, $types);
+ $comment = self::checkTypes($comment, $types);
- $this->additionalNumberOfGuests = $additionalNumberOfGuests;
+ $this->comment = $comment;
}
}
diff --git a/src/Models/SchemaOrg/Schedule.php b/src/Models/SchemaOrg/Schedule.php
index fbc813d2..25e94ca8 100644
--- a/src/Models/SchemaOrg/Schedule.php
+++ b/src/Models/SchemaOrg/Schedule.php
@@ -17,462 +17,462 @@ public static function getType()
public static function fieldList() {
$fields = [
- "scheduleTimezone" => "scheduleTimezone",
- "startDate" => "startDate",
- "exceptDate" => "exceptDate",
- "startTime" => "startTime",
- "repeatCount" => "repeatCount",
- "endDate" => "endDate",
"repeatFrequency" => "repeatFrequency",
- "duration" => "duration",
- "byMonthDay" => "byMonthDay",
- "endTime" => "endTime",
"byMonth" => "byMonth",
"byDay" => "byDay",
+ "repeatCount" => "repeatCount",
+ "startDate" => "startDate",
+ "endTime" => "endTime",
+ "byMonthDay" => "byMonthDay",
+ "startTime" => "startTime",
"byMonthWeek" => "byMonthWeek",
+ "duration" => "duration",
+ "scheduleTimezone" => "scheduleTimezone",
+ "exceptDate" => "exceptDate",
+ "endDate" => "endDate",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Indicates the timezone for which the time(s) indicated in the [[Schedule]] are given. The value provided should be among those listed in the IANA Time Zone Database.
+ * Defines the 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 string
+ * @var DateInterval|string|null
*/
- protected $scheduleTimezone;
+ protected $repeatFrequency;
/**
- * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * Defines the month(s) of the year on which a recurring [[Event]] takes place. Specified as an [[Integer]] between 1-12. January is 1.
*
*
- * @var Date|DateTime|null
+ * @var int|null
*/
- protected $startDate;
+ protected $byMonth;
/**
- * Defines a [[Date]] or [[DateTime]] during which a scheduled [[Event]] will not take place. The property allows exceptions to
- * a [[Schedule]] to be specified. If an exception is specified as a [[DateTime]] then only the event that would have started at that specific date and time
- * should be excluded from the schedule. If an exception is specified as a [[Date]] then any event that is scheduled for that 24 hour period should be
- * excluded from the schedule. This allows a whole day to be excluded from the schedule without having to itemise every scheduled event.
+ * Defines the day(s) of the 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 Date|DateTime|null
+ * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null
*/
- protected $exceptDate;
+ protected $byDay;
/**
- * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. e.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
+ * Defines the number of times a recurring [[Event]] will take place.
*
*
- * @var DateTime|string|null
+ * @var int|null
*/
- protected $startTime;
+ protected $repeatCount;
/**
- * Defines the number of times a recurring [[Event]] will take place
+ * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var int|null
+ * @var Date|DateTime|null
*/
- protected $repeatCount;
+ protected $startDate;
/**
- * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * 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 $endDate;
+ protected $endTime;
/**
- * 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.
+ * Defines the day(s) of the month on which a recurring [[Event]] takes place. Specified as an [[Integer]] between 1-31.
*
*
- * @var DateInterval|string|null
+ * @var int|null
*/
- protected $repeatFrequency;
+ protected $byMonthDay;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
*
*
- * @var DateInterval|string|null
+ * @var DateTime|string|null
*/
- protected $duration;
+ protected $startTime;
/**
- * Defines the day(s) of the month on which a recurring [[Event]] takes place. Specified as an [[Integer]] between 1-31.
+ * 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
*/
- protected $byMonthDay;
+ protected $byMonthWeek;
/**
- * 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 duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var DateTime|string|null
+ * @var DateInterval|string|null
*/
- protected $endTime;
+ protected $duration;
/**
- * Defines the month(s) of the year on which a recurring [[Event]] takes place. Specified as an [[Integer]] between 1-12. January is 1.
+ * Indicates the timezone for which the time(s) indicated in the [[Schedule]] are given. The value provided should be among those listed in the IANA Time Zone Database.
*
*
- * @var int|null
+ * @var string
*/
- protected $byMonth;
+ protected $scheduleTimezone;
/**
- * Defines the day(s) of the week on which a recurring [[Event]] takes place. May be specified using either [[DayOfWeek]], or alternatively [[Text]] conforming to iCal's syntax for byDay recurrence rules.
+ * 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 \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null
+ * @var Date|DateTime|null
*/
- protected $byDay;
+ protected $exceptDate;
/**
- * Defines the week(s) of the month on which a recurring Event takes place. Specified as an Integer between 1-5. For clarity, byMonthWeek is best used in conjunction with byDay to indicate concepts like the first and third Mondays of a month.
+ * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var int|null
+ * @var Date|DateTime|null
*/
- protected $byMonthWeek;
+ protected $endDate;
/**
- * @return string
+ * @return DateInterval|string|null
*/
- public function getScheduleTimezone()
+ public function getRepeatFrequency()
{
- return $this->scheduleTimezone;
+ return $this->repeatFrequency;
}
/**
- * @param string $scheduleTimezone
+ * @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;
}
/**
- * @return Date|DateTime|null
+ * @return int|null
*/
- public function getStartDate()
+ public function getByMonth()
{
- return $this->startDate;
+ return $this->byMonth;
}
/**
- * @param Date|DateTime|null $startDate
+ * @param int|null $byMonth
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartDate($startDate)
+ public function setByMonth($byMonth)
{
$types = [
- "Date",
- "DateTime",
+ "int",
"null",
];
- $startDate = self::checkTypes($startDate, $types);
+ $byMonth = self::checkTypes($byMonth, $types);
- $this->startDate = $startDate;
+ $this->byMonth = $byMonth;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null
*/
- public function getExceptDate()
+ public function getByDay()
{
- return $this->exceptDate;
+ return $this->byDay;
}
/**
- * @param Date|DateTime|null $exceptDate
+ * @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 setExceptDate($exceptDate)
+ public function setByDay($byDay)
{
$types = [
- "Date",
- "DateTime",
+ "\OpenActive\Enums\SchemaOrg\DayOfWeek",
+ "string",
"null",
];
- $exceptDate = self::checkTypes($exceptDate, $types);
+ $byDay = self::checkTypes($byDay, $types);
- $this->exceptDate = $exceptDate;
+ $this->byDay = $byDay;
}
/**
- * @return DateTime|string|null
+ * @return int|null
*/
- public function getStartTime()
+ public function getRepeatCount()
{
- return $this->startTime;
+ return $this->repeatCount;
}
/**
- * @param DateTime|string|null $startTime
+ * @param int|null $repeatCount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartTime($startTime)
+ public function setRepeatCount($repeatCount)
{
$types = [
- "DateTime",
- "Time",
+ "int",
"null",
];
- $startTime = self::checkTypes($startTime, $types);
+ $repeatCount = self::checkTypes($repeatCount, $types);
- $this->startTime = $startTime;
+ $this->repeatCount = $repeatCount;
}
/**
- * @return int|null
+ * @return Date|DateTime|null
*/
- public function getRepeatCount()
+ public function getStartDate()
{
- return $this->repeatCount;
+ return $this->startDate;
}
/**
- * @param int|null $repeatCount
+ * @param Date|DateTime|null $startDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRepeatCount($repeatCount)
+ public function setStartDate($startDate)
{
$types = [
- "int",
+ "Date",
+ "DateTime",
"null",
];
- $repeatCount = self::checkTypes($repeatCount, $types);
+ $startDate = self::checkTypes($startDate, $types);
- $this->repeatCount = $repeatCount;
+ $this->startDate = $startDate;
}
/**
- * @return Date|DateTime|null
+ * @return DateTime|string|null
*/
- public function getEndDate()
+ public function getEndTime()
{
- return $this->endDate;
+ return $this->endTime;
}
/**
- * @param Date|DateTime|null $endDate
+ * @param DateTime|string|null $endTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndDate($endDate)
+ public function setEndTime($endTime)
{
$types = [
- "Date",
"DateTime",
+ "Time",
"null",
];
- $endDate = self::checkTypes($endDate, $types);
+ $endTime = self::checkTypes($endTime, $types);
- $this->endDate = $endDate;
+ $this->endTime = $endTime;
}
/**
- * @return DateInterval|string|null
+ * @return int|null
*/
- public function getRepeatFrequency()
+ public function getByMonthDay()
{
- return $this->repeatFrequency;
+ return $this->byMonthDay;
}
/**
- * @param DateInterval|string|null $repeatFrequency
+ * @param int|null $byMonthDay
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRepeatFrequency($repeatFrequency)
+ public function setByMonthDay($byMonthDay)
{
$types = [
- "DateInterval",
- "string",
+ "int",
"null",
];
- $repeatFrequency = self::checkTypes($repeatFrequency, $types);
+ $byMonthDay = self::checkTypes($byMonthDay, $types);
- $this->repeatFrequency = $repeatFrequency;
+ $this->byMonthDay = $byMonthDay;
}
/**
- * @return DateInterval|string|null
+ * @return DateTime|string|null
*/
- public function getDuration()
+ public function getStartTime()
{
- return $this->duration;
+ return $this->startTime;
}
/**
- * @param DateInterval|string|null $duration
+ * @param DateTime|string|null $startTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDuration($duration)
+ public function setStartTime($startTime)
{
$types = [
- "DateInterval",
- "string",
+ "DateTime",
+ "Time",
"null",
];
- $duration = self::checkTypes($duration, $types);
+ $startTime = self::checkTypes($startTime, $types);
- $this->duration = $duration;
+ $this->startTime = $startTime;
}
/**
* @return int|null
*/
- public function getByMonthDay()
+ public function getByMonthWeek()
{
- return $this->byMonthDay;
+ return $this->byMonthWeek;
}
/**
- * @param int|null $byMonthDay
+ * @param int|null $byMonthWeek
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setByMonthDay($byMonthDay)
+ public function setByMonthWeek($byMonthWeek)
{
$types = [
"int",
"null",
];
- $byMonthDay = self::checkTypes($byMonthDay, $types);
+ $byMonthWeek = self::checkTypes($byMonthWeek, $types);
- $this->byMonthDay = $byMonthDay;
+ $this->byMonthWeek = $byMonthWeek;
}
/**
- * @return DateTime|string|null
+ * @return DateInterval|string|null
*/
- public function getEndTime()
+ public function getDuration()
{
- return $this->endTime;
+ return $this->duration;
}
/**
- * @param DateTime|string|null $endTime
+ * @param DateInterval|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndTime($endTime)
+ public function setDuration($duration)
{
$types = [
- "DateTime",
- "Time",
+ "DateInterval",
+ "string",
"null",
];
- $endTime = self::checkTypes($endTime, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->endTime = $endTime;
+ $this->duration = $duration;
}
/**
- * @return int|null
+ * @return string
*/
- public function getByMonth()
+ public function getScheduleTimezone()
{
- return $this->byMonth;
+ return $this->scheduleTimezone;
}
/**
- * @param int|null $byMonth
+ * @param string $scheduleTimezone
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setByMonth($byMonth)
+ public function setScheduleTimezone($scheduleTimezone)
{
$types = [
- "int",
- "null",
+ "string",
];
- $byMonth = self::checkTypes($byMonth, $types);
+ $scheduleTimezone = self::checkTypes($scheduleTimezone, $types);
- $this->byMonth = $byMonth;
+ $this->scheduleTimezone = $scheduleTimezone;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null
+ * @return Date|DateTime|null
*/
- public function getByDay()
+ public function getExceptDate()
{
- return $this->byDay;
+ return $this->exceptDate;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null $byDay
+ * @param Date|DateTime|null $exceptDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setByDay($byDay)
+ public function setExceptDate($exceptDate)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\DayOfWeek",
- "string",
+ "Date",
+ "DateTime",
"null",
];
- $byDay = self::checkTypes($byDay, $types);
+ $exceptDate = self::checkTypes($exceptDate, $types);
- $this->byDay = $byDay;
+ $this->exceptDate = $exceptDate;
}
/**
- * @return int|null
+ * @return Date|DateTime|null
*/
- public function getByMonthWeek()
+ public function getEndDate()
{
- return $this->byMonthWeek;
+ return $this->endDate;
}
/**
- * @param int|null $byMonthWeek
+ * @param Date|DateTime|null $endDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setByMonthWeek($byMonthWeek)
+ public function setEndDate($endDate)
{
$types = [
- "int",
+ "Date",
+ "DateTime",
"null",
];
- $byMonthWeek = self::checkTypes($byMonthWeek, $types);
+ $endDate = self::checkTypes($endDate, $types);
- $this->byMonthWeek = $byMonthWeek;
+ $this->endDate = $endDate;
}
}
diff --git a/src/Models/SchemaOrg/ScreeningEvent.php b/src/Models/SchemaOrg/ScreeningEvent.php
index 7ad91e7f..11beca4f 100644
--- a/src/Models/SchemaOrg/ScreeningEvent.php
+++ b/src/Models/SchemaOrg/ScreeningEvent.php
@@ -17,110 +17,110 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "workPresented" => "workPresented",
"subtitleLanguage" => "subtitleLanguage",
"videoFormat" => "videoFormat",
- "workPresented" => "workPresented",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47).
+ * The movie presented during this event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Language|string
+ * @var \OpenActive\Models\SchemaOrg\Movie|string
*/
- protected $subtitleLanguage;
+ protected $workPresented;
/**
- * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.).
+ * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47).
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $videoFormat;
+ protected $subtitleLanguage;
/**
- * The movie presented during this event.
+ * 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 \OpenActive\Models\SchemaOrg\Movie|string
*/
- public function getSubtitleLanguage()
+ public function getWorkPresented()
{
- return $this->subtitleLanguage;
+ return $this->workPresented;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage
+ * @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 setSubtitleLanguage($subtitleLanguage)
+ public function setWorkPresented($workPresented)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Language",
+ "\OpenActive\Models\SchemaOrg\Movie",
"string",
];
- $subtitleLanguage = self::checkTypes($subtitleLanguage, $types);
+ $workPresented = self::checkTypes($workPresented, $types);
- $this->subtitleLanguage = $subtitleLanguage;
+ $this->workPresented = $workPresented;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getVideoFormat()
+ public function getSubtitleLanguage()
{
- return $this->videoFormat;
+ return $this->subtitleLanguage;
}
/**
- * @param string $videoFormat
+ * @param string|\OpenActive\Models\SchemaOrg\Language $subtitleLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVideoFormat($videoFormat)
+ public function setSubtitleLanguage($subtitleLanguage)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $videoFormat = self::checkTypes($videoFormat, $types);
+ $subtitleLanguage = self::checkTypes($subtitleLanguage, $types);
- $this->videoFormat = $videoFormat;
+ $this->subtitleLanguage = $subtitleLanguage;
}
/**
- * @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..84e0bfe3 100644
--- a/src/Models/SchemaOrg/Seat.php
+++ b/src/Models/SchemaOrg/Seat.php
@@ -17,22 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
- "seatingType" => "seatingType",
+ "seatNumber" => "seatNumber",
"seatSection" => "seatSection",
+ "seatingType" => "seatingType",
"seatRow" => "seatRow",
- "seatNumber" => "seatNumber",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The type/class of the seat.
+ * The location of the reserved seat (e.g., 27).
*
*
- * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @var string
*/
- protected $seatingType;
+ protected $seatNumber;
/**
* The section location of the reserved seat (e.g. Orchestra).
@@ -43,45 +43,43 @@ public static function fieldList() {
protected $seatSection;
/**
- * The row location of the reserved seat (e.g., B).
+ * The type/class of the seat.
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
*/
- protected $seatRow;
+ protected $seatingType;
/**
- * 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
*/
- public function getSeatingType()
+ public function getSeatNumber()
{
- return $this->seatingType;
+ return $this->seatNumber;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $seatingType
+ * @param string $seatNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSeatingType($seatingType)
+ public function setSeatNumber($seatNumber)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
"string",
- "null",
];
- $seatingType = self::checkTypes($seatingType, $types);
+ $seatNumber = self::checkTypes($seatNumber, $types);
- $this->seatingType = $seatingType;
+ $this->seatNumber = $seatNumber;
}
/**
@@ -109,51 +107,53 @@ public function setSeatSection($seatSection)
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
*/
- public function getSeatRow()
+ public function getSeatingType()
{
- return $this->seatRow;
+ return $this->seatingType;
}
/**
- * @param string $seatRow
+ * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $seatingType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSeatRow($seatRow)
+ public function setSeatingType($seatingType)
{
$types = [
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
"string",
+ "null",
];
- $seatRow = self::checkTypes($seatRow, $types);
+ $seatingType = self::checkTypes($seatingType, $types);
- $this->seatRow = $seatRow;
+ $this->seatingType = $seatingType;
}
/**
* @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/SeekToAction.php b/src/Models/SchemaOrg/SeekToAction.php
index 3fb9d2ca..02b978b2 100644
--- a/src/Models/SchemaOrg/SeekToAction.php
+++ b/src/Models/SchemaOrg/SeekToAction.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* The start time of the clip expressed as the number of seconds from the beginning of the work.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null
+ * @var \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null
*/
protected $startOffset;
/**
- * @return Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null
+ * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null
*/
public function getStartOffset()
{
@@ -40,16 +40,16 @@ public function getStartOffset()
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null $startOffset
+ * @param \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null $startOffset
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setStartOffset($startOffset)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\HyperTocEntry",
"string",
+ "Number",
"null",
];
diff --git a/src/Models/SchemaOrg/SendAction.php b/src/Models/SchemaOrg/SendAction.php
index 7250740d..fcb3c728 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\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|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\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|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\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setRecipient($recipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
diff --git a/src/Models/SchemaOrg/Service.php b/src/Models/SchemaOrg/Service.php
index 8c90bb1c..d4ac05d0 100644
--- a/src/Models/SchemaOrg/Service.php
+++ b/src/Models/SchemaOrg/Service.php
@@ -17,836 +17,836 @@ public static function getType()
public static function fieldList() {
$fields = [
- "review" => "review",
- "award" => "award",
+ "providerMobility" => "providerMobility",
+ "termsOfService" => "termsOfService",
+ "produces" => "produces",
+ "availableChannel" => "availableChannel",
+ "offers" => "offers",
"serviceAudience" => "serviceAudience",
+ "aggregateRating" => "aggregateRating",
"category" => "category",
- "hoursAvailable" => "hoursAvailable",
- "audience" => "audience",
- "offers" => "offers",
- "serviceOutput" => "serviceOutput",
- "provider" => "provider",
- "termsOfService" => "termsOfService",
- "providerMobility" => "providerMobility",
"broker" => "broker",
- "aggregateRating" => "aggregateRating",
+ "award" => "award",
"isSimilarTo" => "isSimilarTo",
- "availableChannel" => "availableChannel",
- "slogan" => "slogan",
- "brand" => "brand",
+ "serviceOutput" => "serviceOutput",
"logo" => "logo",
- "produces" => "produces",
+ "hasOfferCatalog" => "hasOfferCatalog",
+ "hoursAvailable" => "hoursAvailable",
"serviceArea" => "serviceArea",
- "serviceType" => "serviceType",
- "areaServed" => "areaServed",
"isRelatedTo" => "isRelatedTo",
- "hasOfferCatalog" => "hasOfferCatalog",
+ "slogan" => "slogan",
+ "audience" => "audience",
+ "brand" => "brand",
+ "provider" => "provider",
+ "review" => "review",
+ "areaServed" => "areaServed",
+ "serviceType" => "serviceType",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A review of the item.
+ * Indicates the mobility of a provided service (e.g. 'static', 'dynamic').
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var string
*/
- protected $review;
+ protected $providerMobility;
/**
- * An award won by or for this item.
+ * Human-readable terms of service documentation.
*
*
* @var string
*/
- protected $award;
+ protected $termsOfService;
/**
- * The audience eligible for this service.
+ * The tangible thing generated by the service, e.g. a passport, permit, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Audience|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $serviceAudience;
+ protected $produces;
/**
- * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
+ * A means of accessing the service (e.g. a phone bank, a web site, a location, etc.).
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @var \OpenActive\Models\SchemaOrg\ServiceChannel|string
*/
- protected $category;
+ protected $availableChannel;
/**
- * The hours during which this service or contact is available.
+ * An 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\OpeningHoursSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $hoursAvailable;
+ protected $offers;
/**
- * An intended audience, i.e. a group for whom something was created.
+ * The audience eligible for this service.
*
*
* @var \OpenActive\Models\SchemaOrg\Audience|string
*/
- protected $audience;
+ protected $serviceAudience;
/**
- * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
- *
+ * The overall rating, based on a collection of reviews or ratings, of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- protected $offers;
+ protected $aggregateRating;
/**
- * The tangible thing generated by the service, e.g. a passport, permit, etc.
+ * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
*/
- protected $serviceOutput;
+ protected $category;
/**
- * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
+ * 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
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $provider;
+ protected $broker;
/**
- * Human-readable terms of service documentation.
+ * An award won by or for this item.
*
*
* @var string
*/
- protected $termsOfService;
+ protected $award;
/**
- * Indicates the mobility of a provided service (e.g. 'static', 'dynamic').
+ * A pointer to another, functionally similar product (or multiple products).
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
*/
- protected $providerMobility;
+ protected $isSimilarTo;
/**
- * 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 tangible thing generated by the service, e.g. a passport, permit, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $broker;
+ protected $serviceOutput;
/**
- * The overall rating, based on a collection of reviews or ratings, of the item.
+ * An associated logo.
*
*
- * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @var \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- protected $aggregateRating;
+ protected $logo;
/**
- * A pointer to another, functionally similar product (or multiple products).
+ * Indicates an OfferCatalog listing for this Organization, Person, or Service.
*
*
- * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
+ * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string
*/
- protected $isSimilarTo;
+ protected $hasOfferCatalog;
/**
- * A means of accessing the service (e.g. a phone bank, a web site, a location, etc.).
+ * The hours during which this service or contact is available.
*
*
- * @var \OpenActive\Models\SchemaOrg\ServiceChannel|string
+ * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
*/
- protected $availableChannel;
+ protected $hoursAvailable;
/**
- * A slogan or motto associated with the item.
+ * 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 $slogan;
+ protected $serviceArea;
/**
- * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.
+ * A pointer to another, somehow related product (or multiple products).
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string
+ * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
*/
- protected $brand;
+ protected $isRelatedTo;
/**
- * An associated logo.
+ * A slogan or motto associated with the item.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\ImageObject
+ * @var string
*/
- protected $logo;
+ protected $slogan;
/**
- * The tangible thing generated by the service, e.g. a passport, permit, etc.
+ * An intended audience, i.e. a group for whom something was created.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\Audience|string
*/
- protected $produces;
+ protected $audience;
/**
- * The geographic area where the service is provided.
+ * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $serviceArea;
+ protected $brand;
/**
- * 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\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $serviceType;
+ protected $provider;
/**
- * The geographic area where a service or offered item is provided.
+ * A review of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $areaServed;
+ protected $review;
/**
- * A pointer to another, somehow related product (or multiple products).
+ * The geographic area where a service or offered item is provided.
*
*
- * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- protected $isRelatedTo;
+ protected $areaServed;
/**
- * Indicates an OfferCatalog listing for this Organization, Person, or Service.
+ * The type of service being offered, e.g. veterans' benefits, emergency relief, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string
+ * @var \OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|string|null
*/
- protected $hasOfferCatalog;
+ protected $serviceType;
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return string
*/
- public function getReview()
+ public function getProviderMobility()
{
- return $this->review;
+ return $this->providerMobility;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $review
+ * @param string $providerMobility
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReview($review)
+ public function setProviderMobility($providerMobility)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $review = self::checkTypes($review, $types);
+ $providerMobility = self::checkTypes($providerMobility, $types);
- $this->review = $review;
+ $this->providerMobility = $providerMobility;
}
/**
* @return string
*/
- public function getAward()
+ public function getTermsOfService()
{
- return $this->award;
+ return $this->termsOfService;
}
/**
- * @param string $award
+ * @param string $termsOfService
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAward($award)
+ public function setTermsOfService($termsOfService)
{
$types = [
"string",
];
- $award = self::checkTypes($award, $types);
+ $termsOfService = self::checkTypes($termsOfService, $types);
- $this->award = $award;
+ $this->termsOfService = $termsOfService;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Audience|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getServiceAudience()
+ public function getProduces()
{
- return $this->serviceAudience;
+ return $this->produces;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $serviceAudience
+ * @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 setServiceAudience($serviceAudience)
+ public function setProduces($produces)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $serviceAudience = self::checkTypes($serviceAudience, $types);
+ $produces = self::checkTypes($produces, $types);
- $this->serviceAudience = $serviceAudience;
+ $this->produces = $produces;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @return \OpenActive\Models\SchemaOrg\ServiceChannel|string
*/
- public function getCategory()
+ public function getAvailableChannel()
{
- return $this->category;
+ return $this->availableChannel;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
+ * @param \OpenActive\Models\SchemaOrg\ServiceChannel|string $availableChannel
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCategory($category)
+ public function setAvailableChannel($availableChannel)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ServiceChannel",
"string",
- "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
- "\OpenActive\Models\SchemaOrg\Thing",
- "\OpenActive\Models\SchemaOrg\CategoryCode",
- "null",
];
- $category = self::checkTypes($category, $types);
+ $availableChannel = self::checkTypes($availableChannel, $types);
- $this->category = $category;
+ $this->availableChannel = $availableChannel;
}
/**
- * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
+ * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
- public function getHoursAvailable()
+ public function getOffers()
{
- return $this->hoursAvailable;
+ return $this->offers;
}
/**
- * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $hoursAvailable
+ * @param \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string $offers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHoursAvailable($hoursAvailable)
+ public function setOffers($offers)
{
$types = [
- "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification",
+ "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\Offer",
"string",
];
- $hoursAvailable = self::checkTypes($hoursAvailable, $types);
+ $offers = self::checkTypes($offers, $types);
- $this->hoursAvailable = $hoursAvailable;
+ $this->offers = $offers;
}
/**
* @return \OpenActive\Models\SchemaOrg\Audience|string
*/
- public function getAudience()
+ public function getServiceAudience()
{
- return $this->audience;
+ return $this->serviceAudience;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
+ * @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 setAudience($audience)
+ public function setServiceAudience($serviceAudience)
{
$types = [
"\OpenActive\Models\SchemaOrg\Audience",
"string",
];
- $audience = self::checkTypes($audience, $types);
+ $serviceAudience = self::checkTypes($serviceAudience, $types);
- $this->audience = $audience;
+ $this->serviceAudience = $serviceAudience;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- public function getOffers()
+ public function getAggregateRating()
{
- return $this->offers;
+ return $this->aggregateRating;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @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 setOffers($offers)
+ public function setAggregateRating($aggregateRating)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\AggregateRating",
"string",
];
- $offers = self::checkTypes($offers, $types);
+ $aggregateRating = self::checkTypes($aggregateRating, $types);
- $this->offers = $offers;
+ $this->aggregateRating = $aggregateRating;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
*/
- public function getServiceOutput()
+ public function getCategory()
{
- return $this->serviceOutput;
+ return $this->category;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $serviceOutput
+ * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setServiceOutput($serviceOutput)
+ public function setCategory($category)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
"string",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
+ "null",
];
- $serviceOutput = self::checkTypes($serviceOutput, $types);
+ $category = self::checkTypes($category, $types);
- $this->serviceOutput = $serviceOutput;
+ $this->category = $category;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getProvider()
+ public function getBroker()
{
- return $this->provider;
+ return $this->broker;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProvider($provider)
+ public function setBroker($broker)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $provider = self::checkTypes($provider, $types);
+ $broker = self::checkTypes($broker, $types);
- $this->provider = $provider;
+ $this->broker = $broker;
}
/**
* @return string
*/
- public function getTermsOfService()
+ public function getAward()
{
- return $this->termsOfService;
+ return $this->award;
}
/**
- * @param string $termsOfService
+ * @param string $award
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTermsOfService($termsOfService)
+ public function setAward($award)
{
$types = [
"string",
];
- $termsOfService = self::checkTypes($termsOfService, $types);
+ $award = self::checkTypes($award, $types);
- $this->termsOfService = $termsOfService;
+ $this->award = $award;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
*/
- public function getProviderMobility()
+ public function getIsSimilarTo()
{
- return $this->providerMobility;
+ return $this->isSimilarTo;
}
/**
- * @param string $providerMobility
+ * @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 setProviderMobility($providerMobility)
+ public function setIsSimilarTo($isSimilarTo)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Service",
+ "\OpenActive\Models\SchemaOrg\Product",
"string",
];
- $providerMobility = self::checkTypes($providerMobility, $types);
+ $isSimilarTo = self::checkTypes($isSimilarTo, $types);
- $this->providerMobility = $providerMobility;
+ $this->isSimilarTo = $isSimilarTo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getBroker()
+ public function getServiceOutput()
{
- return $this->broker;
+ return $this->serviceOutput;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker
+ * @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 setBroker($broker)
+ public function setServiceOutput($serviceOutput)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $broker = self::checkTypes($broker, $types);
+ $serviceOutput = self::checkTypes($serviceOutput, $types);
- $this->broker = $broker;
+ $this->serviceOutput = $serviceOutput;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @return \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- public function getAggregateRating()
+ public function getLogo()
{
- return $this->aggregateRating;
+ return $this->logo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating
+ * @param \OpenActive\Models\SchemaOrg\ImageObject|string $logo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAggregateRating($aggregateRating)
+ public function setLogo($logo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AggregateRating",
+ "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
];
- $aggregateRating = self::checkTypes($aggregateRating, $types);
+ $logo = self::checkTypes($logo, $types);
- $this->aggregateRating = $aggregateRating;
+ $this->logo = $logo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
+ * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string
*/
- public function getIsSimilarTo()
+ public function getHasOfferCatalog()
{
- return $this->isSimilarTo;
+ return $this->hasOfferCatalog;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isSimilarTo
+ * @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 setIsSimilarTo($isSimilarTo)
+ public function setHasOfferCatalog($hasOfferCatalog)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Service",
- "\OpenActive\Models\SchemaOrg\Product",
+ "\OpenActive\Models\SchemaOrg\OfferCatalog",
"string",
];
- $isSimilarTo = self::checkTypes($isSimilarTo, $types);
+ $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types);
- $this->isSimilarTo = $isSimilarTo;
+ $this->hasOfferCatalog = $hasOfferCatalog;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ServiceChannel|string
+ * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
*/
- public function getAvailableChannel()
+ public function getHoursAvailable()
{
- return $this->availableChannel;
+ return $this->hoursAvailable;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ServiceChannel|string $availableChannel
+ * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $hoursAvailable
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableChannel($availableChannel)
+ public function setHoursAvailable($hoursAvailable)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ServiceChannel",
+ "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification",
"string",
];
- $availableChannel = self::checkTypes($availableChannel, $types);
+ $hoursAvailable = self::checkTypes($hoursAvailable, $types);
- $this->availableChannel = $availableChannel;
+ $this->hoursAvailable = $hoursAvailable;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getSlogan()
+ public function getServiceArea()
{
- return $this->slogan;
+ return $this->serviceArea;
}
/**
- * @param string $slogan
+ * @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 setSlogan($slogan)
+ public function setServiceArea($serviceArea)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $slogan = self::checkTypes($slogan, $types);
+ $serviceArea = self::checkTypes($serviceArea, $types);
- $this->slogan = $slogan;
+ $this->serviceArea = $serviceArea;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string
+ * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
*/
- public function getBrand()
+ public function getIsRelatedTo()
{
- return $this->brand;
+ return $this->isRelatedTo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand
+ * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isRelatedTo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBrand($brand)
+ public function setIsRelatedTo($isRelatedTo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Brand",
+ "\OpenActive\Models\SchemaOrg\Service",
+ "\OpenActive\Models\SchemaOrg\Product",
"string",
];
- $brand = self::checkTypes($brand, $types);
+ $isRelatedTo = self::checkTypes($isRelatedTo, $types);
- $this->brand = $brand;
+ $this->isRelatedTo = $isRelatedTo;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\ImageObject
+ * @return string
*/
- public function getLogo()
+ public function getSlogan()
{
- return $this->logo;
+ return $this->slogan;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo
+ * @param string $slogan
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLogo($logo)
+ public function setSlogan($slogan)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\ImageObject",
];
- $logo = self::checkTypes($logo, $types);
+ $slogan = self::checkTypes($slogan, $types);
- $this->logo = $logo;
+ $this->slogan = $slogan;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\Audience|string
*/
- public function getProduces()
+ public function getAudience()
{
- return $this->produces;
+ return $this->audience;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $produces
+ * @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 setProduces($produces)
+ public function setAudience($audience)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\Audience",
"string",
];
- $produces = self::checkTypes($produces, $types);
+ $audience = self::checkTypes($audience, $types);
- $this->produces = $produces;
+ $this->audience = $audience;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getServiceArea()
+ public function getBrand()
{
- return $this->serviceArea;
+ return $this->brand;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string $serviceArea
+ * @param \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string $brand
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setServiceArea($serviceArea)
+ public function setBrand($brand)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeoShape",
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Brand",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $serviceArea = self::checkTypes($serviceArea, $types);
+ $brand = self::checkTypes($brand, $types);
- $this->serviceArea = $serviceArea;
+ $this->brand = $brand;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|string|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|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\Person|\OpenActive\Models\SchemaOrg\Organization|string $provider
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setServiceType($serviceType)
+ public function setProvider($provider)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\GovernmentBenefitsType",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"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\Review|string
*/
- public function getAreaServed()
+ public function getReview()
{
- return $this->areaServed;
+ return $this->review;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed
+ * @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 setAreaServed($areaServed)
+ public function setReview($review)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
- "\OpenActive\Models\SchemaOrg\Place",
];
- $areaServed = self::checkTypes($areaServed, $types);
+ $review = self::checkTypes($review, $types);
- $this->areaServed = $areaServed;
+ $this->review = $review;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- public function getIsRelatedTo()
+ public function getAreaServed()
{
- return $this->isRelatedTo;
+ return $this->areaServed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isRelatedTo
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea $areaServed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsRelatedTo($isRelatedTo)
+ public function setAreaServed($areaServed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Service",
- "\OpenActive\Models\SchemaOrg\Product",
"string",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
];
- $isRelatedTo = self::checkTypes($isRelatedTo, $types);
+ $areaServed = self::checkTypes($areaServed, $types);
- $this->isRelatedTo = $isRelatedTo;
+ $this->areaServed = $areaServed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string
+ * @return \OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|string|null
*/
- public function getHasOfferCatalog()
+ public function getServiceType()
{
- return $this->hasOfferCatalog;
+ return $this->serviceType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog
+ * @param \OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|string|null $serviceType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasOfferCatalog($hasOfferCatalog)
+ public function setServiceType($serviceType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\OfferCatalog",
+ "\OpenActive\Enums\SchemaOrg\GovernmentBenefitsType",
"string",
+ "null",
];
- $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types);
+ $serviceType = self::checkTypes($serviceType, $types);
- $this->hasOfferCatalog = $hasOfferCatalog;
+ $this->serviceType = $serviceType;
}
}
diff --git a/src/Models/SchemaOrg/ServiceChannel.php b/src/Models/SchemaOrg/ServiceChannel.php
index cc65836f..48e1fd79 100644
--- a/src/Models/SchemaOrg/ServiceChannel.php
+++ b/src/Models/SchemaOrg/ServiceChannel.php
@@ -17,50 +17,50 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "serviceLocation" => "serviceLocation",
"providesService" => "providesService",
+ "availableLanguage" => "availableLanguage",
"serviceSmsNumber" => "serviceSmsNumber",
- "servicePostalAddress" => "servicePostalAddress",
- "serviceUrl" => "serviceUrl",
"servicePhone" => "servicePhone",
- "availableLanguage" => "availableLanguage",
"processingTime" => "processingTime",
- "serviceLocation" => "serviceLocation",
+ "serviceUrl" => "serviceUrl",
+ "servicePostalAddress" => "servicePostalAddress",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The service provided by this channel.
+ * The location (e.g. civic structure, local business, etc.) where a person can go to access the service.
*
*
- * @var \OpenActive\Models\SchemaOrg\Service|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $providesService;
+ protected $serviceLocation;
/**
- * The number to access the service by text message.
+ * The service provided by this channel.
*
*
- * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @var \OpenActive\Models\SchemaOrg\Service|string
*/
- protected $serviceSmsNumber;
+ protected $providesService;
/**
- * The address for accessing the service by mail.
+ * 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\PostalAddress|string
+ * @var \OpenActive\Models\SchemaOrg\Language|string
*/
- protected $servicePostalAddress;
+ protected $availableLanguage;
/**
- * 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.
@@ -71,126 +71,127 @@ public static function fieldList() {
protected $servicePhone;
/**
- * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]]
+ * Estimated processing time for the service using this channel.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var DateInterval|string|null
*/
- protected $availableLanguage;
+ protected $processingTime;
/**
- * Estimated processing time for the service using this channel.
+ * The website to access the service.
*
*
- * @var DateInterval|string|null
+ * @var string
*/
- protected $processingTime;
+ protected $serviceUrl;
/**
- * The location (e.g. civic structure, local business, etc.) where a person can go to access the service.
+ * The address for accessing the service by mail.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
- protected $serviceLocation;
+ protected $servicePostalAddress;
/**
- * @return \OpenActive\Models\SchemaOrg\Service|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getProvidesService()
+ public function getServiceLocation()
{
- return $this->providesService;
+ return $this->serviceLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Service|string $providesService
+ * @param \OpenActive\Models\SchemaOrg\Place|string $serviceLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProvidesService($providesService)
+ public function setServiceLocation($serviceLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Service",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $providesService = self::checkTypes($providesService, $types);
+ $serviceLocation = self::checkTypes($serviceLocation, $types);
- $this->providesService = $providesService;
+ $this->serviceLocation = $serviceLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @return \OpenActive\Models\SchemaOrg\Service|string
*/
- public function getServiceSmsNumber()
+ public function getProvidesService()
{
- return $this->serviceSmsNumber;
+ return $this->providesService;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $serviceSmsNumber
+ * @param \OpenActive\Models\SchemaOrg\Service|string $providesService
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setServiceSmsNumber($serviceSmsNumber)
+ public function setProvidesService($providesService)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Service",
"string",
];
- $serviceSmsNumber = self::checkTypes($serviceSmsNumber, $types);
+ $providesService = self::checkTypes($providesService, $types);
- $this->serviceSmsNumber = $serviceSmsNumber;
+ $this->providesService = $providesService;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PostalAddress|string
+ * @return \OpenActive\Models\SchemaOrg\Language|string
*/
- public function getServicePostalAddress()
+ public function getAvailableLanguage()
{
- return $this->servicePostalAddress;
+ return $this->availableLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $servicePostalAddress
+ * @param \OpenActive\Models\SchemaOrg\Language|string $availableLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setServicePostalAddress($servicePostalAddress)
+ public function setAvailableLanguage($availableLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PostalAddress",
+ "\OpenActive\Models\SchemaOrg\Language",
"string",
];
- $servicePostalAddress = self::checkTypes($servicePostalAddress, $types);
+ $availableLanguage = self::checkTypes($availableLanguage, $types);
- $this->servicePostalAddress = $servicePostalAddress;
+ $this->availableLanguage = $availableLanguage;
}
/**
- * @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;
}
/**
@@ -219,79 +220,78 @@ public function setServicePhone($servicePhone)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return DateInterval|string|null
*/
- public function getAvailableLanguage()
+ public function getProcessingTime()
{
- return $this->availableLanguage;
+ return $this->processingTime;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage
+ * @param DateInterval|string|null $processingTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableLanguage($availableLanguage)
+ public function setProcessingTime($processingTime)
{
$types = [
+ "DateInterval",
"string",
- "\OpenActive\Models\SchemaOrg\Language",
+ "null",
];
- $availableLanguage = self::checkTypes($availableLanguage, $types);
+ $processingTime = self::checkTypes($processingTime, $types);
- $this->availableLanguage = $availableLanguage;
+ $this->processingTime = $processingTime;
}
/**
- * @return DateInterval|string|null
+ * @return string
*/
- public function getProcessingTime()
+ public function getServiceUrl()
{
- return $this->processingTime;
+ return $this->serviceUrl;
}
/**
- * @param DateInterval|string|null $processingTime
+ * @param string $serviceUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProcessingTime($processingTime)
+ public function setServiceUrl($serviceUrl)
{
$types = [
- "DateInterval",
"string",
- "null",
];
- $processingTime = self::checkTypes($processingTime, $types);
+ $serviceUrl = self::checkTypes($serviceUrl, $types);
- $this->processingTime = $processingTime;
+ $this->serviceUrl = $serviceUrl;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\PostalAddress|string
*/
- public function getServiceLocation()
+ public function getServicePostalAddress()
{
- return $this->serviceLocation;
+ return $this->servicePostalAddress;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $serviceLocation
+ * @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 setServiceLocation($serviceLocation)
+ public function setServicePostalAddress($servicePostalAddress)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
"string",
];
- $serviceLocation = self::checkTypes($serviceLocation, $types);
+ $servicePostalAddress = self::checkTypes($servicePostalAddress, $types);
- $this->serviceLocation = $serviceLocation;
+ $this->servicePostalAddress = $servicePostalAddress;
}
}
diff --git a/src/Models/SchemaOrg/ShippingDeliveryTime.php b/src/Models/SchemaOrg/ShippingDeliveryTime.php
index b0fe0b81..7f4cc4ea 100644
--- a/src/Models/SchemaOrg/ShippingDeliveryTime.php
+++ b/src/Models/SchemaOrg/ShippingDeliveryTime.php
@@ -17,22 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
- "transitTime" => "transitTime",
+ "cutoffTime" => "cutoffTime",
"businessDays" => "businessDays",
+ "transitTime" => "transitTime",
"handlingTime" => "handlingTime",
- "cutoffTime" => "cutoffTime",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The typical delay the order has been sent for delivery and the goods reach the final customer. Typical properties: minValue, maxValue, unitCode (d for DAY).
+ * Order cutoff time allows merchants to describe the time after which they will no longer process orders received on that day. For orders processed after cutoff time, one day gets added to the delivery time estimate. This property is expected to be most typically used via the [[ShippingRateSettings]] publication pattern. The time is indicated using the ISO-8601 Time format, e.g. "23:30:00-05:00" would represent 6:30 pm Eastern Standard Time (EST) which is 5 hours behind Coordinated Universal Time (UTC).
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string|null
*/
- protected $transitTime;
+ protected $cutoffTime;
/**
* Days of the week when the merchant typically operates, indicated via opening hours markup.
@@ -43,44 +43,44 @@ public static function fieldList() {
protected $businessDays;
/**
- * The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup. Typical properties: minValue, maxValue, unitCode (d for DAY). This is by common convention assumed to mean business days (if a unitCode is used, coded as "d"), i.e. only counting days when the business normally operates.
+ * The typical delay the order has been sent for delivery and the goods reach the final customer. Typical properties: minValue, maxValue, unitCode (d for DAY).
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $handlingTime;
+ protected $transitTime;
/**
- * Order cutoff time allows merchants to describe the time after which they will no longer process orders received on that day. For orders processed after cutoff time, one day gets added to the delivery time estimate. This property is expected to be most typically used via the [[ShippingRateSettings]] publication pattern. The time is indicated using the ISO-8601 Time format, e.g. "23:30:00-05:00" would represent 6:30 pm Eastern Standard Time (EST) which is 5 hours behind Coordinated Universal Time (UTC).
+ * The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup. Typical properties: minValue, maxValue, unitCode (d for DAY). This is by common convention assumed to mean business days (if a unitCode is used, coded as "d"), i.e. only counting days when the business normally operates.
*
*
- * @var string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $cutoffTime;
+ protected $handlingTime;
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string|null
*/
- public function getTransitTime()
+ public function getCutoffTime()
{
- return $this->transitTime;
+ return $this->cutoffTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $transitTime
+ * @param string|null $cutoffTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTransitTime($transitTime)
+ public function setCutoffTime($cutoffTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
+ "Time",
+ "null",
];
- $transitTime = self::checkTypes($transitTime, $types);
+ $cutoffTime = self::checkTypes($cutoffTime, $types);
- $this->transitTime = $transitTime;
+ $this->cutoffTime = $cutoffTime;
}
/**
@@ -111,51 +111,51 @@ public function setBusinessDays($businessDays)
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getHandlingTime()
+ public function getTransitTime()
{
- return $this->handlingTime;
+ return $this->transitTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $handlingTime
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $transitTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHandlingTime($handlingTime)
+ public function setTransitTime($transitTime)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $handlingTime = self::checkTypes($handlingTime, $types);
+ $transitTime = self::checkTypes($transitTime, $types);
- $this->handlingTime = $handlingTime;
+ $this->transitTime = $transitTime;
}
/**
- * @return string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getCutoffTime()
+ public function getHandlingTime()
{
- return $this->cutoffTime;
+ return $this->handlingTime;
}
/**
- * @param string|null $cutoffTime
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $handlingTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCutoffTime($cutoffTime)
+ public function setHandlingTime($handlingTime)
{
$types = [
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
];
- $cutoffTime = self::checkTypes($cutoffTime, $types);
+ $handlingTime = self::checkTypes($handlingTime, $types);
- $this->cutoffTime = $cutoffTime;
+ $this->handlingTime = $handlingTime;
}
}
diff --git a/src/Models/SchemaOrg/ShippingRateSettings.php b/src/Models/SchemaOrg/ShippingRateSettings.php
index 8e06f2fc..1fc1de4e 100644
--- a/src/Models/SchemaOrg/ShippingRateSettings.php
+++ b/src/Models/SchemaOrg/ShippingRateSettings.php
@@ -17,32 +17,32 @@ public static function getType()
public static function fieldList() {
$fields = [
- "shippingDestination" => "shippingDestination",
"doesNotShip" => "doesNotShip",
+ "shippingDestination" => "shippingDestination",
"shippingLabel" => "shippingLabel",
+ "freeShippingThreshold" => "freeShippingThreshold",
"isUnlabelledFallback" => "isUnlabelledFallback",
"shippingRate" => "shippingRate",
- "freeShippingThreshold" => "freeShippingThreshold",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * indicates (possibly multiple) shipping destinations. These can be defined in several ways e.g. postalCode ranges.
+ * Indicates when shipping to a particular [[shippingDestination]] is not available.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string
+ * @var bool|null
*/
- protected $shippingDestination;
+ protected $doesNotShip;
/**
- * Indicates when shipping to a particular [[shippingDestination]] is not available.
+ * indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges.
*
*
- * @var bool|null
+ * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string
*/
- protected $doesNotShip;
+ protected $shippingDestination;
/**
* Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within the context of a [[shippingSettingsLink]] cross-reference).
@@ -52,6 +52,14 @@ public static function fieldList() {
*/
protected $shippingLabel;
+ /**
+ * 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\DeliveryChargeSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ */
+ protected $freeShippingThreshold;
+
/**
* This can be marked 'true' to indicate that some published [[DeliveryTimeSettings]] or [[ShippingRateSettings]] are intended to apply to all [[OfferShippingDetails]] published by the same merchant, when referenced by a [[shippingSettingsLink]] in those settings. It is not meaningful to use a 'true' value for this property alongside a transitTimeLabel (for [[DeliveryTimeSettings]]) or shippingLabel (for [[ShippingRateSettings]]), since this property is for use with unlabelled settings.
*
@@ -69,12 +77,29 @@ public static function fieldList() {
protected $shippingRate;
/**
- * 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]].
- *
- *
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|string
+ * @return bool|null
*/
- protected $freeShippingThreshold;
+ public function getDoesNotShip()
+ {
+ return $this->doesNotShip;
+ }
+
+ /**
+ * @param bool|null $doesNotShip
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setDoesNotShip($doesNotShip)
+ {
+ $types = [
+ "bool",
+ "null",
+ ];
+
+ $doesNotShip = self::checkTypes($doesNotShip, $types);
+
+ $this->doesNotShip = $doesNotShip;
+ }
/**
* @return \OpenActive\Models\SchemaOrg\DefinedRegion|string
@@ -102,52 +127,53 @@ public function setShippingDestination($shippingDestination)
}
/**
- * @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\DeliveryChargeSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getShippingLabel()
+ public function getFreeShippingThreshold()
{
- return $this->shippingLabel;
+ return $this->freeShippingThreshold;
}
/**
- * @param string $shippingLabel
+ * @param \OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string $freeShippingThreshold
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setShippingLabel($shippingLabel)
+ public function setFreeShippingThreshold($freeShippingThreshold)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
];
- $shippingLabel = self::checkTypes($shippingLabel, $types);
+ $freeShippingThreshold = self::checkTypes($freeShippingThreshold, $types);
- $this->shippingLabel = $shippingLabel;
+ $this->freeShippingThreshold = $freeShippingThreshold;
}
/**
@@ -200,30 +226,4 @@ public function setShippingRate($shippingRate)
$this->shippingRate = $shippingRate;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|string
- */
- public function getFreeShippingThreshold()
- {
- return $this->freeShippingThreshold;
- }
-
- /**
- * @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 setFreeShippingThreshold($freeShippingThreshold)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification",
- "string",
- ];
-
- $freeShippingThreshold = self::checkTypes($freeShippingThreshold, $types);
-
- $this->freeShippingThreshold = $freeShippingThreshold;
- }
-
}
diff --git a/src/Models/SchemaOrg/SizeSpecification.php b/src/Models/SchemaOrg/SizeSpecification.php
index 405d7111..75a7a081 100644
--- a/src/Models/SchemaOrg/SizeSpecification.php
+++ b/src/Models/SchemaOrg/SizeSpecification.php
@@ -17,216 +17,216 @@ public static function getType()
public static function fieldList() {
$fields = [
- "sizeGroup" => "sizeGroup",
- "suggestedMeasurement" => "suggestedMeasurement",
"suggestedAge" => "suggestedAge",
- "hasMeasurement" => "hasMeasurement",
"sizeSystem" => "sizeSystem",
+ "sizeGroup" => "sizeGroup",
"suggestedGender" => "suggestedGender",
+ "suggestedMeasurement" => "suggestedMeasurement",
+ "hasMeasurement" => "hasMeasurement",
];
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 age or age range for the intended audience or person, for example 3-12 months for infants, 1-5 years for toddlers.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $sizeGroup;
+ protected $suggestedAge;
/**
- * A suggested range of body measurements for the intended audience or person, for example inseam between 32 and 34 inches or height between 170 and 190 cm. Typically found on a size chart for wearable products.
+ * The size system used to identify a product's size. Typically either a standard (for example, "GS1" or "ISO-EN13402"), country code (for example "US" or "JP"), or a measuring system (for example "Metric" or "Imperial").
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|string|null
*/
- protected $suggestedMeasurement;
+ protected $sizeSystem;
/**
- * The age or age range for the intended audience or person, for example 3-12 months for infants, 1-5 years for toddlers.
+ * The size group (also known as "size type") for a product's size. Size groups are common in the fashion industry to define size segments and suggested audiences for wearable products. Multiple values can be combined, for example "men's big and tall", "petite maternity" or "regular"
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null
*/
- protected $suggestedAge;
+ protected $sizeGroup;
/**
- * 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 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 $hasMeasurement;
+ protected $suggestedGender;
/**
- * 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 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|\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $sizeSystem;
+ protected $suggestedMeasurement;
/**
- * The suggested gender of the intended person or audience, for example "male", "female", or "unisex".
+ * 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.
*
*
- * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $suggestedGender;
+ protected $hasMeasurement;
/**
- * @return string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getSizeGroup()
+ public function getSuggestedAge()
{
- return $this->sizeGroup;
+ return $this->suggestedAge;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null $sizeGroup
+ * @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 setSizeGroup($sizeGroup)
+ public function setSuggestedAge($suggestedAge)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration",
- "null",
];
- $sizeGroup = self::checkTypes($sizeGroup, $types);
+ $suggestedAge = self::checkTypes($suggestedAge, $types);
- $this->sizeGroup = $sizeGroup;
+ $this->suggestedAge = $suggestedAge;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|string|null
*/
- public function getSuggestedMeasurement()
+ public function getSizeSystem()
{
- return $this->suggestedMeasurement;
+ return $this->sizeSystem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedMeasurement
+ * @param \OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|string|null $sizeSystem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSuggestedMeasurement($suggestedMeasurement)
+ public function setSizeSystem($sizeSystem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration",
"string",
+ "null",
];
- $suggestedMeasurement = self::checkTypes($suggestedMeasurement, $types);
+ $sizeSystem = self::checkTypes($sizeSystem, $types);
- $this->suggestedMeasurement = $suggestedMeasurement;
+ $this->sizeSystem = $sizeSystem;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null
*/
- public function getSuggestedAge()
+ public function getSizeGroup()
{
- return $this->suggestedAge;
+ return $this->sizeGroup;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedAge
+ * @param string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null $sizeGroup
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSuggestedAge($suggestedAge)
+ public function setSizeGroup($sizeGroup)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration",
+ "null",
];
- $suggestedAge = self::checkTypes($suggestedAge, $types);
+ $sizeGroup = self::checkTypes($sizeGroup, $types);
- $this->suggestedAge = $suggestedAge;
+ $this->sizeGroup = $sizeGroup;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string|\OpenActive\Enums\SchemaOrg\GenderType|null
*/
- public function getHasMeasurement()
+ public function getSuggestedGender()
{
- return $this->hasMeasurement;
+ return $this->suggestedGender;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $hasMeasurement
+ * @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 setHasMeasurement($hasMeasurement)
+ public function setSuggestedGender($suggestedGender)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "\OpenActive\Enums\SchemaOrg\GenderType",
+ "null",
];
- $hasMeasurement = self::checkTypes($hasMeasurement, $types);
+ $suggestedGender = self::checkTypes($suggestedGender, $types);
- $this->hasMeasurement = $hasMeasurement;
+ $this->suggestedGender = $suggestedGender;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getSizeSystem()
+ public function getSuggestedMeasurement()
{
- return $this->sizeSystem;
+ return $this->suggestedMeasurement;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|null $sizeSystem
+ * @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 setSizeSystem($sizeSystem)
+ public function setSuggestedMeasurement($suggestedMeasurement)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration",
- "null",
];
- $sizeSystem = self::checkTypes($sizeSystem, $types);
+ $suggestedMeasurement = self::checkTypes($suggestedMeasurement, $types);
- $this->sizeSystem = $sizeSystem;
+ $this->suggestedMeasurement = $suggestedMeasurement;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getSuggestedGender()
+ public function getHasMeasurement()
{
- return $this->suggestedGender;
+ return $this->hasMeasurement;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $suggestedGender
+ * @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 setSuggestedGender($suggestedGender)
+ public function setHasMeasurement($hasMeasurement)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\GenderType",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $suggestedGender = self::checkTypes($suggestedGender, $types);
+ $hasMeasurement = self::checkTypes($hasMeasurement, $types);
- $this->suggestedGender = $suggestedGender;
+ $this->hasMeasurement = $hasMeasurement;
}
}
diff --git a/src/Models/SchemaOrg/SoftwareApplication.php b/src/Models/SchemaOrg/SoftwareApplication.php
index 6c6eef7d..8ca0396b 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",
"applicationSubCategory" => "applicationSubCategory",
"downloadUrl" => "downloadUrl",
- "applicationCategory" => "applicationCategory",
- "countriesNotSupported" => "countriesNotSupported",
"softwareRequirements" => "softwareRequirements",
+ "memoryRequirements" => "memoryRequirements",
"softwareAddOn" => "softwareAddOn",
- "applicationSuite" => "applicationSuite",
+ "supportingData" => "supportingData",
+ "countriesSupported" => "countriesSupported",
"requirements" => "requirements",
+ "installUrl" => "installUrl",
"permissions" => "permissions",
- "processorRequirements" => "processorRequirements",
- "screenshot" => "screenshot",
"featureList" => "featureList",
- "releaseNotes" => "releaseNotes",
- "supportingData" => "supportingData",
+ "storageRequirements" => "storageRequirements",
+ "countriesNotSupported" => "countriesNotSupported",
+ "operatingSystem" => "operatingSystem",
+ "screenshot" => "screenshot",
+ "softwareVersion" => "softwareVersion",
"fileSize" => "fileSize",
"device" => "device",
+ "applicationCategory" => "applicationCategory",
+ "releaseNotes" => "releaseNotes",
+ "applicationSuite" => "applicationSuite",
"availableOnDevice" => "availableOnDevice",
+ "processorRequirements" => "processorRequirements",
];
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.
+ * Software application help.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $countriesSupported;
+ protected $softwareHelp;
/**
- * 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).
+ * If the file can be downloaded, URL to download the binary.
*
*
* @var string
*/
- protected $operatingSystem;
+ protected $downloadUrl;
/**
- * Minimum memory requirements.
+ * 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 $memoryRequirements;
+ protected $softwareRequirements;
/**
- * Version of the software instance.
+ * Minimum memory requirements.
*
*
* @var string
*/
- protected $softwareVersion;
+ protected $memoryRequirements;
/**
- * Storage requirements (free space required).
+ * Additional content for a software application.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
- protected $storageRequirements;
+ protected $softwareAddOn;
/**
- * Software application help.
+ * Supporting data for a SoftwareApplication.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\DataFeed|string
*/
- protected $softwareHelp;
+ protected $supportingData;
/**
- * Subcategory of the application, e.g. 'Arcade Game'.
+ * Countries for which the application is supported. You can also provide the two-letter ISO 3166-1 alpha-2 country code.
*
*
* @var string
*/
- protected $applicationSubCategory;
+ protected $countriesSupported;
/**
- * If the file can be downloaded, URL to download the binary.
+ * 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 $downloadUrl;
+ protected $requirements;
/**
- * Type of software application, e.g. 'Game, Multimedia'.
+ * URL at which the app may be installed, if different from the URL of the item.
*
*
* @var string
*/
- protected $applicationCategory;
+ protected $installUrl;
/**
- * Countries for which the application is not supported. You can also provide the two-letter ISO 3166-1 alpha-2 country code.
+ * 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 $countriesNotSupported;
+ protected $permissions;
/**
- * Component dependency requirements for application. This includes runtime environments and shared libraries that are not included in the application distribution package, but required to run the application (Examples: DirectX, Java or .NET runtime).
+ * Features or modules provided by this application (and possibly required by other applications).
*
*
* @var string
*/
- protected $softwareRequirements;
+ protected $featureList;
/**
- * Additional content for a software application.
+ * Storage requirements (free space required).
*
*
- * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string
+ * @var string
*/
- protected $softwareAddOn;
+ protected $storageRequirements;
/**
- * The name of the application suite to which the application belongs (e.g. Excel belongs to Office).
+ * 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 $applicationSuite;
+ protected $countriesNotSupported;
/**
- * 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).
+ * Operating systems supported (Windows 7, OS X 10.6, Android 1.6).
*
*
* @var string
*/
- protected $requirements;
+ protected $operatingSystem;
/**
- * Permission(s) required to run the app (for example, a mobile app may require full internet access or may run only on wifi).
+ * A link to a screenshot image of the app.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\ImageObject
*/
- protected $permissions;
+ protected $screenshot;
/**
- * Processor architecture required to run the application (e.g. IA64).
+ * Version of the software instance.
*
*
* @var string
*/
- protected $processorRequirements;
+ protected $softwareVersion;
/**
- * A link to a screenshot image of the app.
+ * Size of the application / package (e.g. 18MB). In the absence of a unit (MB, KB etc.), KB will be assumed.
*
*
- * @var \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @var string
*/
- protected $screenshot;
+ protected $fileSize;
/**
- * Features or modules provided by this application (and possibly required by other applications).
+ * Device required to run the application. Used in cases where a specific make/model is required to run the application.
*
*
* @var string
*/
- protected $featureList;
+ protected $device;
/**
- * Description of what changed in this version.
+ * Type of software application, e.g. 'Game, Multimedia'.
*
*
* @var string
*/
- protected $releaseNotes;
+ protected $applicationCategory;
/**
- * Supporting data for a SoftwareApplication.
+ * Description of what changed in this version.
*
*
- * @var \OpenActive\Models\SchemaOrg\DataFeed|string
+ * @var string
*/
- protected $supportingData;
+ protected $releaseNotes;
/**
- * Size of the application / package (e.g. 18MB). In the absence of a unit (MB, KB etc.), KB will be assumed.
+ * The name of the application suite to which the application belongs (e.g. Excel belongs to Office).
*
*
* @var string
*/
- protected $fileSize;
+ protected $applicationSuite;
/**
* Device required to run the application. Used in cases where a specific make/model is required to run the application.
@@ -228,594 +228,594 @@ 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.
+ * Processor architecture required to run the application (e.g. IA64).
*
*
* @var string
*/
- protected $availableOnDevice;
+ protected $processorRequirements;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getCountriesSupported()
+ public function getSoftwareHelp()
{
- return $this->countriesSupported;
+ return $this->softwareHelp;
}
/**
- * @param string $countriesSupported
+ * @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 setCountriesSupported($countriesSupported)
+ public function setSoftwareHelp($softwareHelp)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $countriesSupported = self::checkTypes($countriesSupported, $types);
+ $softwareHelp = self::checkTypes($softwareHelp, $types);
- $this->countriesSupported = $countriesSupported;
+ $this->softwareHelp = $softwareHelp;
}
/**
* @return string
*/
- public function getInstallUrl()
+ public function getApplicationSubCategory()
{
- return $this->installUrl;
+ return $this->applicationSubCategory;
}
/**
- * @param string $installUrl
+ * @param string $applicationSubCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInstallUrl($installUrl)
+ public function setApplicationSubCategory($applicationSubCategory)
{
$types = [
"string",
];
- $installUrl = self::checkTypes($installUrl, $types);
+ $applicationSubCategory = self::checkTypes($applicationSubCategory, $types);
- $this->installUrl = $installUrl;
+ $this->applicationSubCategory = $applicationSubCategory;
}
/**
* @return string
*/
- public function getOperatingSystem()
+ public function getDownloadUrl()
{
- return $this->operatingSystem;
+ return $this->downloadUrl;
}
/**
- * @param string $operatingSystem
+ * @param string $downloadUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOperatingSystem($operatingSystem)
+ public function setDownloadUrl($downloadUrl)
{
$types = [
"string",
];
- $operatingSystem = self::checkTypes($operatingSystem, $types);
+ $downloadUrl = self::checkTypes($downloadUrl, $types);
- $this->operatingSystem = $operatingSystem;
+ $this->downloadUrl = $downloadUrl;
}
/**
* @return string
*/
- public function getMemoryRequirements()
+ public function getSoftwareRequirements()
{
- return $this->memoryRequirements;
+ return $this->softwareRequirements;
}
/**
- * @param string $memoryRequirements
+ * @param string $softwareRequirements
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMemoryRequirements($memoryRequirements)
+ public function setSoftwareRequirements($softwareRequirements)
{
$types = [
"string",
];
- $memoryRequirements = self::checkTypes($memoryRequirements, $types);
+ $softwareRequirements = self::checkTypes($softwareRequirements, $types);
- $this->memoryRequirements = $memoryRequirements;
+ $this->softwareRequirements = $softwareRequirements;
}
/**
* @return string
*/
- public function getSoftwareVersion()
+ public function getMemoryRequirements()
{
- return $this->softwareVersion;
+ return $this->memoryRequirements;
}
/**
- * @param string $softwareVersion
+ * @param string $memoryRequirements
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSoftwareVersion($softwareVersion)
+ public function setMemoryRequirements($memoryRequirements)
{
$types = [
"string",
];
- $softwareVersion = self::checkTypes($softwareVersion, $types);
+ $memoryRequirements = self::checkTypes($memoryRequirements, $types);
- $this->softwareVersion = $softwareVersion;
+ $this->memoryRequirements = $memoryRequirements;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
- public function getStorageRequirements()
+ public function getSoftwareAddOn()
{
- return $this->storageRequirements;
+ return $this->softwareAddOn;
}
/**
- * @param string $storageRequirements
+ * @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 setStorageRequirements($storageRequirements)
+ public function setSoftwareAddOn($softwareAddOn)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\SoftwareApplication",
"string",
];
- $storageRequirements = self::checkTypes($storageRequirements, $types);
+ $softwareAddOn = self::checkTypes($softwareAddOn, $types);
- $this->storageRequirements = $storageRequirements;
+ $this->softwareAddOn = $softwareAddOn;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\DataFeed|string
*/
- public function getSoftwareHelp()
+ public function getSupportingData()
{
- return $this->softwareHelp;
+ return $this->supportingData;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $softwareHelp
+ * @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 setSoftwareHelp($softwareHelp)
+ public function setSupportingData($supportingData)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\DataFeed",
"string",
];
- $softwareHelp = self::checkTypes($softwareHelp, $types);
+ $supportingData = self::checkTypes($supportingData, $types);
- $this->softwareHelp = $softwareHelp;
+ $this->supportingData = $supportingData;
}
/**
* @return string
*/
- public function getApplicationSubCategory()
+ public function getCountriesSupported()
{
- return $this->applicationSubCategory;
+ return $this->countriesSupported;
}
/**
- * @param string $applicationSubCategory
+ * @param string $countriesSupported
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicationSubCategory($applicationSubCategory)
+ public function setCountriesSupported($countriesSupported)
{
$types = [
"string",
];
- $applicationSubCategory = self::checkTypes($applicationSubCategory, $types);
+ $countriesSupported = self::checkTypes($countriesSupported, $types);
- $this->applicationSubCategory = $applicationSubCategory;
+ $this->countriesSupported = $countriesSupported;
}
/**
* @return string
*/
- public function getDownloadUrl()
+ public function getRequirements()
{
- return $this->downloadUrl;
+ return $this->requirements;
}
/**
- * @param string $downloadUrl
+ * @param string $requirements
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDownloadUrl($downloadUrl)
+ public function setRequirements($requirements)
{
$types = [
"string",
];
- $downloadUrl = self::checkTypes($downloadUrl, $types);
+ $requirements = self::checkTypes($requirements, $types);
- $this->downloadUrl = $downloadUrl;
+ $this->requirements = $requirements;
}
/**
* @return string
*/
- public function getApplicationCategory()
+ public function getInstallUrl()
{
- return $this->applicationCategory;
+ return $this->installUrl;
}
/**
- * @param string $applicationCategory
+ * @param string $installUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicationCategory($applicationCategory)
+ public function setInstallUrl($installUrl)
{
$types = [
"string",
];
- $applicationCategory = self::checkTypes($applicationCategory, $types);
+ $installUrl = self::checkTypes($installUrl, $types);
- $this->applicationCategory = $applicationCategory;
+ $this->installUrl = $installUrl;
}
/**
* @return string
*/
- public function getCountriesNotSupported()
+ public function getPermissions()
{
- return $this->countriesNotSupported;
+ return $this->permissions;
}
/**
- * @param string $countriesNotSupported
+ * @param string $permissions
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCountriesNotSupported($countriesNotSupported)
+ public function setPermissions($permissions)
{
$types = [
"string",
];
- $countriesNotSupported = self::checkTypes($countriesNotSupported, $types);
+ $permissions = self::checkTypes($permissions, $types);
- $this->countriesNotSupported = $countriesNotSupported;
+ $this->permissions = $permissions;
}
/**
* @return string
*/
- public function getSoftwareRequirements()
+ public function getFeatureList()
{
- return $this->softwareRequirements;
+ return $this->featureList;
}
/**
- * @param string $softwareRequirements
+ * @param string $featureList
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSoftwareRequirements($softwareRequirements)
+ public function setFeatureList($featureList)
{
$types = [
"string",
];
- $softwareRequirements = self::checkTypes($softwareRequirements, $types);
+ $featureList = self::checkTypes($featureList, $types);
- $this->softwareRequirements = $softwareRequirements;
+ $this->featureList = $featureList;
}
/**
- * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string
+ * @return string
*/
- public function getSoftwareAddOn()
+ public function getStorageRequirements()
{
- return $this->softwareAddOn;
+ return $this->storageRequirements;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $softwareAddOn
+ * @param string $storageRequirements
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSoftwareAddOn($softwareAddOn)
+ public function setStorageRequirements($storageRequirements)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SoftwareApplication",
"string",
];
- $softwareAddOn = self::checkTypes($softwareAddOn, $types);
+ $storageRequirements = self::checkTypes($storageRequirements, $types);
- $this->softwareAddOn = $softwareAddOn;
+ $this->storageRequirements = $storageRequirements;
}
/**
* @return string
*/
- public function getApplicationSuite()
+ public function getCountriesNotSupported()
{
- return $this->applicationSuite;
+ return $this->countriesNotSupported;
}
/**
- * @param string $applicationSuite
+ * @param string $countriesNotSupported
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicationSuite($applicationSuite)
+ public function setCountriesNotSupported($countriesNotSupported)
{
$types = [
"string",
];
- $applicationSuite = self::checkTypes($applicationSuite, $types);
+ $countriesNotSupported = self::checkTypes($countriesNotSupported, $types);
- $this->applicationSuite = $applicationSuite;
+ $this->countriesNotSupported = $countriesNotSupported;
}
/**
* @return string
*/
- public function getRequirements()
+ public function getOperatingSystem()
{
- return $this->requirements;
+ return $this->operatingSystem;
}
/**
- * @param string $requirements
+ * @param string $operatingSystem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRequirements($requirements)
+ public function setOperatingSystem($operatingSystem)
{
$types = [
"string",
];
- $requirements = self::checkTypes($requirements, $types);
+ $operatingSystem = self::checkTypes($operatingSystem, $types);
- $this->requirements = $requirements;
+ $this->operatingSystem = $operatingSystem;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\ImageObject
*/
- public function getPermissions()
+ public function getScreenshot()
{
- return $this->permissions;
+ return $this->screenshot;
}
/**
- * @param string $permissions
+ * @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 setPermissions($permissions)
+ public function setScreenshot($screenshot)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\ImageObject",
];
- $permissions = self::checkTypes($permissions, $types);
+ $screenshot = self::checkTypes($screenshot, $types);
- $this->permissions = $permissions;
+ $this->screenshot = $screenshot;
}
/**
* @return string
*/
- public function getProcessorRequirements()
+ public function getSoftwareVersion()
{
- return $this->processorRequirements;
+ return $this->softwareVersion;
}
/**
- * @param string $processorRequirements
+ * @param string $softwareVersion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProcessorRequirements($processorRequirements)
+ public function setSoftwareVersion($softwareVersion)
{
$types = [
"string",
];
- $processorRequirements = self::checkTypes($processorRequirements, $types);
+ $softwareVersion = self::checkTypes($softwareVersion, $types);
- $this->processorRequirements = $processorRequirements;
+ $this->softwareVersion = $softwareVersion;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @return string
*/
- public function getScreenshot()
+ public function getFileSize()
{
- return $this->screenshot;
+ return $this->fileSize;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ImageObject|string $screenshot
+ * @param string $fileSize
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setScreenshot($screenshot)
+ public function setFileSize($fileSize)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
];
- $screenshot = self::checkTypes($screenshot, $types);
+ $fileSize = self::checkTypes($fileSize, $types);
- $this->screenshot = $screenshot;
+ $this->fileSize = $fileSize;
}
/**
* @return string
*/
- public function getFeatureList()
+ public function getDevice()
{
- return $this->featureList;
+ return $this->device;
}
/**
- * @param string $featureList
+ * @param string $device
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFeatureList($featureList)
+ public function setDevice($device)
{
$types = [
"string",
];
- $featureList = self::checkTypes($featureList, $types);
+ $device = self::checkTypes($device, $types);
- $this->featureList = $featureList;
+ $this->device = $device;
}
/**
* @return string
*/
- public function getReleaseNotes()
+ public function getApplicationCategory()
{
- return $this->releaseNotes;
+ return $this->applicationCategory;
}
/**
- * @param string $releaseNotes
+ * @param string $applicationCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReleaseNotes($releaseNotes)
+ public function setApplicationCategory($applicationCategory)
{
$types = [
"string",
];
- $releaseNotes = self::checkTypes($releaseNotes, $types);
+ $applicationCategory = self::checkTypes($applicationCategory, $types);
- $this->releaseNotes = $releaseNotes;
+ $this->applicationCategory = $applicationCategory;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DataFeed|string
+ * @return string
*/
- public function getSupportingData()
+ public function getReleaseNotes()
{
- return $this->supportingData;
+ return $this->releaseNotes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DataFeed|string $supportingData
+ * @param string $releaseNotes
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSupportingData($supportingData)
+ public function setReleaseNotes($releaseNotes)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DataFeed",
"string",
];
- $supportingData = self::checkTypes($supportingData, $types);
+ $releaseNotes = self::checkTypes($releaseNotes, $types);
- $this->supportingData = $supportingData;
+ $this->releaseNotes = $releaseNotes;
}
/**
* @return string
*/
- public function getFileSize()
+ public function getApplicationSuite()
{
- return $this->fileSize;
+ return $this->applicationSuite;
}
/**
- * @param string $fileSize
+ * @param string $applicationSuite
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFileSize($fileSize)
+ public function setApplicationSuite($applicationSuite)
{
$types = [
"string",
];
- $fileSize = self::checkTypes($fileSize, $types);
+ $applicationSuite = self::checkTypes($applicationSuite, $types);
- $this->fileSize = $fileSize;
+ $this->applicationSuite = $applicationSuite;
}
/**
* @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 getProcessorRequirements()
{
- return $this->availableOnDevice;
+ return $this->processorRequirements;
}
/**
- * @param string $availableOnDevice
+ * @param string $processorRequirements
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableOnDevice($availableOnDevice)
+ public function setProcessorRequirements($processorRequirements)
{
$types = [
"string",
];
- $availableOnDevice = self::checkTypes($availableOnDevice, $types);
+ $processorRequirements = self::checkTypes($processorRequirements, $types);
- $this->availableOnDevice = $availableOnDevice;
+ $this->processorRequirements = $processorRequirements;
}
}
diff --git a/src/Models/SchemaOrg/SoftwareSourceCode.php b/src/Models/SchemaOrg/SoftwareSourceCode.php
index 2bf0a0af..04d3101d 100644
--- a/src/Models/SchemaOrg/SoftwareSourceCode.php
+++ b/src/Models/SchemaOrg/SoftwareSourceCode.php
@@ -17,25 +17,25 @@ public static function getType()
public static function fieldList() {
$fields = [
- "programmingLanguage" => "programmingLanguage",
- "sampleType" => "sampleType",
- "runtimePlatform" => "runtimePlatform",
"runtime" => "runtime",
+ "codeSampleType" => "codeSampleType",
"targetProduct" => "targetProduct",
+ "programmingLanguage" => "programmingLanguage",
"codeRepository" => "codeRepository",
- "codeSampleType" => "codeSampleType",
+ "sampleType" => "sampleType",
+ "runtimePlatform" => "runtimePlatform",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The computer programming language.
+ * Runtime platform or script interpreter dependencies (example: Java v1, Python 2.3, .NET Framework 3.0).
*
*
- * @var string|\OpenActive\Models\SchemaOrg\ComputerLanguage
+ * @var string
*/
- protected $programmingLanguage;
+ protected $runtime;
/**
* What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template.
@@ -43,216 +43,216 @@ public static function fieldList() {
*
* @var string
*/
- protected $sampleType;
+ protected $codeSampleType;
/**
- * Runtime platform or script interpreter dependencies (Example - Java v1, Python2.3, .Net Framework 3.0).
+ * Target Operating System / Product to which the code applies. If applies to several versions, just the product name can be used.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
- protected $runtimePlatform;
+ protected $targetProduct;
/**
- * 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.
+ * Link to the repository where the un-compiled, human readable code and related code is located (SVN, GitHub, CodePlex).
*
*
- * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string
+ * @var string
*/
- protected $targetProduct;
+ protected $codeRepository;
/**
- * Link to the repository where the un-compiled, human readable code and related code is located (SVN, github, CodePlex).
+ * What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template.
*
*
* @var string
*/
- protected $codeRepository;
+ protected $sampleType;
/**
- * What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template.
+ * Runtime platform or script interpreter dependencies (example: Java v1, Python 2.3, .NET Framework 3.0).
*
*
* @var string
*/
- protected $codeSampleType;
+ protected $runtimePlatform;
/**
- * @return string|\OpenActive\Models\SchemaOrg\ComputerLanguage
+ * @return string
*/
- public function getProgrammingLanguage()
+ public function getRuntime()
{
- return $this->programmingLanguage;
+ return $this->runtime;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\ComputerLanguage $programmingLanguage
+ * @param string $runtime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProgrammingLanguage($programmingLanguage)
+ public function setRuntime($runtime)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\ComputerLanguage",
];
- $programmingLanguage = self::checkTypes($programmingLanguage, $types);
+ $runtime = self::checkTypes($runtime, $types);
- $this->programmingLanguage = $programmingLanguage;
+ $this->runtime = $runtime;
}
/**
* @return string
*/
- public function getSampleType()
+ public function getCodeSampleType()
{
- return $this->sampleType;
+ return $this->codeSampleType;
}
/**
- * @param string $sampleType
+ * @param string $codeSampleType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSampleType($sampleType)
+ public function setCodeSampleType($codeSampleType)
{
$types = [
"string",
];
- $sampleType = self::checkTypes($sampleType, $types);
+ $codeSampleType = self::checkTypes($codeSampleType, $types);
- $this->sampleType = $sampleType;
+ $this->codeSampleType = $codeSampleType;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
- public function getRuntimePlatform()
+ public function getTargetProduct()
{
- return $this->runtimePlatform;
+ return $this->targetProduct;
}
/**
- * @param string $runtimePlatform
+ * @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 setRuntimePlatform($runtimePlatform)
+ public function setTargetProduct($targetProduct)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\SoftwareApplication",
"string",
];
- $runtimePlatform = self::checkTypes($runtimePlatform, $types);
+ $targetProduct = self::checkTypes($targetProduct, $types);
- $this->runtimePlatform = $runtimePlatform;
+ $this->targetProduct = $targetProduct;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\ComputerLanguage|string
*/
- public function getRuntime()
+ public function getProgrammingLanguage()
{
- return $this->runtime;
+ return $this->programmingLanguage;
}
/**
- * @param string $runtime
+ * @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 setRuntime($runtime)
+ public function setProgrammingLanguage($programmingLanguage)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ComputerLanguage",
"string",
];
- $runtime = self::checkTypes($runtime, $types);
+ $programmingLanguage = self::checkTypes($programmingLanguage, $types);
- $this->runtime = $runtime;
+ $this->programmingLanguage = $programmingLanguage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string
+ * @return string
*/
- public function getTargetProduct()
+ public function getCodeRepository()
{
- return $this->targetProduct;
+ return $this->codeRepository;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $targetProduct
+ * @param string $codeRepository
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTargetProduct($targetProduct)
+ public function setCodeRepository($codeRepository)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SoftwareApplication",
"string",
];
- $targetProduct = self::checkTypes($targetProduct, $types);
+ $codeRepository = self::checkTypes($codeRepository, $types);
- $this->targetProduct = $targetProduct;
+ $this->codeRepository = $codeRepository;
}
/**
* @return string
*/
- public function getCodeRepository()
+ public function getSampleType()
{
- return $this->codeRepository;
+ return $this->sampleType;
}
/**
- * @param string $codeRepository
+ * @param string $sampleType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCodeRepository($codeRepository)
+ public function setSampleType($sampleType)
{
$types = [
"string",
];
- $codeRepository = self::checkTypes($codeRepository, $types);
+ $sampleType = self::checkTypes($sampleType, $types);
- $this->codeRepository = $codeRepository;
+ $this->sampleType = $sampleType;
}
/**
* @return string
*/
- public function getCodeSampleType()
+ public function getRuntimePlatform()
{
- return $this->codeSampleType;
+ return $this->runtimePlatform;
}
/**
- * @param string $codeSampleType
+ * @param string $runtimePlatform
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCodeSampleType($codeSampleType)
+ public function setRuntimePlatform($runtimePlatform)
{
$types = [
"string",
];
- $codeSampleType = self::checkTypes($codeSampleType, $types);
+ $runtimePlatform = self::checkTypes($runtimePlatform, $types);
- $this->codeSampleType = $codeSampleType;
+ $this->runtimePlatform = $runtimePlatform;
}
}
diff --git a/src/Models/SchemaOrg/SpecialAnnouncement.php b/src/Models/SchemaOrg/SpecialAnnouncement.php
index e51824dd..2609c5be 100644
--- a/src/Models/SchemaOrg/SpecialAnnouncement.php
+++ b/src/Models/SchemaOrg/SpecialAnnouncement.php
@@ -17,113 +17,121 @@ public static function getType()
public static function fieldList() {
$fields = [
- "governmentBenefitsInfo" => "governmentBenefitsInfo",
- "category" => "category",
- "diseaseSpreadStatistics" => "diseaseSpreadStatistics",
- "gettingTestedInfo" => "gettingTestedInfo",
"announcementLocation" => "announcementLocation",
- "travelBans" => "travelBans",
- "diseasePreventionInfo" => "diseasePreventionInfo",
- "publicTransportClosuresInfo" => "publicTransportClosuresInfo",
+ "newsUpdatesAndGuidelines" => "newsUpdatesAndGuidelines",
+ "category" => "category",
"schoolClosuresInfo" => "schoolClosuresInfo",
+ "publicTransportClosuresInfo" => "publicTransportClosuresInfo",
+ "governmentBenefitsInfo" => "governmentBenefitsInfo",
+ "gettingTestedInfo" => "gettingTestedInfo",
"datePosted" => "datePosted",
- "newsUpdatesAndGuidelines" => "newsUpdatesAndGuidelines",
- "quarantineGuidelines" => "quarantineGuidelines",
+ "diseasePreventionInfo" => "diseasePreventionInfo",
+ "diseaseSpreadStatistics" => "diseaseSpreadStatistics",
+ "travelBans" => "travelBans",
"webFeed" => "webFeed",
+ "quarantineGuidelines" => "quarantineGuidelines",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * governmentBenefitsInfo provides information about government benefits associated with a SpecialAnnouncement.
+ * Indicates a specific [[CivicStructure]] or [[LocalBusiness]] associated with the SpecialAnnouncement. For example, a specific testing facility or business with special opening hours. For a larger geographic region like a quarantine of an entire region, use [[spatialCoverage]].
*
*
- * @var \OpenActive\Models\SchemaOrg\GovernmentService|string
+ * @var \OpenActive\Models\SchemaOrg\LocalBusiness|\OpenActive\Models\SchemaOrg\CivicStructure|string
*/
- protected $governmentBenefitsInfo;
+ protected $announcementLocation;
+
+ /**
+ * Indicates a page with news updates and guidelines. This could often be (but is not required to be) the main page containing [[SpecialAnnouncement]] markup on a site.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\WebContent|string
+ */
+ protected $newsUpdatesAndGuidelines;
/**
* 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|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
*/
protected $category;
/**
- * Statistical information about the spread of a disease, either as [[WebContent]], or
- * described directly as a [[Dataset]], or the specific [[Observation]]s in the dataset. When a [[WebContent]] URL is
- * provided, the page indicated might also contain more such markup.
+ * Information about school closures.
*
*
- * @var \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\WebContent|string
+ * @var string|\OpenActive\Models\SchemaOrg\WebContent
*/
- protected $diseaseSpreadStatistics;
+ protected $schoolClosuresInfo;
/**
- * Information about getting tested (for a [[MedicalCondition]]), e.g. in the context of a pandemic.
+ * Information about public transport closures.
*
*
- * @var \OpenActive\Models\SchemaOrg\WebContent|string
+ * @var string|\OpenActive\Models\SchemaOrg\WebContent
*/
- protected $gettingTestedInfo;
+ protected $publicTransportClosuresInfo;
/**
- * Indicates a specific [[CivicStructure]] or [[LocalBusiness]] associated with the SpecialAnnouncement. For example, a specific testing facility or business with special opening hours. For a larger geographic region like a quarantine of an entire region, use [[spatialCoverage]].
+ * governmentBenefitsInfo provides information about government benefits associated with a SpecialAnnouncement.
*
*
- * @var \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string
+ * @var \OpenActive\Models\SchemaOrg\GovernmentService|string
*/
- protected $announcementLocation;
+ protected $governmentBenefitsInfo;
/**
- * Information about travel bans, e.g. in the context of a pandemic.
+ * Information about getting tested (for a [[MedicalCondition]]), e.g. in the context of a pandemic.
*
*
* @var string|\OpenActive\Models\SchemaOrg\WebContent
*/
- protected $travelBans;
+ protected $gettingTestedInfo;
/**
- * Information about disease prevention.
+ * Publication date of an online listing.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\WebContent
+ * @var Date|DateTime|null
*/
- protected $diseasePreventionInfo;
+ protected $datePosted;
/**
- * Information about public transport closures.
+ * Information about disease prevention.
*
*
* @var string|\OpenActive\Models\SchemaOrg\WebContent
*/
- protected $publicTransportClosuresInfo;
+ protected $diseasePreventionInfo;
/**
- * Information about school 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 \OpenActive\Models\SchemaOrg\WebContent|string
+ * @var string|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\Dataset
*/
- protected $schoolClosuresInfo;
+ protected $diseaseSpreadStatistics;
/**
- * Publication date of an online listing.
+ * Information about travel bans, e.g. in the context of a pandemic.
*
*
- * @var Date|DateTime|null
+ * @var string|\OpenActive\Models\SchemaOrg\WebContent
*/
- protected $datePosted;
+ protected $travelBans;
/**
- * 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.
+ * 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 \OpenActive\Models\SchemaOrg\DataFeed|string
*/
- protected $newsUpdatesAndGuidelines;
+ protected $webFeed;
/**
* Guidelines about quarantine rules, e.g. in the context of a pandemic.
@@ -134,40 +142,58 @@ 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.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\DataFeed|string
+ * @return \OpenActive\Models\SchemaOrg\LocalBusiness|\OpenActive\Models\SchemaOrg\CivicStructure|string
*/
- protected $webFeed;
+ public function getAnnouncementLocation()
+ {
+ return $this->announcementLocation;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\GovernmentService|string
+ * @param \OpenActive\Models\SchemaOrg\LocalBusiness|\OpenActive\Models\SchemaOrg\CivicStructure|string $announcementLocation
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function getGovernmentBenefitsInfo()
+ public function setAnnouncementLocation($announcementLocation)
{
- return $this->governmentBenefitsInfo;
+ $types = [
+ "\OpenActive\Models\SchemaOrg\LocalBusiness",
+ "\OpenActive\Models\SchemaOrg\CivicStructure",
+ "string",
+ ];
+
+ $announcementLocation = self::checkTypes($announcementLocation, $types);
+
+ $this->announcementLocation = $announcementLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GovernmentService|string $governmentBenefitsInfo
+ * @return \OpenActive\Models\SchemaOrg\WebContent|string
+ */
+ public function getNewsUpdatesAndGuidelines()
+ {
+ return $this->newsUpdatesAndGuidelines;
+ }
+
+ /**
+ * @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 setGovernmentBenefitsInfo($governmentBenefitsInfo)
+ public function setNewsUpdatesAndGuidelines($newsUpdatesAndGuidelines)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GovernmentService",
+ "\OpenActive\Models\SchemaOrg\WebContent",
"string",
];
- $governmentBenefitsInfo = self::checkTypes($governmentBenefitsInfo, $types);
+ $newsUpdatesAndGuidelines = self::checkTypes($newsUpdatesAndGuidelines, $types);
- $this->governmentBenefitsInfo = $governmentBenefitsInfo;
+ $this->newsUpdatesAndGuidelines = $newsUpdatesAndGuidelines;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
*/
public function getCategory()
{
@@ -175,15 +201,15 @@ public function getCategory()
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
+ * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setCategory($category)
{
$types = [
- "string",
"\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
+ "string",
"\OpenActive\Models\SchemaOrg\Thing",
"\OpenActive\Models\SchemaOrg\CategoryCode",
"null",
@@ -195,232 +221,231 @@ public function setCategory($category)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\WebContent|string
+ * @return string|\OpenActive\Models\SchemaOrg\WebContent
*/
- public function getDiseaseSpreadStatistics()
+ public function getSchoolClosuresInfo()
{
- return $this->diseaseSpreadStatistics;
+ return $this->schoolClosuresInfo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\WebContent|string $diseaseSpreadStatistics
+ * @param string|\OpenActive\Models\SchemaOrg\WebContent $schoolClosuresInfo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDiseaseSpreadStatistics($diseaseSpreadStatistics)
+ public function setSchoolClosuresInfo($schoolClosuresInfo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Dataset",
- "\OpenActive\Models\SchemaOrg\Observation",
- "\OpenActive\Models\SchemaOrg\WebContent",
"string",
+ "\OpenActive\Models\SchemaOrg\WebContent",
];
- $diseaseSpreadStatistics = self::checkTypes($diseaseSpreadStatistics, $types);
+ $schoolClosuresInfo = self::checkTypes($schoolClosuresInfo, $types);
- $this->diseaseSpreadStatistics = $diseaseSpreadStatistics;
+ $this->schoolClosuresInfo = $schoolClosuresInfo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\WebContent|string
+ * @return string|\OpenActive\Models\SchemaOrg\WebContent
*/
- public function getGettingTestedInfo()
+ public function getPublicTransportClosuresInfo()
{
- return $this->gettingTestedInfo;
+ return $this->publicTransportClosuresInfo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\WebContent|string $gettingTestedInfo
+ * @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 setGettingTestedInfo($gettingTestedInfo)
+ public function setPublicTransportClosuresInfo($publicTransportClosuresInfo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\WebContent",
"string",
+ "\OpenActive\Models\SchemaOrg\WebContent",
];
- $gettingTestedInfo = self::checkTypes($gettingTestedInfo, $types);
+ $publicTransportClosuresInfo = self::checkTypes($publicTransportClosuresInfo, $types);
- $this->gettingTestedInfo = $gettingTestedInfo;
+ $this->publicTransportClosuresInfo = $publicTransportClosuresInfo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string
+ * @return \OpenActive\Models\SchemaOrg\GovernmentService|string
*/
- public function getAnnouncementLocation()
+ public function getGovernmentBenefitsInfo()
{
- return $this->announcementLocation;
+ return $this->governmentBenefitsInfo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string $announcementLocation
+ * @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 setAnnouncementLocation($announcementLocation)
+ public function setGovernmentBenefitsInfo($governmentBenefitsInfo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CivicStructure",
- "\OpenActive\Models\SchemaOrg\LocalBusiness",
+ "\OpenActive\Models\SchemaOrg\GovernmentService",
"string",
];
- $announcementLocation = self::checkTypes($announcementLocation, $types);
+ $governmentBenefitsInfo = self::checkTypes($governmentBenefitsInfo, $types);
- $this->announcementLocation = $announcementLocation;
+ $this->governmentBenefitsInfo = $governmentBenefitsInfo;
}
/**
* @return string|\OpenActive\Models\SchemaOrg\WebContent
*/
- public function getTravelBans()
+ public function getGettingTestedInfo()
{
- return $this->travelBans;
+ return $this->gettingTestedInfo;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\WebContent $travelBans
+ * @param string|\OpenActive\Models\SchemaOrg\WebContent $gettingTestedInfo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTravelBans($travelBans)
+ public function setGettingTestedInfo($gettingTestedInfo)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\WebContent",
];
- $travelBans = self::checkTypes($travelBans, $types);
+ $gettingTestedInfo = self::checkTypes($gettingTestedInfo, $types);
- $this->travelBans = $travelBans;
+ $this->gettingTestedInfo = $gettingTestedInfo;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\WebContent
+ * @return Date|DateTime|null
*/
- public function getDiseasePreventionInfo()
+ public function getDatePosted()
{
- return $this->diseasePreventionInfo;
+ return $this->datePosted;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\WebContent $diseasePreventionInfo
+ * @param Date|DateTime|null $datePosted
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDiseasePreventionInfo($diseasePreventionInfo)
+ public function setDatePosted($datePosted)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\WebContent",
+ "Date",
+ "DateTime",
+ "null",
];
- $diseasePreventionInfo = self::checkTypes($diseasePreventionInfo, $types);
+ $datePosted = self::checkTypes($datePosted, $types);
- $this->diseasePreventionInfo = $diseasePreventionInfo;
+ $this->datePosted = $datePosted;
}
/**
* @return string|\OpenActive\Models\SchemaOrg\WebContent
*/
- public function getPublicTransportClosuresInfo()
+ public function getDiseasePreventionInfo()
{
- return $this->publicTransportClosuresInfo;
+ return $this->diseasePreventionInfo;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\WebContent $publicTransportClosuresInfo
+ * @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 setPublicTransportClosuresInfo($publicTransportClosuresInfo)
+ public function setDiseasePreventionInfo($diseasePreventionInfo)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\WebContent",
];
- $publicTransportClosuresInfo = self::checkTypes($publicTransportClosuresInfo, $types);
+ $diseasePreventionInfo = self::checkTypes($diseasePreventionInfo, $types);
- $this->publicTransportClosuresInfo = $publicTransportClosuresInfo;
+ $this->diseasePreventionInfo = $diseasePreventionInfo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\WebContent|string
+ * @return string|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\Dataset
*/
- public function getSchoolClosuresInfo()
+ public function getDiseaseSpreadStatistics()
{
- return $this->schoolClosuresInfo;
+ return $this->diseaseSpreadStatistics;
}
/**
- * @param \OpenActive\Models\SchemaOrg\WebContent|string $schoolClosuresInfo
+ * @param string|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\Dataset $diseaseSpreadStatistics
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSchoolClosuresInfo($schoolClosuresInfo)
+ public function setDiseaseSpreadStatistics($diseaseSpreadStatistics)
{
$types = [
- "\OpenActive\Models\SchemaOrg\WebContent",
"string",
+ "\OpenActive\Models\SchemaOrg\WebContent",
+ "\OpenActive\Models\SchemaOrg\Observation",
+ "\OpenActive\Models\SchemaOrg\Dataset",
];
- $schoolClosuresInfo = self::checkTypes($schoolClosuresInfo, $types);
+ $diseaseSpreadStatistics = self::checkTypes($diseaseSpreadStatistics, $types);
- $this->schoolClosuresInfo = $schoolClosuresInfo;
+ $this->diseaseSpreadStatistics = $diseaseSpreadStatistics;
}
/**
- * @return Date|DateTime|null
+ * @return string|\OpenActive\Models\SchemaOrg\WebContent
*/
- public function getDatePosted()
+ public function getTravelBans()
{
- return $this->datePosted;
+ return $this->travelBans;
}
/**
- * @param Date|DateTime|null $datePosted
+ * @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 setDatePosted($datePosted)
+ public function setTravelBans($travelBans)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\WebContent",
];
- $datePosted = self::checkTypes($datePosted, $types);
+ $travelBans = self::checkTypes($travelBans, $types);
- $this->datePosted = $datePosted;
+ $this->travelBans = $travelBans;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\WebContent
+ * @return \OpenActive\Models\SchemaOrg\DataFeed|string
*/
- public function getNewsUpdatesAndGuidelines()
+ public function getWebFeed()
{
- return $this->newsUpdatesAndGuidelines;
+ return $this->webFeed;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\WebContent $newsUpdatesAndGuidelines
+ * @param \OpenActive\Models\SchemaOrg\DataFeed|string $webFeed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNewsUpdatesAndGuidelines($newsUpdatesAndGuidelines)
+ public function setWebFeed($webFeed)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DataFeed",
"string",
- "\OpenActive\Models\SchemaOrg\WebContent",
];
- $newsUpdatesAndGuidelines = self::checkTypes($newsUpdatesAndGuidelines, $types);
+ $webFeed = self::checkTypes($webFeed, $types);
- $this->newsUpdatesAndGuidelines = $newsUpdatesAndGuidelines;
+ $this->webFeed = $webFeed;
}
/**
@@ -448,29 +473,4 @@ public function setQuarantineGuidelines($quarantineGuidelines)
$this->quarantineGuidelines = $quarantineGuidelines;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\DataFeed|string
- */
- public function getWebFeed()
- {
- return $this->webFeed;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\DataFeed|string $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",
- ];
-
- $webFeed = self::checkTypes($webFeed, $types);
-
- $this->webFeed = $webFeed;
- }
-
}
diff --git a/src/Models/SchemaOrg/SportsEvent.php b/src/Models/SchemaOrg/SportsEvent.php
index 4bed306f..ee133546 100644
--- a/src/Models/SchemaOrg/SportsEvent.php
+++ b/src/Models/SchemaOrg/SportsEvent.php
@@ -17,113 +17,111 @@ public static function getType()
public static function fieldList() {
$fields = [
- "homeTeam" => "homeTeam",
- "awayTeam" => "awayTeam",
- "competitor" => "competitor",
"sport" => "sport",
+ "competitor" => "competitor",
+ "awayTeam" => "awayTeam",
+ "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.
+ * A competitor in a sports event.
*
*
- * @var \OpenActive\Models\SchemaOrg\SportsTeam|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string
*/
- protected $awayTeam;
+ protected $competitor;
/**
- * A competitor in a sports event.
+ * The away team in a sports event.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string
*/
- protected $competitor;
+ protected $awayTeam;
/**
- * A type of sport (e.g. Baseball).
+ * 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;
}
/**
- * @return \OpenActive\Models\SchemaOrg\SportsTeam|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string
*/
- public function getAwayTeam()
+ public function getCompetitor()
{
- return $this->awayTeam;
+ return $this->competitor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SportsTeam|\OpenActive\Models\SchemaOrg\Person|string $awayTeam
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string $competitor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAwayTeam($awayTeam)
+ public function setCompetitor($competitor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SportsTeam",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\SportsTeam",
"string",
];
- $awayTeam = self::checkTypes($awayTeam, $types);
+ $competitor = self::checkTypes($competitor, $types);
- $this->awayTeam = $awayTeam;
+ $this->competitor = $competitor;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string
*/
- public function getCompetitor()
+ public function getAwayTeam()
{
- return $this->competitor;
+ return $this->awayTeam;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string $competitor
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string $awayTeam
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCompetitor($competitor)
+ public function setAwayTeam($awayTeam)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
@@ -131,33 +129,35 @@ public function setCompetitor($competitor)
"string",
];
- $competitor = self::checkTypes($competitor, $types);
+ $awayTeam = self::checkTypes($awayTeam, $types);
- $this->competitor = $competitor;
+ $this->awayTeam = $awayTeam;
}
/**
- * @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/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..dd99f27e
--- /dev/null
+++ b/src/Models/SchemaOrg/StatisticalVariable.php
@@ -0,0 +1,275 @@
+ "measurementTechnique",
+ "statType" => "statType",
+ "populationType" => "populationType",
+ "measurementDenominator" => "measurementDenominator",
+ "measuredProperty" => "measuredProperty",
+ "measurementMethod" => "measurementMethod",
+ "measurementQualifier" => "measurementQualifier",
+ ];
+
+ 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 \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ protected $measurementTechnique;
+
+ /**
+ * 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;
+
+ /**
+ * 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;
+
+ /**
+ * 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 subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ protected $measurementMethod;
+
+ /**
+ * Provides additional qualification to an observation. For example, a GDP observation measures the Nominal value.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Enumeration|string
+ */
+ protected $measurementQualifier;
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ public function getMeasurementTechnique()
+ {
+ return $this->measurementTechnique;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string|\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 = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
+ ];
+
+ $measurementTechnique = self::checkTypes($measurementTechnique, $types);
+
+ $this->measurementTechnique = $measurementTechnique;
+ }
+
+ /**
+ * @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\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\PropertyEnumeration|null
+ */
+ public function getMeasuredProperty()
+ {
+ return $this->measuredProperty;
+ }
+
+ /**
+ * @param string|\OpenActive\Enums\PropertyEnumeration|null $measuredProperty
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMeasuredProperty($measuredProperty)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Enums\PropertyEnumeration",
+ "null",
+ ];
+
+ $measuredProperty = self::checkTypes($measuredProperty, $types);
+
+ $this->measuredProperty = $measuredProperty;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ public function getMeasurementMethod()
+ {
+ return $this->measurementMethod;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementMethod
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMeasurementMethod($measurementMethod)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
+ ];
+
+ $measurementMethod = self::checkTypes($measurementMethod, $types);
+
+ $this->measurementMethod = $measurementMethod;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Enumeration|string
+ */
+ public function getMeasurementQualifier()
+ {
+ return $this->measurementQualifier;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Enumeration|string $measurementQualifier
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMeasurementQualifier($measurementQualifier)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Enumeration",
+ "string",
+ ];
+
+ $measurementQualifier = self::checkTypes($measurementQualifier, $types);
+
+ $this->measurementQualifier = $measurementQualifier;
+ }
+
+}
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..94e620b8 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\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string
*/
- 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\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string
*/
- public function getOccupancy()
+ public function getBed()
{
- return $this->occupancy;
+ return $this->bed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $occupancy
+ * @param \OpenActive\Models\SchemaOrg\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string $bed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupancy($occupancy)
+ public function setBed($bed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\BedType",
+ "\OpenActive\Models\SchemaOrg\BedDetails",
"string",
];
- $occupancy = self::checkTypes($occupancy, $types);
+ $bed = self::checkTypes($bed, $types);
- $this->occupancy = $occupancy;
+ $this->bed = $bed;
}
}
diff --git a/src/Models/SchemaOrg/SuperficialAnatomy.php b/src/Models/SchemaOrg/SuperficialAnatomy.php
index 4432f6ac..61c5f9cf 100644
--- a/src/Models/SchemaOrg/SuperficialAnatomy.php
+++ b/src/Models/SchemaOrg/SuperficialAnatomy.php
@@ -17,10 +17,10 @@ public static function getType()
public static function fieldList() {
$fields = [
- "relatedTherapy" => "relatedTherapy",
"significance" => "significance",
- "relatedAnatomy" => "relatedAnatomy",
"relatedCondition" => "relatedCondition",
+ "relatedAnatomy" => "relatedAnatomy",
+ "relatedTherapy" => "relatedTherapy",
"associatedPathophysiology" => "associatedPathophysiology",
];
@@ -28,36 +28,36 @@ public static function fieldList() {
}
/**
- * A medical therapy related to this anatomy.
+ * The significance associated with the superficial anatomy; as an example, how characteristics of the superficial anatomy can suggest underlying medical conditions or courses of treatment.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var string
*/
- protected $relatedTherapy;
+ protected $significance;
/**
- * The significance associated with the superficial anatomy; as an example, how characteristics of the superficial anatomy can suggest underlying medical conditions or courses of treatment.
+ * A medical condition associated with this anatomy.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- protected $significance;
+ protected $relatedCondition;
/**
* Anatomical systems or structures that relate to the superficial anatomy.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
protected $relatedAnatomy;
/**
- * A medical condition associated with this anatomy.
+ * A medical therapy related to this anatomy.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $relatedCondition;
+ 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.
@@ -68,56 +68,56 @@ public static function fieldList() {
protected $associatedPathophysiology;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return string
*/
- public function getRelatedTherapy()
+ public function getSignificance()
{
- return $this->relatedTherapy;
+ return $this->significance;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy
+ * @param string $significance
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRelatedTherapy($relatedTherapy)
+ public function setSignificance($significance)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $relatedTherapy = self::checkTypes($relatedTherapy, $types);
+ $significance = self::checkTypes($significance, $types);
- $this->relatedTherapy = $relatedTherapy;
+ $this->significance = $significance;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- public function getSignificance()
+ public function getRelatedCondition()
{
- return $this->significance;
+ return $this->relatedCondition;
}
/**
- * @param string $significance
+ * @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 setSignificance($significance)
+ public function setRelatedCondition($relatedCondition)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalCondition",
"string",
];
- $significance = self::checkTypes($significance, $types);
+ $relatedCondition = self::checkTypes($relatedCondition, $types);
- $this->significance = $significance;
+ $this->relatedCondition = $relatedCondition;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
public function getRelatedAnatomy()
{
@@ -125,15 +125,15 @@ public function getRelatedAnatomy()
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $relatedAnatomy
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $relatedAnatomy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setRelatedAnatomy($relatedAnatomy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
"\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
"string",
];
@@ -143,28 +143,28 @@ public function setRelatedAnatomy($relatedAnatomy)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getRelatedCondition()
+ public function getRelatedTherapy()
{
- return $this->relatedCondition;
+ return $this->relatedTherapy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $relatedCondition
+ * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRelatedCondition($relatedCondition)
+ public function setRelatedTherapy($relatedTherapy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalCondition",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $relatedCondition = self::checkTypes($relatedCondition, $types);
+ $relatedTherapy = self::checkTypes($relatedTherapy, $types);
- $this->relatedCondition = $relatedCondition;
+ $this->relatedTherapy = $relatedTherapy;
}
/**
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",
"partOfTVSeries" => "partOfTVSeries",
];
@@ -36,6 +37,19 @@ public static function fieldList() {
*/
protected $countryOfOrigin;
+ /**
+ * An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing at the most general/abstract level, a work of film or television.
+ *
+ * For example, the motion picture known as "Ghostbusters" has a titleEIDR of "10.5240/7EC7-228A-510A-053E-CBB8-J". This title (or work) may have several variants, which EIDR calls "edits". See [[editEIDR]].
+ *
+ * Since schema.org types like [[Movie]], [[TVEpisode]], [[TVSeason]], and [[TVSeries]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description.
+ *
+ *
+ *
+ * @var string
+ */
+ protected $titleEIDR;
+
/**
* The TV series to which this episode or season belongs.
*
@@ -69,6 +83,30 @@ public function setCountryOfOrigin($countryOfOrigin)
$this->countryOfOrigin = $countryOfOrigin;
}
+ /**
+ * @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\TVSeries|string
*/
diff --git a/src/Models/SchemaOrg/TVSeries.php b/src/Models/SchemaOrg/TVSeries.php
index a8df402b..b6cc148d 100644
--- a/src/Models/SchemaOrg/TVSeries.php
+++ b/src/Models/SchemaOrg/TVSeries.php
@@ -17,41 +17,34 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "actors" => "actors",
+ "countryOfOrigin" => "countryOfOrigin",
+ "episodes" => "episodes",
+ "titleEIDR" => "titleEIDR",
"season" => "season",
"containsSeason" => "containsSeason",
- "countryOfOrigin" => "countryOfOrigin",
- "director" => "director",
- "actor" => "actor",
"trailer" => "trailer",
- "episodes" => "episodes",
- "numberOfEpisodes" => "numberOfEpisodes",
- "seasons" => "seasons",
"productionCompany" => "productionCompany",
- "actors" => "actors",
+ "episode" => "episode",
+ "seasons" => "seasons",
"numberOfSeasons" => "numberOfSeasons",
"musicBy" => "musicBy",
- "episode" => "episode",
"directors" => "directors",
+ "director" => "director",
+ "numberOfEpisodes" => "numberOfEpisodes",
+ "actor" => "actor",
];
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.
+ * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $containsSeason;
+ protected $actors;
/**
* The country of origin of something, including products as well as creative works such as movie and TV content.
@@ -66,68 +59,73 @@ public static function fieldList() {
protected $countryOfOrigin;
/**
- * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
+ * An episode of a TV/radio series or season.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Episode|string
*/
- protected $director;
+ protected $episodes;
/**
- * 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 [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 $actor;
+ protected $titleEIDR;
/**
- * 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 $season;
/**
- * An episode of a TV/radio series or season.
+ * A season that is part of the media series.
*
*
- * @var \OpenActive\Models\SchemaOrg\Episode|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- protected $episodes;
+ protected $containsSeason;
/**
- * The number of episodes in this season or series.
+ * The trailer of a movie or TV/radio series, season, episode, etc.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- protected $numberOfEpisodes;
+ protected $trailer;
/**
- * A season in a media series.
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $seasons;
+ protected $productionCompany;
/**
- * 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;
/**
- * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
+ * A season in a media series.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- protected $actors;
+ protected $seasons;
/**
* The number of seasons in this series.
@@ -146,144 +144,184 @@ public static function fieldList() {
protected $musicBy;
/**
- * An episode of a tv, radio or game media within a series or season.
+ * A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
*
*
- * @var \OpenActive\Models\SchemaOrg\Episode|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $episode;
+ protected $directors;
/**
- * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
+ * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $directors;
+ protected $director;
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason
+ * The number of episodes in this season or series.
+ *
+ *
+ * @var int|null
*/
- public function getSeason()
+ protected $numberOfEpisodes;
+
+ /**
+ * An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Person|string
+ */
+ protected $actor;
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Person|string
+ */
+ public function getActors()
{
- return $this->season;
+ return $this->actors;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason $season
+ * @param \OpenActive\Models\SchemaOrg\Person|string $actors
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSeason($season)
+ public function setActors($actors)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
];
- $season = self::checkTypes($season, $types);
+ $actors = self::checkTypes($actors, $types);
- $this->season = $season;
+ $this->actors = $actors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ * @return \OpenActive\Models\SchemaOrg\Country|string
*/
- public function getContainsSeason()
+ public function getCountryOfOrigin()
{
- return $this->containsSeason;
+ return $this->countryOfOrigin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $containsSeason
+ * @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 setContainsSeason($containsSeason)
+ public function setCountryOfOrigin($countryOfOrigin)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
+ "\OpenActive\Models\SchemaOrg\Country",
"string",
];
- $containsSeason = self::checkTypes($containsSeason, $types);
+ $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
- $this->containsSeason = $containsSeason;
+ $this->countryOfOrigin = $countryOfOrigin;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return \OpenActive\Models\SchemaOrg\Episode|string
*/
- public function getCountryOfOrigin()
+ public function getEpisodes()
{
- return $this->countryOfOrigin;
+ return $this->episodes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin
+ * @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 setCountryOfOrigin($countryOfOrigin)
+ public function setEpisodes($episodes)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
+ "\OpenActive\Models\SchemaOrg\Episode",
"string",
];
- $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
+ $episodes = self::checkTypes($episodes, $types);
- $this->countryOfOrigin = $countryOfOrigin;
+ $this->episodes = $episodes;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getDirector()
+ public function getTitleEIDR()
{
- return $this->director;
+ return $this->titleEIDR;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @param string $titleEIDR
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirector($director)
+ public function setTitleEIDR($titleEIDR)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $director = self::checkTypes($director, $types);
+ $titleEIDR = self::checkTypes($titleEIDR, $types);
- $this->director = $director;
+ $this->titleEIDR = $titleEIDR;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- public function getActor()
+ public function getSeason()
{
- return $this->actor;
+ return $this->season;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @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 setActor($actor)
+ public function setSeason($season)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
"string",
];
- $actor = self::checkTypes($actor, $types);
+ $season = self::checkTypes($season, $types);
- $this->actor = $actor;
+ $this->season = $season;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ */
+ public function getContainsSeason()
+ {
+ return $this->containsSeason;
+ }
+
+ /**
+ * @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 setContainsSeason($containsSeason)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
+ "string",
+ ];
+
+ $containsSeason = self::checkTypes($containsSeason, $types);
+
+ $this->containsSeason = $containsSeason;
}
/**
@@ -312,53 +350,53 @@ public function setTrailer($trailer)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Episode|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getEpisodes()
+ public function getProductionCompany()
{
- return $this->episodes;
+ return $this->productionCompany;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEpisodes($episodes)
+ public function setProductionCompany($productionCompany)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Episode",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $episodes = self::checkTypes($episodes, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->episodes = $episodes;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Episode|string
*/
- public function getNumberOfEpisodes()
+ public function getEpisode()
{
- return $this->numberOfEpisodes;
+ return $this->episode;
}
/**
- * @param int|null $numberOfEpisodes
+ * @param \OpenActive\Models\SchemaOrg\Episode|string $episode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfEpisodes($numberOfEpisodes)
+ public function setEpisode($episode)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Episode",
+ "string",
];
- $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types);
+ $episode = self::checkTypes($episode, $types);
- $this->numberOfEpisodes = $numberOfEpisodes;
+ $this->episode = $episode;
}
/**
@@ -387,154 +425,154 @@ public function setSeasons($seasons)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return int|null
*/
- public function getProductionCompany()
+ public function getNumberOfSeasons()
{
- return $this->productionCompany;
+ return $this->numberOfSeasons;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @param int|null $numberOfSeasons
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionCompany($productionCompany)
+ public function setNumberOfSeasons($numberOfSeasons)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "int",
+ "null",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $numberOfSeasons = self::checkTypes($numberOfSeasons, $types);
- $this->productionCompany = $productionCompany;
+ $this->numberOfSeasons = $numberOfSeasons;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- public function getActors()
+ public function getMusicBy()
{
- return $this->actors;
+ return $this->musicBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actors
+ * @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 setActors($actors)
+ public function setMusicBy($musicBy)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
"string",
];
- $actors = self::checkTypes($actors, $types);
+ $musicBy = self::checkTypes($musicBy, $types);
- $this->actors = $actors;
+ $this->musicBy = $musicBy;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getNumberOfSeasons()
+ public function getDirectors()
{
- return $this->numberOfSeasons;
+ return $this->directors;
}
/**
- * @param int|null $numberOfSeasons
+ * @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 setNumberOfSeasons($numberOfSeasons)
+ public function setDirectors($directors)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $numberOfSeasons = self::checkTypes($numberOfSeasons, $types);
+ $directors = self::checkTypes($directors, $types);
- $this->numberOfSeasons = $numberOfSeasons;
+ $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\Episode|string
+ * @return int|null
*/
- public function getEpisode()
+ public function getNumberOfEpisodes()
{
- return $this->episode;
+ return $this->numberOfEpisodes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Episode|string $episode
+ * @param int|null $numberOfEpisodes
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEpisode($episode)
+ public function setNumberOfEpisodes($numberOfEpisodes)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Episode",
- "string",
+ "int",
+ "null",
];
- $episode = self::checkTypes($episode, $types);
+ $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types);
- $this->episode = $episode;
+ $this->numberOfEpisodes = $numberOfEpisodes;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDirectors()
+ public function getActor()
{
- return $this->directors;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @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 setDirectors($directors)
+ public function setActor($actor)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->directors = $directors;
+ $this->actor = $actor;
}
}
diff --git a/src/Models/SchemaOrg/TaxiReservation.php b/src/Models/SchemaOrg/TaxiReservation.php
index 2da50e7c..88f723ec 100644
--- a/src/Models/SchemaOrg/TaxiReservation.php
+++ b/src/Models/SchemaOrg/TaxiReservation.php
@@ -17,24 +17,16 @@ public static function getType()
public static function fieldList() {
$fields = [
- "partySize" => "partySize",
"pickupTime" => "pickupTime",
"pickupLocation" => "pickupLocation",
+ "partySize" => "partySize",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Number of people the reservation should accommodate.
- *
- *
- * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
- */
- protected $partySize;
-
- /**
- * When a taxi will pickup a passenger or a rental car can be picked up.
+ * When a taxi will pick up a passenger or a rental car can be picked up.
*
*
* @var DateTime|null
@@ -50,31 +42,12 @@ public static function fieldList() {
protected $pickupLocation;
/**
- * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
- */
- public function getPartySize()
- {
- return $this->partySize;
- }
-
- /**
- * @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.
+ * Number of people the reservation should accommodate.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null
*/
- public function setPartySize($partySize)
- {
- $types = [
- "int",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
- "null",
- ];
-
- $partySize = self::checkTypes($partySize, $types);
-
- $this->partySize = $partySize;
- }
+ protected $partySize;
/**
* @return DateTime|null
@@ -126,4 +99,31 @@ public function setPickupLocation($pickupLocation)
$this->pickupLocation = $pickupLocation;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null
+ */
+ public function getPartySize()
+ {
+ return $this->partySize;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null $partySize
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setPartySize($partySize)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
+ "int",
+ "null",
+ ];
+
+ $partySize = self::checkTypes($partySize, $types);
+
+ $this->partySize = $partySize;
+ }
+
}
diff --git a/src/Models/SchemaOrg/Taxon.php b/src/Models/SchemaOrg/Taxon.php
index cc2eebde..365c0b02 100644
--- a/src/Models/SchemaOrg/Taxon.php
+++ b/src/Models/SchemaOrg/Taxon.php
@@ -17,30 +17,30 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "hasDefinedTerm" => "hasDefinedTerm",
"parentTaxon" => "parentTaxon",
- "taxonRank" => "taxonRank",
"childTaxon" => "childTaxon",
- "hasDefinedTerm" => "hasDefinedTerm",
+ "taxonRank" => "taxonRank",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Closest parent taxon of the taxon in question.
+ * A Defined Term contained in this term set.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Taxon
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $parentTaxon;
+ protected $hasDefinedTerm;
/**
- * The taxonomic rank of this taxon given preferably as a URI from a controlled vocabulary – (typically the ranks from TDWG TaxonRank ontology or equivalent Wikidata URIs).
+ * Closest parent taxon of the taxon in question.
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @var string|\OpenActive\Models\SchemaOrg\Taxon
*/
- protected $taxonRank;
+ protected $parentTaxon;
/**
* Closest child taxa of the taxon in question.
@@ -51,61 +51,61 @@ public static function fieldList() {
protected $childTaxon;
/**
- * A Defined Term contained in this term set.
+ * The taxonomic rank of this taxon given preferably as a URI from a controlled vocabulary – typically the ranks from TDWG TaxonRank ontology or equivalent Wikidata URIs.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- protected $hasDefinedTerm;
+ protected $taxonRank;
/**
- * @return string|\OpenActive\Models\SchemaOrg\Taxon
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getParentTaxon()
+ public function getHasDefinedTerm()
{
- return $this->parentTaxon;
+ return $this->hasDefinedTerm;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Taxon $parentTaxon
+ * @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 setParentTaxon($parentTaxon)
+ public function setHasDefinedTerm($hasDefinedTerm)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
- "\OpenActive\Models\SchemaOrg\Taxon",
];
- $parentTaxon = self::checkTypes($parentTaxon, $types);
+ $hasDefinedTerm = self::checkTypes($hasDefinedTerm, $types);
- $this->parentTaxon = $parentTaxon;
+ $this->hasDefinedTerm = $hasDefinedTerm;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @return string|\OpenActive\Models\SchemaOrg\Taxon
*/
- public function getTaxonRank()
+ public function getParentTaxon()
{
- return $this->taxonRank;
+ return $this->parentTaxon;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $taxonRank
+ * @param string|\OpenActive\Models\SchemaOrg\Taxon $parentTaxon
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTaxonRank($taxonRank)
+ public function setParentTaxon($parentTaxon)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
"string",
+ "\OpenActive\Models\SchemaOrg\Taxon",
];
- $taxonRank = self::checkTypes($taxonRank, $types);
+ $parentTaxon = self::checkTypes($parentTaxon, $types);
- $this->taxonRank = $taxonRank;
+ $this->parentTaxon = $parentTaxon;
}
/**
@@ -134,28 +134,28 @@ public function setChildTaxon($childTaxon)
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- public function getHasDefinedTerm()
+ public function getTaxonRank()
{
- return $this->hasDefinedTerm;
+ return $this->taxonRank;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $hasDefinedTerm
+ * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $taxonRank
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasDefinedTerm($hasDefinedTerm)
+ public function setTaxonRank($taxonRank)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
"string",
];
- $hasDefinedTerm = self::checkTypes($hasDefinedTerm, $types);
+ $taxonRank = self::checkTypes($taxonRank, $types);
- $this->hasDefinedTerm = $hasDefinedTerm;
+ $this->taxonRank = $taxonRank;
}
}
diff --git a/src/Models/SchemaOrg/TextObject.php b/src/Models/SchemaOrg/TextObject.php
new file mode 100644
index 00000000..f2e989ee
--- /dev/null
+++ b/src/Models/SchemaOrg/TextObject.php
@@ -0,0 +1,25 @@
+ "adverseOutcome",
- "drug" => "drug",
"doseSchedule" => "doseSchedule",
+ "drug" => "drug",
+ "adverseOutcome" => "adverseOutcome",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or is otherwise life-threatening or requires immediate medical attention), tag it as a seriouseAdverseOutcome instead.
+ * A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @var \OpenActive\Models\SchemaOrg\DoseSchedule|string
*/
- protected $adverseOutcome;
+ protected $doseSchedule;
/**
* Specifying a drug or medicine used in a medication procedure.
@@ -42,36 +42,36 @@ public static function fieldList() {
protected $drug;
/**
- * A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.
+ * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or otherwise life-threatening or requiring immediate medical attention), tag it as a seriousAdverseOutcome instead.
*
*
- * @var \OpenActive\Models\SchemaOrg\DoseSchedule|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- protected $doseSchedule;
+ protected $adverseOutcome;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @return \OpenActive\Models\SchemaOrg\DoseSchedule|string
*/
- public function getAdverseOutcome()
+ public function getDoseSchedule()
{
- return $this->adverseOutcome;
+ return $this->doseSchedule;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $adverseOutcome
+ * @param \OpenActive\Models\SchemaOrg\DoseSchedule|string $doseSchedule
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdverseOutcome($adverseOutcome)
+ public function setDoseSchedule($doseSchedule)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
+ "\OpenActive\Models\SchemaOrg\DoseSchedule",
"string",
];
- $adverseOutcome = self::checkTypes($adverseOutcome, $types);
+ $doseSchedule = self::checkTypes($doseSchedule, $types);
- $this->adverseOutcome = $adverseOutcome;
+ $this->doseSchedule = $doseSchedule;
}
/**
@@ -100,28 +100,28 @@ public function setDrug($drug)
}
/**
- * @return \OpenActive\Models\SchemaOrg\DoseSchedule|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- public function getDoseSchedule()
+ public function getAdverseOutcome()
{
- return $this->doseSchedule;
+ return $this->adverseOutcome;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DoseSchedule|string $doseSchedule
+ * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $adverseOutcome
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDoseSchedule($doseSchedule)
+ public function setAdverseOutcome($adverseOutcome)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DoseSchedule",
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
];
- $doseSchedule = self::checkTypes($doseSchedule, $types);
+ $adverseOutcome = self::checkTypes($adverseOutcome, $types);
- $this->doseSchedule = $doseSchedule;
+ $this->adverseOutcome = $adverseOutcome;
}
}
diff --git a/src/Models/SchemaOrg/Thing.php b/src/Models/SchemaOrg/Thing.php
index 938171a4..77a5feef 100644
--- a/src/Models/SchemaOrg/Thing.php
+++ b/src/Models/SchemaOrg/Thing.php
@@ -20,15 +20,15 @@ public static function fieldList() {
"identifier" => "identifier",
"name" => "name",
"description" => "description",
- "mainEntityOfPage" => "mainEntityOfPage",
"alternateName" => "alternateName",
"potentialAction" => "potentialAction",
+ "sameAs" => "sameAs",
+ "subjectOf" => "subjectOf",
+ "disambiguatingDescription" => "disambiguatingDescription",
"image" => "image",
"url" => "url",
- "subjectOf" => "subjectOf",
+ "mainEntityOfPage" => "mainEntityOfPage",
"additionalType" => "additionalType",
- "disambiguatingDescription" => "disambiguatingDescription",
- "sameAs" => "sameAs",
];
return array_merge(parent::fieldList(), $fields);
@@ -55,18 +55,10 @@ public static function fieldList() {
* A description of the item.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\TextObject
*/
protected $description;
- /**
- * Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
- */
- protected $mainEntityOfPage;
-
/**
* An alias for the item.
*
@@ -84,52 +76,61 @@ public static function fieldList() {
protected $potentialAction;
/**
- * An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].
+ * 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|\OpenActive\Models\SchemaOrg\ImageObject
+ * @var string
*/
- protected $image;
+ protected $sameAs;
/**
- * URL of the item.
+ * A CreativeWork or Event about this Thing.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\CreativeWork|string
+ */
+ protected $subjectOf;
+
+ /**
+ * A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.
*
*
* @var string
*/
- protected $url;
+ protected $disambiguatingDescription;
/**
- * 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.
+ * URL of the item.
*
*
* @var string
*/
- protected $additionalType;
+ protected $url;
/**
- * 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.
+ * Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $disambiguatingDescription;
+ protected $mainEntityOfPage;
/**
- * 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.
+ * 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 $sameAs;
+ protected $additionalType;
/**
* @return string|\OpenActive\Models\SchemaOrg\PropertyValue
@@ -181,7 +182,7 @@ public function setName($name)
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\TextObject
*/
public function getDescription()
{
@@ -189,7 +190,7 @@ public function getDescription()
}
/**
- * @param string $description
+ * @param string|\OpenActive\Models\SchemaOrg\TextObject $description
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
@@ -197,6 +198,7 @@ public function setDescription($description)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\TextObject",
];
$description = self::checkTypes($description, $types);
@@ -205,224 +207,224 @@ public function setDescription($description)
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string
*/
- public function getMainEntityOfPage()
+ public function getAlternateName()
{
- return $this->mainEntityOfPage;
+ return $this->alternateName;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $mainEntityOfPage
+ * @param string $alternateName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMainEntityOfPage($mainEntityOfPage)
+ public function setAlternateName($alternateName)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $mainEntityOfPage = self::checkTypes($mainEntityOfPage, $types);
+ $alternateName = self::checkTypes($alternateName, $types);
- $this->mainEntityOfPage = $mainEntityOfPage;
+ $this->alternateName = $alternateName;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Action|string
*/
- public function getAlternateName()
+ public function getPotentialAction()
{
- return $this->alternateName;
+ return $this->potentialAction;
}
/**
- * @param string $alternateName
+ * @param \OpenActive\Models\SchemaOrg\Action|string $potentialAction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlternateName($alternateName)
+ public function setPotentialAction($potentialAction)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Action",
"string",
];
- $alternateName = self::checkTypes($alternateName, $types);
+ $potentialAction = self::checkTypes($potentialAction, $types);
- $this->alternateName = $alternateName;
+ $this->potentialAction = $potentialAction;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Action|string
+ * @return string
*/
- public function getPotentialAction()
+ public function getSameAs()
{
- return $this->potentialAction;
+ return $this->sameAs;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Action|string $potentialAction
+ * @param string $sameAs
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPotentialAction($potentialAction)
+ public function setSameAs($sameAs)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Action",
"string",
];
- $potentialAction = self::checkTypes($potentialAction, $types);
+ $sameAs = self::checkTypes($sameAs, $types);
- $this->potentialAction = $potentialAction;
+ $this->sameAs = $sameAs;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\ImageObject
+ * @return \OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getImage()
+ public function getSubjectOf()
{
- return $this->image;
+ return $this->subjectOf;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\ImageObject $image
+ * @param \OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\CreativeWork|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\Event",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
- "\OpenActive\Models\SchemaOrg\ImageObject",
];
- $image = self::checkTypes($image, $types);
+ $subjectOf = self::checkTypes($subjectOf, $types);
- $this->image = $image;
+ $this->subjectOf = $subjectOf;
}
/**
* @return string
*/
- public function getUrl()
+ public function getDisambiguatingDescription()
{
- return $this->url;
+ return $this->disambiguatingDescription;
}
/**
- * @param string $url
+ * @param string $disambiguatingDescription
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUrl($url)
+ public function setDisambiguatingDescription($disambiguatingDescription)
{
$types = [
"string",
];
- $url = self::checkTypes($url, $types);
+ $disambiguatingDescription = self::checkTypes($disambiguatingDescription, $types);
- $this->url = $url;
+ $this->disambiguatingDescription = $disambiguatingDescription;
}
/**
- * @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 getUrl()
{
- return $this->additionalType;
+ return $this->url;
}
/**
- * @param string $additionalType
+ * @param string $url
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdditionalType($additionalType)
+ public function setUrl($url)
{
$types = [
"string",
];
- $additionalType = self::checkTypes($additionalType, $types);
+ $url = self::checkTypes($url, $types);
- $this->additionalType = $additionalType;
+ $this->url = $url;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getDisambiguatingDescription()
+ public function getMainEntityOfPage()
{
- return $this->disambiguatingDescription;
+ return $this->mainEntityOfPage;
}
/**
- * @param string $disambiguatingDescription
+ * @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 setDisambiguatingDescription($disambiguatingDescription)
+ public function setMainEntityOfPage($mainEntityOfPage)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $disambiguatingDescription = self::checkTypes($disambiguatingDescription, $types);
+ $mainEntityOfPage = self::checkTypes($mainEntityOfPage, $types);
- $this->disambiguatingDescription = $disambiguatingDescription;
+ $this->mainEntityOfPage = $mainEntityOfPage;
}
/**
* @return string
*/
- public function getSameAs()
+ public function getAdditionalType()
{
- return $this->sameAs;
+ return $this->additionalType;
}
/**
- * @param string $sameAs
+ * @param string $additionalType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSameAs($sameAs)
+ public function setAdditionalType($additionalType)
{
$types = [
"string",
];
- $sameAs = self::checkTypes($sameAs, $types);
+ $additionalType = self::checkTypes($additionalType, $types);
- $this->sameAs = $sameAs;
+ $this->additionalType = $additionalType;
}
}
diff --git a/src/Models/SchemaOrg/Ticket.php b/src/Models/SchemaOrg/Ticket.php
index a75f6f70..4a1be62b 100644
--- a/src/Models/SchemaOrg/Ticket.php
+++ b/src/Models/SchemaOrg/Ticket.php
@@ -17,13 +17,13 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "priceCurrency" => "priceCurrency",
"ticketToken" => "ticketToken",
- "ticketedSeat" => "ticketedSeat",
- "totalPrice" => "totalPrice",
+ "dateIssued" => "dateIssued",
"issuedBy" => "issuedBy",
+ "totalPrice" => "totalPrice",
+ "ticketedSeat" => "ticketedSeat",
"ticketNumber" => "ticketNumber",
- "dateIssued" => "dateIssued",
- "priceCurrency" => "priceCurrency",
"underName" => "underName",
];
@@ -31,28 +31,28 @@ public static function fieldList() {
}
/**
- * Reference to an asset (e.g., Barcode, QR code image or PDF) usable for entrance.
+ * 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 $ticketToken;
+ protected $priceCurrency;
/**
- * The seat associated with the ticket.
+ * Reference to an asset (e.g., Barcode, QR code image or PDF) usable for entrance.
*
*
- * @var \OpenActive\Models\SchemaOrg\Seat|string
+ * @var string
*/
- protected $ticketedSeat;
+ protected $ticketToken;
/**
- * The total price for the reservation or ticket, including applicable taxes, shipping, etc.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
+ * The date the ticket was issued.
*
*
- * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null
+ * @var Date|DateTime|null
*/
- protected $totalPrice;
+ protected $dateIssued;
/**
* The organization issuing the ticket or permit.
@@ -63,28 +63,28 @@ public static function fieldList() {
protected $issuedBy;
/**
- * The unique identifier for the ticket.
+ * The total price for the reservation or ticket, including applicable taxes, shipping, etc.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
*
*
- * @var string
+ * @var string|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|null
*/
- protected $ticketNumber;
+ protected $totalPrice;
/**
- * 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 unique identifier for the ticket.
*
*
* @var string
*/
- protected $priceCurrency;
+ protected $ticketNumber;
/**
* The person or organization the reservation or ticket is for.
@@ -97,77 +97,75 @@ public static function fieldList() {
/**
* @return string
*/
- public function getTicketToken()
+ public function getPriceCurrency()
{
- return $this->ticketToken;
+ return $this->priceCurrency;
}
/**
- * @param string $ticketToken
+ * @param string $priceCurrency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTicketToken($ticketToken)
+ public function setPriceCurrency($priceCurrency)
{
$types = [
"string",
];
- $ticketToken = self::checkTypes($ticketToken, $types);
+ $priceCurrency = self::checkTypes($priceCurrency, $types);
- $this->ticketToken = $ticketToken;
+ $this->priceCurrency = $priceCurrency;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Seat|string
+ * @return string
*/
- public function getTicketedSeat()
+ public function getTicketToken()
{
- return $this->ticketedSeat;
+ return $this->ticketToken;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Seat|string $ticketedSeat
+ * @param string $ticketToken
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTicketedSeat($ticketedSeat)
+ public function setTicketToken($ticketToken)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Seat",
"string",
];
- $ticketedSeat = self::checkTypes($ticketedSeat, $types);
+ $ticketToken = self::checkTypes($ticketToken, $types);
- $this->ticketedSeat = $ticketedSeat;
+ $this->ticketToken = $ticketToken;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null
+ * @return Date|DateTime|null
*/
- public function getTotalPrice()
+ public function getDateIssued()
{
- return $this->totalPrice;
+ return $this->dateIssued;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null $totalPrice
+ * @param Date|DateTime|null $dateIssued
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTotalPrice($totalPrice)
+ public function setDateIssued($dateIssued)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
- "string",
- "Number",
+ "Date",
+ "DateTime",
"null",
];
- $totalPrice = self::checkTypes($totalPrice, $types);
+ $dateIssued = self::checkTypes($dateIssued, $types);
- $this->totalPrice = $totalPrice;
+ $this->dateIssued = $dateIssued;
}
/**
@@ -196,77 +194,79 @@ public function setIssuedBy($issuedBy)
}
/**
- * @return string
+ * @return string|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|null
*/
- public function getTicketNumber()
+ public function getTotalPrice()
{
- return $this->ticketNumber;
+ return $this->totalPrice;
}
/**
- * @param string $ticketNumber
+ * @param string|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|null $totalPrice
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTicketNumber($ticketNumber)
+ public function setTotalPrice($totalPrice)
{
$types = [
"string",
+ "Number",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "null",
];
- $ticketNumber = self::checkTypes($ticketNumber, $types);
+ $totalPrice = self::checkTypes($totalPrice, $types);
- $this->ticketNumber = $ticketNumber;
+ $this->totalPrice = $totalPrice;
}
/**
- * @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
*/
- public function getPriceCurrency()
+ public function getTicketNumber()
{
- return $this->priceCurrency;
+ return $this->ticketNumber;
}
/**
- * @param string $priceCurrency
+ * @param string $ticketNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPriceCurrency($priceCurrency)
+ public function setTicketNumber($ticketNumber)
{
$types = [
"string",
];
- $priceCurrency = self::checkTypes($priceCurrency, $types);
+ $ticketNumber = self::checkTypes($ticketNumber, $types);
- $this->priceCurrency = $priceCurrency;
+ $this->ticketNumber = $ticketNumber;
}
/**
diff --git a/src/Models/SchemaOrg/TipAction.php b/src/Models/SchemaOrg/TipAction.php
index 1096c425..9923c66a 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\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
protected $recipient;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
public function getRecipient()
{
@@ -40,17 +40,17 @@ public function getRecipient()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setRecipient($recipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
diff --git a/src/Models/SchemaOrg/TouristAttraction.php b/src/Models/SchemaOrg/TouristAttraction.php
index dc3dd23b..c5baec1a 100644
--- a/src/Models/SchemaOrg/TouristAttraction.php
+++ b/src/Models/SchemaOrg/TouristAttraction.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "touristType" => "touristType",
"availableLanguage" => "availableLanguage",
+ "touristType" => "touristType",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Attraction suitable for type(s) of tourist. eg. Children, visitors from a particular country, etc.
+ * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Audience|string
+ * @var \OpenActive\Models\SchemaOrg\Language|string
*/
- protected $touristType;
+ protected $availableLanguage;
/**
- * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]]
+ * Attraction suitable for type(s) of tourist. E.g. children, visitors from a particular country, etc.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var string|\OpenActive\Models\SchemaOrg\Audience
*/
- protected $availableLanguage;
+ protected $touristType;
/**
- * @return \OpenActive\Models\SchemaOrg\Audience|string
+ * @return \OpenActive\Models\SchemaOrg\Language|string
*/
- public function getTouristType()
+ public function getAvailableLanguage()
{
- return $this->touristType;
+ return $this->availableLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $touristType
+ * @param \OpenActive\Models\SchemaOrg\Language|string $availableLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTouristType($touristType)
+ public function setAvailableLanguage($availableLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Language",
"string",
];
- $touristType = self::checkTypes($touristType, $types);
+ $availableLanguage = self::checkTypes($availableLanguage, $types);
- $this->touristType = $touristType;
+ $this->availableLanguage = $availableLanguage;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return string|\OpenActive\Models\SchemaOrg\Audience
*/
- public function getAvailableLanguage()
+ public function getTouristType()
{
- return $this->availableLanguage;
+ return $this->touristType;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage
+ * @param string|\OpenActive\Models\SchemaOrg\Audience $touristType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableLanguage($availableLanguage)
+ public function setTouristType($touristType)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Language",
+ "\OpenActive\Models\SchemaOrg\Audience",
];
- $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..e47f5107 100644
--- a/src/Models/SchemaOrg/TouristDestination.php
+++ b/src/Models/SchemaOrg/TouristDestination.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "touristType" => "touristType",
"includesAttraction" => "includesAttraction",
+ "touristType" => "touristType",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Attraction suitable for type(s) of tourist. eg. Children, visitors from a particular country, etc.
+ * Attraction located at destination.
*
*
- * @var \OpenActive\Models\SchemaOrg\Audience|string
+ * @var \OpenActive\Models\SchemaOrg\TouristAttraction|string
*/
- protected $touristType;
+ protected $includesAttraction;
/**
- * Attraction located at destination.
+ * Attraction suitable for type(s) of tourist. E.g. children, visitors from a particular country, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\TouristAttraction|string
+ * @var string|\OpenActive\Models\SchemaOrg\Audience
*/
- protected $includesAttraction;
+ protected $touristType;
/**
- * @return \OpenActive\Models\SchemaOrg\Audience|string
+ * @return \OpenActive\Models\SchemaOrg\TouristAttraction|string
*/
- public function getTouristType()
+ public function getIncludesAttraction()
{
- return $this->touristType;
+ return $this->includesAttraction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $touristType
+ * @param \OpenActive\Models\SchemaOrg\TouristAttraction|string $includesAttraction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTouristType($touristType)
+ public function setIncludesAttraction($includesAttraction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\TouristAttraction",
"string",
];
- $touristType = self::checkTypes($touristType, $types);
+ $includesAttraction = self::checkTypes($includesAttraction, $types);
- $this->touristType = $touristType;
+ $this->includesAttraction = $includesAttraction;
}
/**
- * @return \OpenActive\Models\SchemaOrg\TouristAttraction|string
+ * @return string|\OpenActive\Models\SchemaOrg\Audience
*/
- public function getIncludesAttraction()
+ public function getTouristType()
{
- return $this->includesAttraction;
+ return $this->touristType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\TouristAttraction|string $includesAttraction
+ * @param string|\OpenActive\Models\SchemaOrg\Audience $touristType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncludesAttraction($includesAttraction)
+ public function setTouristType($touristType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\TouristAttraction",
"string",
+ "\OpenActive\Models\SchemaOrg\Audience",
];
- $includesAttraction = self::checkTypes($includesAttraction, $types);
+ $touristType = self::checkTypes($touristType, $types);
- $this->includesAttraction = $includesAttraction;
+ $this->touristType = $touristType;
}
}
diff --git a/src/Models/SchemaOrg/TouristTrip.php b/src/Models/SchemaOrg/TouristTrip.php
index e3a4e1a8..c0ff27cd 100644
--- a/src/Models/SchemaOrg/TouristTrip.php
+++ b/src/Models/SchemaOrg/TouristTrip.php
@@ -24,15 +24,15 @@ public static function fieldList() {
}
/**
- * Attraction suitable for type(s) of tourist. eg. Children, visitors from a particular country, etc.
+ * Attraction suitable for type(s) of tourist. E.g. children, visitors from a particular country, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Audience|string
+ * @var string|\OpenActive\Models\SchemaOrg\Audience
*/
protected $touristType;
/**
- * @return \OpenActive\Models\SchemaOrg\Audience|string
+ * @return string|\OpenActive\Models\SchemaOrg\Audience
*/
public function getTouristType()
{
@@ -40,15 +40,15 @@ public function getTouristType()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $touristType
+ * @param string|\OpenActive\Models\SchemaOrg\Audience $touristType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setTouristType($touristType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Audience",
"string",
+ "\OpenActive\Models\SchemaOrg\Audience",
];
$touristType = self::checkTypes($touristType, $types);
diff --git a/src/Models/SchemaOrg/TradeAction.php b/src/Models/SchemaOrg/TradeAction.php
index abc0f7de..f753ffb9 100644
--- a/src/Models/SchemaOrg/TradeAction.php
+++ b/src/Models/SchemaOrg/TradeAction.php
@@ -26,7 +26,7 @@ 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".
+ * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".
*
*
* @var string
@@ -42,7 +42,7 @@ public static function fieldList() {
protected $priceSpecification;
/**
- * The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes.\n\nUsage guidelines:\n\n* Use the [[priceCurrency]] property (with standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR") instead of including [ambiguous symbols](http://en.wikipedia.org/wiki/Dollar_sign#Currencies_that_use_the_dollar_or_peso_sign) such as '$' in the value.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.\n* Note that both [RDFa](http://www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute) and Microdata syntax allow the use of a "content=" attribute for publishing simple machine-readable values alongside more human-friendly formatting.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.
+ * The 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.
*
*
*
diff --git a/src/Models/SchemaOrg/TrainTrip.php b/src/Models/SchemaOrg/TrainTrip.php
index 7160d977..89ad69c1 100644
--- a/src/Models/SchemaOrg/TrainTrip.php
+++ b/src/Models/SchemaOrg/TrainTrip.php
@@ -17,209 +17,209 @@ public static function getType()
public static function fieldList() {
$fields = [
- "trainName" => "trainName",
- "departureStation" => "departureStation",
- "departurePlatform" => "departurePlatform",
"trainNumber" => "trainNumber",
- "arrivalPlatform" => "arrivalPlatform",
"arrivalStation" => "arrivalStation",
+ "arrivalPlatform" => "arrivalPlatform",
+ "trainName" => "trainName",
+ "departurePlatform" => "departurePlatform",
+ "departureStation" => "departureStation",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The name of the train (e.g. The Orient Express).
+ * The unique identifier for the train.
*
*
* @var string
*/
- protected $trainName;
+ protected $trainNumber;
/**
- * The station from which the train departs.
+ * The station where the train trip ends.
*
*
* @var \OpenActive\Models\SchemaOrg\TrainStation|string
*/
- protected $departureStation;
+ protected $arrivalStation;
/**
- * The platform from which the train departs.
+ * The platform where the train arrives.
*
*
* @var string
*/
- protected $departurePlatform;
+ protected $arrivalPlatform;
/**
- * The unique identifier for the train.
+ * The name of the train (e.g. The Orient Express).
*
*
* @var string
*/
- protected $trainNumber;
+ protected $trainName;
/**
- * The platform where the train arrives.
+ * The platform from which the train departs.
*
*
* @var string
*/
- protected $arrivalPlatform;
+ protected $departurePlatform;
/**
- * The station where the train trip ends.
+ * The station from which the train departs.
*
*
* @var \OpenActive\Models\SchemaOrg\TrainStation|string
*/
- protected $arrivalStation;
+ protected $departureStation;
/**
* @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;
}
/**
* @return \OpenActive\Models\SchemaOrg\TrainStation|string
*/
- public function getDepartureStation()
+ public function getArrivalStation()
{
- return $this->departureStation;
+ return $this->arrivalStation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\TrainStation|string $departureStation
+ * @param \OpenActive\Models\SchemaOrg\TrainStation|string $arrivalStation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDepartureStation($departureStation)
+ public function setArrivalStation($arrivalStation)
{
$types = [
"\OpenActive\Models\SchemaOrg\TrainStation",
"string",
];
- $departureStation = self::checkTypes($departureStation, $types);
+ $arrivalStation = self::checkTypes($arrivalStation, $types);
- $this->departureStation = $departureStation;
+ $this->arrivalStation = $arrivalStation;
}
/**
* @return string
*/
- public function getDeparturePlatform()
+ public function getArrivalPlatform()
{
- return $this->departurePlatform;
+ return $this->arrivalPlatform;
}
/**
- * @param string $departurePlatform
+ * @param string $arrivalPlatform
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDeparturePlatform($departurePlatform)
+ public function setArrivalPlatform($arrivalPlatform)
{
$types = [
"string",
];
- $departurePlatform = self::checkTypes($departurePlatform, $types);
+ $arrivalPlatform = self::checkTypes($arrivalPlatform, $types);
- $this->departurePlatform = $departurePlatform;
+ $this->arrivalPlatform = $arrivalPlatform;
}
/**
* @return string
*/
- public function getTrainNumber()
+ public function getTrainName()
{
- return $this->trainNumber;
+ return $this->trainName;
}
/**
- * @param string $trainNumber
+ * @param string $trainName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTrainNumber($trainNumber)
+ public function setTrainName($trainName)
{
$types = [
"string",
];
- $trainNumber = self::checkTypes($trainNumber, $types);
+ $trainName = self::checkTypes($trainName, $types);
- $this->trainNumber = $trainNumber;
+ $this->trainName = $trainName;
}
/**
* @return string
*/
- public function getArrivalPlatform()
+ public function getDeparturePlatform()
{
- return $this->arrivalPlatform;
+ return $this->departurePlatform;
}
/**
- * @param string $arrivalPlatform
+ * @param string $departurePlatform
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArrivalPlatform($arrivalPlatform)
+ public function setDeparturePlatform($departurePlatform)
{
$types = [
"string",
];
- $arrivalPlatform = self::checkTypes($arrivalPlatform, $types);
+ $departurePlatform = self::checkTypes($departurePlatform, $types);
- $this->arrivalPlatform = $arrivalPlatform;
+ $this->departurePlatform = $departurePlatform;
}
/**
* @return \OpenActive\Models\SchemaOrg\TrainStation|string
*/
- public function getArrivalStation()
+ public function getDepartureStation()
{
- return $this->arrivalStation;
+ return $this->departureStation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\TrainStation|string $arrivalStation
+ * @param \OpenActive\Models\SchemaOrg\TrainStation|string $departureStation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArrivalStation($arrivalStation)
+ public function setDepartureStation($departureStation)
{
$types = [
"\OpenActive\Models\SchemaOrg\TrainStation",
"string",
];
- $arrivalStation = self::checkTypes($arrivalStation, $types);
+ $departureStation = self::checkTypes($departureStation, $types);
- $this->arrivalStation = $arrivalStation;
+ $this->departureStation = $departureStation;
}
}
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..e909920d 100644
--- a/src/Models/SchemaOrg/Trip.php
+++ b/src/Models/SchemaOrg/Trip.php
@@ -17,50 +17,43 @@ public static function getType()
public static function fieldList() {
$fields = [
- "arrivalTime" => "arrivalTime",
"offers" => "offers",
- "departureTime" => "departureTime",
- "provider" => "provider",
+ "partOfTrip" => "partOfTrip",
+ "arrivalTime" => "arrivalTime",
"subTrip" => "subTrip",
+ "tripOrigin" => "tripOrigin",
"itinerary" => "itinerary",
- "partOfTrip" => "partOfTrip",
+ "provider" => "provider",
+ "departureTime" => "departureTime",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * The expected arrival time.
- *
- *
- * @var DateTime|string|null
- */
- protected $arrivalTime;
-
/**
* An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
*
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
protected $offers;
/**
- * The expected departure time.
+ * Identifies that this [[Trip]] is a subTrip of another Trip. For example Day 1, Day 2, etc. of a multi-day trip.
*
*
- * @var DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\Trip|string
*/
- protected $departureTime;
+ protected $partOfTrip;
/**
- * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
+ * The expected arrival time.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var DateTime|string|null
*/
- protected $provider;
+ protected $arrivalTime;
/**
* Identifies a [[Trip]] that is a subTrip of this Trip. For example Day 1, Day 2, etc. of a multi-day trip.
@@ -70,6 +63,14 @@ public static function fieldList() {
*/
protected $subTrip;
+ /**
+ * The location of origin of the trip, prior to any destination(s).
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Place|string
+ */
+ protected $tripOrigin;
+
/**
* Destination(s) ( [[Place]] ) that make up a trip. For a trip where destination order is important use [[ItemList]] to specify that order (see examples).
*
@@ -79,79 +80,86 @@ public static function fieldList() {
protected $itinerary;
/**
- * Identifies that this [[Trip]] is a subTrip of another Trip. For example Day 1, Day 2, etc. of a multi-day trip.
+ * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
*
*
- * @var \OpenActive\Models\SchemaOrg\Trip|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $partOfTrip;
+ protected $provider;
/**
- * @return DateTime|string|null
+ * The expected departure time.
+ *
+ *
+ * @var DateTime|string|null
*/
- public function getArrivalTime()
+ protected $departureTime;
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
+ */
+ public function getOffers()
{
- return $this->arrivalTime;
+ return $this->offers;
}
/**
- * @param DateTime|string|null $arrivalTime
+ * @param \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string $offers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArrivalTime($arrivalTime)
+ public function setOffers($offers)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\Offer",
+ "string",
];
- $arrivalTime = self::checkTypes($arrivalTime, $types);
+ $offers = self::checkTypes($offers, $types);
- $this->arrivalTime = $arrivalTime;
+ $this->offers = $offers;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return \OpenActive\Models\SchemaOrg\Trip|string
*/
- public function getOffers()
+ public function getPartOfTrip()
{
- return $this->offers;
+ return $this->partOfTrip;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @param \OpenActive\Models\SchemaOrg\Trip|string $partOfTrip
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOffers($offers)
+ public function setPartOfTrip($partOfTrip)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\Trip",
"string",
];
- $offers = self::checkTypes($offers, $types);
+ $partOfTrip = self::checkTypes($partOfTrip, $types);
- $this->offers = $offers;
+ $this->partOfTrip = $partOfTrip;
}
/**
* @return DateTime|string|null
*/
- public function getDepartureTime()
+ public function getArrivalTime()
{
- return $this->departureTime;
+ return $this->arrivalTime;
}
/**
- * @param DateTime|string|null $departureTime
+ * @param DateTime|string|null $arrivalTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDepartureTime($departureTime)
+ public function setArrivalTime($arrivalTime)
{
$types = [
"DateTime",
@@ -159,60 +167,59 @@ public function setDepartureTime($departureTime)
"null",
];
- $departureTime = self::checkTypes($departureTime, $types);
+ $arrivalTime = self::checkTypes($arrivalTime, $types);
- $this->departureTime = $departureTime;
+ $this->arrivalTime = $arrivalTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Trip|string
*/
- public function getProvider()
+ public function getSubTrip()
{
- return $this->provider;
+ return $this->subTrip;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @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 setProvider($provider)
+ public function setSubTrip($subTrip)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Trip",
"string",
];
- $provider = self::checkTypes($provider, $types);
+ $subTrip = self::checkTypes($subTrip, $types);
- $this->provider = $provider;
+ $this->subTrip = $subTrip;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Trip|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getSubTrip()
+ public function getTripOrigin()
{
- return $this->subTrip;
+ return $this->tripOrigin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Trip|string $subTrip
+ * @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 setSubTrip($subTrip)
+ public function setTripOrigin($tripOrigin)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Trip",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $subTrip = self::checkTypes($subTrip, $types);
+ $tripOrigin = self::checkTypes($tripOrigin, $types);
- $this->subTrip = $subTrip;
+ $this->tripOrigin = $tripOrigin;
}
/**
@@ -242,28 +249,55 @@ public function setItinerary($itinerary)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Trip|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getPartOfTrip()
+ public function getProvider()
{
- return $this->partOfTrip;
+ return $this->provider;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Trip|string $partOfTrip
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $provider
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPartOfTrip($partOfTrip)
+ public function setProvider($provider)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Trip",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $partOfTrip = self::checkTypes($partOfTrip, $types);
+ $provider = self::checkTypes($provider, $types);
- $this->partOfTrip = $partOfTrip;
+ $this->provider = $provider;
+ }
+
+ /**
+ * @return DateTime|string|null
+ */
+ public function getDepartureTime()
+ {
+ return $this->departureTime;
+ }
+
+ /**
+ * @param DateTime|string|null $departureTime
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setDepartureTime($departureTime)
+ {
+ $types = [
+ "DateTime",
+ "Time",
+ "null",
+ ];
+
+ $departureTime = self::checkTypes($departureTime, $types);
+
+ $this->departureTime = $departureTime;
}
}
diff --git a/src/Models/SchemaOrg/TypeAndQuantityNode.php b/src/Models/SchemaOrg/TypeAndQuantityNode.php
index ffab830a..d175febc 100644
--- a/src/Models/SchemaOrg/TypeAndQuantityNode.php
+++ b/src/Models/SchemaOrg/TypeAndQuantityNode.php
@@ -20,8 +20,8 @@ public static function fieldList() {
"unitText" => "unitText",
"businessFunction" => "businessFunction",
"typeOfGood" => "typeOfGood",
- "amountOfThisGood" => "amountOfThisGood",
"unitCode" => "unitCode",
+ "amountOfThisGood" => "amountOfThisGood",
];
return array_merge(parent::fieldList(), $fields);
@@ -48,25 +48,25 @@ public static function fieldList() {
* The product that this structured value is referring to.
*
*
- * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string
+ * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
*/
protected $typeOfGood;
/**
- * The quantity of the goods included in the offer.
+ * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon.
*
*
- * @var Number|null
+ * @var string
*/
- protected $amountOfThisGood;
+ protected $unitCode;
/**
- * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon.
+ * The quantity of the goods included in the offer.
*
*
- * @var string
+ * @var Number|null
*/
- protected $unitCode;
+ protected $amountOfThisGood;
/**
* @return string
@@ -118,7 +118,7 @@ public function setBusinessFunction($businessFunction)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string
+ * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string
*/
public function getTypeOfGood()
{
@@ -126,15 +126,15 @@ public function getTypeOfGood()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $typeOfGood
+ * @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 setTypeOfGood($typeOfGood)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Product",
"\OpenActive\Models\SchemaOrg\Service",
+ "\OpenActive\Models\SchemaOrg\Product",
"string",
];
@@ -144,52 +144,52 @@ public function setTypeOfGood($typeOfGood)
}
/**
- * @return Number|null
+ * @return string
*/
- public function getAmountOfThisGood()
+ public function getUnitCode()
{
- return $this->amountOfThisGood;
+ return $this->unitCode;
}
/**
- * @param Number|null $amountOfThisGood
+ * @param string $unitCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAmountOfThisGood($amountOfThisGood)
+ public function setUnitCode($unitCode)
{
$types = [
- "Number",
- "null",
+ "string",
];
- $amountOfThisGood = self::checkTypes($amountOfThisGood, $types);
+ $unitCode = self::checkTypes($unitCode, $types);
- $this->amountOfThisGood = $amountOfThisGood;
+ $this->unitCode = $unitCode;
}
/**
- * @return string
+ * @return Number|null
*/
- public function getUnitCode()
+ public function getAmountOfThisGood()
{
- return $this->unitCode;
+ return $this->amountOfThisGood;
}
/**
- * @param string $unitCode
+ * @param Number|null $amountOfThisGood
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUnitCode($unitCode)
+ public function setAmountOfThisGood($amountOfThisGood)
{
$types = [
- "string",
+ "Number",
+ "null",
];
- $unitCode = self::checkTypes($unitCode, $types);
+ $amountOfThisGood = self::checkTypes($amountOfThisGood, $types);
- $this->unitCode = $unitCode;
+ $this->amountOfThisGood = $amountOfThisGood;
}
}
diff --git a/src/Models/SchemaOrg/UnitPriceSpecification.php b/src/Models/SchemaOrg/UnitPriceSpecification.php
index dec83bd4..ad7fae51 100644
--- a/src/Models/SchemaOrg/UnitPriceSpecification.php
+++ b/src/Models/SchemaOrg/UnitPriceSpecification.php
@@ -17,19 +17,27 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "billingIncrement" => "billingIncrement",
"priceType" => "priceType",
"unitText" => "unitText",
- "billingIncrement" => "billingIncrement",
+ "priceComponentType" => "priceComponentType",
+ "billingStart" => "billingStart",
"unitCode" => "unitCode",
"billingDuration" => "billingDuration",
"referenceQuantity" => "referenceQuantity",
- "priceComponentType" => "priceComponentType",
- "billingStart" => "billingStart",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * 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 Number|null
+ */
+ protected $billingIncrement;
+
/**
* 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.
*
@@ -48,12 +56,20 @@ public static function fieldList() {
protected $unitText;
/**
- * 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.
+ * Identifies a price component (for example, a line item on an invoice), part of the total price for an offer.
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null
+ */
+ 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.
*
*
* @var Number|null
*/
- protected $billingIncrement;
+ protected $billingStart;
/**
* The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon.
@@ -67,7 +83,7 @@ public static function fieldList() {
* 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 DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ * @var DateInterval|Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
protected $billingDuration;
@@ -80,20 +96,29 @@ public static function fieldList() {
protected $referenceQuantity;
/**
- * Identifies a price component (for example, a line item on an invoice), part of the total price for an offer.
- *
- *
- * @var \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null
+ * @return Number|null
*/
- protected $priceComponentType;
+ public function getBillingIncrement()
+ {
+ return $this->billingIncrement;
+ }
/**
- * Specifies after how much time this price (or price component) becomes valid and billing starts. Can be used, for example, to model a price increase after the first year of a subscription. The unit of measurement is specified by the unitCode property.
- *
- *
- * @var Number|null
+ * @param Number|null $billingIncrement
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- protected $billingStart;
+ public function setBillingIncrement($billingIncrement)
+ {
+ $types = [
+ "Number",
+ "null",
+ ];
+
+ $billingIncrement = self::checkTypes($billingIncrement, $types);
+
+ $this->billingIncrement = $billingIncrement;
+ }
/**
* @return \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null
@@ -145,29 +170,54 @@ public function setUnitText($unitText)
$this->unitText = $unitText;
}
+ /**
+ * @return \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null
+ */
+ public function getPriceComponentType()
+ {
+ return $this->priceComponentType;
+ }
+
+ /**
+ * @param \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null $priceComponentType
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setPriceComponentType($priceComponentType)
+ {
+ $types = [
+ "\OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration",
+ "null",
+ ];
+
+ $priceComponentType = self::checkTypes($priceComponentType, $types);
+
+ $this->priceComponentType = $priceComponentType;
+ }
+
/**
* @return Number|null
*/
- public function getBillingIncrement()
+ public function getBillingStart()
{
- return $this->billingIncrement;
+ return $this->billingStart;
}
/**
- * @param Number|null $billingIncrement
+ * @param Number|null $billingStart
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBillingIncrement($billingIncrement)
+ public function setBillingStart($billingStart)
{
$types = [
"Number",
"null",
];
- $billingIncrement = self::checkTypes($billingIncrement, $types);
+ $billingStart = self::checkTypes($billingStart, $types);
- $this->billingIncrement = $billingIncrement;
+ $this->billingStart = $billingStart;
}
/**
@@ -195,7 +245,7 @@ public function setUnitCode($unitCode)
}
/**
- * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ * @return DateInterval|Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
public function getBillingDuration()
{
@@ -203,7 +253,7 @@ public function getBillingDuration()
}
/**
- * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $billingDuration
+ * @param DateInterval|Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $billingDuration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
@@ -211,9 +261,9 @@ public function setBillingDuration($billingDuration)
{
$types = [
"DateInterval",
+ "Number",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "Number",
"null",
];
@@ -247,54 +297,4 @@ public function setReferenceQuantity($referenceQuantity)
$this->referenceQuantity = $referenceQuantity;
}
- /**
- * @return \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null
- */
- public function getPriceComponentType()
- {
- return $this->priceComponentType;
- }
-
- /**
- * @param \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null $priceComponentType
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setPriceComponentType($priceComponentType)
- {
- $types = [
- "\OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration",
- "null",
- ];
-
- $priceComponentType = self::checkTypes($priceComponentType, $types);
-
- $this->priceComponentType = $priceComponentType;
- }
-
- /**
- * @return Number|null
- */
- public function getBillingStart()
- {
- return $this->billingStart;
- }
-
- /**
- * @param Number|null $billingStart
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setBillingStart($billingStart)
- {
- $types = [
- "Number",
- "null",
- ];
-
- $billingStart = self::checkTypes($billingStart, $types);
-
- $this->billingStart = $billingStart;
- }
-
}
diff --git a/src/Models/SchemaOrg/UserComments.php b/src/Models/SchemaOrg/UserComments.php
index 16f3cdf5..25867c51 100644
--- a/src/Models/SchemaOrg/UserComments.php
+++ b/src/Models/SchemaOrg/UserComments.php
@@ -17,16 +17,24 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "commentText" => "commentText",
"replyToUrl" => "replyToUrl",
"discusses" => "discusses",
- "commentTime" => "commentTime",
- "commentText" => "commentText",
"creator" => "creator",
+ "commentTime" => "commentTime",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The text of the UserComment.
+ *
+ *
+ * @var string
+ */
+ protected $commentText;
+
/**
* The URL at which a reply may be posted to the specified UserComment.
*
@@ -43,6 +51,14 @@ public static function fieldList() {
*/
protected $discusses;
+ /**
+ * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ */
+ protected $creator;
+
/**
* The time at which the UserComment was made.
*
@@ -52,20 +68,28 @@ public static function fieldList() {
protected $commentTime;
/**
- * The text of the UserComment.
- *
- *
- * @var string
+ * @return string
*/
- protected $commentText;
+ public function getCommentText()
+ {
+ return $this->commentText;
+ }
/**
- * 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
+ * @param string $commentText
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- protected $creator;
+ public function setCommentText($commentText)
+ {
+ $types = [
+ "string",
+ ];
+
+ $commentText = self::checkTypes($commentText, $types);
+
+ $this->commentText = $commentText;
+ }
/**
* @return string
@@ -117,79 +141,55 @@ public function setDiscusses($discusses)
}
/**
- * @return Date|DateTime|null
- */
- public function getCommentTime()
- {
- return $this->commentTime;
- }
-
- /**
- * @param Date|DateTime|null $commentTime
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setCommentTime($commentTime)
- {
- $types = [
- "Date",
- "DateTime",
- "null",
- ];
-
- $commentTime = self::checkTypes($commentTime, $types);
-
- $this->commentTime = $commentTime;
- }
-
- /**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getCommentText()
+ public function getCreator()
{
- return $this->commentText;
+ return $this->creator;
}
/**
- * @param string $commentText
+ * @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 setCommentText($commentText)
+ public function setCreator($creator)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $commentText = self::checkTypes($commentText, $types);
+ $creator = self::checkTypes($creator, $types);
- $this->commentText = $commentText;
+ $this->creator = $creator;
}
/**
- * @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",
"numberOfPreviousOwners" => "numberOfPreviousOwners",
- "steeringPosition" => "steeringPosition",
- "wheelbase" => "wheelbase",
- "vehicleInteriorType" => "vehicleInteriorType",
- "numberOfAirbags" => "numberOfAirbags",
- "fuelType" => "fuelType",
- "cargoVolume" => "cargoVolume",
- "vehicleTransmission" => "vehicleTransmission",
- "payload" => "payload",
+ "vehicleConfiguration" => "vehicleConfiguration",
+ "purchaseDate" => "purchaseDate",
"driveWheelConfiguration" => "driveWheelConfiguration",
+ "vehicleSeatingCapacity" => "vehicleSeatingCapacity",
+ "dateVehicleFirstRegistered" => "dateVehicleFirstRegistered",
"knownVehicleDamages" => "knownVehicleDamages",
+ "vehicleTransmission" => "vehicleTransmission",
+ "wheelbase" => "wheelbase",
+ "mileageFromOdometer" => "mileageFromOdometer",
+ "vehicleSpecialUsage" => "vehicleSpecialUsage",
+ "numberOfDoors" => "numberOfDoors",
+ "meetsEmissionStandard" => "meetsEmissionStandard",
+ "cargoVolume" => "cargoVolume",
+ "vehicleInteriorType" => "vehicleInteriorType",
+ "weightTotal" => "weightTotal",
"fuelConsumption" => "fuelConsumption",
+ "accelerationTime" => "accelerationTime",
+ "productionDate" => "productionDate",
"vehicleInteriorColor" => "vehicleInteriorColor",
- "numberOfAxles" => "numberOfAxles",
- "modelDate" => "modelDate",
- "numberOfDoors" => "numberOfDoors",
- "vehicleSeatingCapacity" => "vehicleSeatingCapacity",
- "callSign" => "callSign",
+ "bodyType" => "bodyType",
"tongueWeight" => "tongueWeight",
- "fuelEfficiency" => "fuelEfficiency",
- "vehicleModelDate" => "vehicleModelDate",
- "vehicleConfiguration" => "vehicleConfiguration",
- "mileageFromOdometer" => "mileageFromOdometer",
"seatingCapacity" => "seatingCapacity",
- "bodyType" => "bodyType",
- "dateVehicleFirstRegistered" => "dateVehicleFirstRegistered",
+ "speed" => "speed",
+ "numberOfAxles" => "numberOfAxles",
+ "fuelType" => "fuelType",
+ "trailerWeight" => "trailerWeight",
+ "vehicleModelDate" => "vehicleModelDate",
+ "fuelCapacity" => "fuelCapacity",
+ "modelDate" => "modelDate",
+ "vehicleEngine" => "vehicleEngine",
+ "payload" => "payload",
"vehicleIdentificationNumber" => "vehicleIdentificationNumber",
- "meetsEmissionStandard" => "meetsEmissionStandard",
- "vehicleSpecialUsage" => "vehicleSpecialUsage",
+ "emissionsCO2" => "emissionsCO2",
+ "steeringPosition" => "steeringPosition",
+ "numberOfForwardGears" => "numberOfForwardGears",
+ "fuelEfficiency" => "fuelEfficiency",
+ "callSign" => "callSign",
+ "numberOfAirbags" => "numberOfAirbags",
];
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.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
- */
- protected $accelerationTime;
-
- /**
- * 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 $speed;
-
- /**
- * 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.
+ * 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\EngineSpecification|string
+ * @var string
*/
- protected $vehicleEngine;
+ protected $vehicleConfiguration;
/**
- * 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 date the item, e.g. vehicle, was purchased by the current owner.
*
*
- * @var Number|null
+ * @var Date|null
*/
- protected $emissionsCO2;
+ protected $purchaseDate;
/**
- * The date the item e.g. vehicle was purchased by the current owner.
+ * The drive wheel configuration, i.e. which roadwheels will receive torque from the vehicle's engine via the drivetrain.
*
*
- * @var Date|null
+ * @var \OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue|string
*/
- protected $purchaseDate;
+ protected $driveWheelConfiguration;
/**
- * The total number of forward gears available for the transmission system of the vehicle.\n\nTypical unit code(s): C62
+ * 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|Number|null
*/
- protected $numberOfForwardGears;
+ protected $vehicleSeatingCapacity;
/**
- * 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 date of the first registration of the vehicle with the respective public authorities.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var Date|null
*/
- protected $weightTotal;
+ protected $dateVehicleFirstRegistered;
/**
- * The date of production of the item, e.g. vehicle.
+ * A textual description of known damages, both repaired and unrepaired.
*
*
- * @var Date|null
+ * @var string
*/
- protected $productionDate;
+ protected $knownVehicleDamages;
/**
- * The number of owners of the vehicle, including the current one.\n\nTypical unit code(s): C62
+ * 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 Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- protected $numberOfPreviousOwners;
+ protected $vehicleTransmission;
/**
- * The position of the steering wheel or similar device (mostly for cars).
+ * 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\SteeringPositionValue|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $steeringPosition;
+ protected $wheelbase;
/**
- * The distance between the centers of the front and rear wheels.\n\nTypical unit code(s): CMT for centimeters, MTR for meters, INH for inches, FOT for foot/feet
+ * The total distance travelled by the particular vehicle since its initial production, as read from its odometer.\n\nTypical unit code(s): KMT for kilometers, SMI for statute miles
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $wheelbase;
+ protected $mileageFromOdometer;
/**
- * The type or material of the interior of the vehicle (e.g. synthetic fabric, leather, wood, etc.). While most interior types are characterized by the material used, an interior type can also be based on vehicle usage or target audience.
+ * Indicates whether the vehicle has been used for special purposes, like commercial rental, driving school, or as a taxi. The legislation in many countries requires this information to be revealed when offering a car for sale.
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\CarUsageType|string|null
*/
- protected $vehicleInteriorType;
+ protected $vehicleSpecialUsage;
/**
- * The number or type of airbags in the vehicle.
+ * The number of doors.\n\nTypical unit code(s): C62
*
*
- * @var string|Number|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- protected $numberOfAirbags;
+ protected $numberOfDoors;
/**
- * 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.
+ * Indicates that the vehicle meets the respective emission standard.
*
*
* @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- protected $fuelType;
+ protected $meetsEmissionStandard;
/**
* 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.
@@ -198,44 +174,44 @@ public static function fieldList() {
protected $cargoVolume;
/**
- * 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 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 string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ * @var string
*/
- protected $vehicleTransmission;
+ protected $vehicleInteriorType;
/**
- * The permitted weight of passengers and cargo, EXCLUDING the weight of the empty vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: Many databases specify the permitted TOTAL weight instead, which is the sum of [[weight]] and [[payload]]\n* Note 2: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 3: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 4: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges.
+ * The 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
*/
- protected $payload;
+ protected $weightTotal;
/**
- * The drive wheel configuration, i.e. which roadwheels will receive torque from the vehicle's engine via the drivetrain.
+ * 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\Models\SchemaOrg\DriveWheelConfigurationValue
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $driveWheelConfiguration;
+ protected $fuelConsumption;
/**
- * A textual description of known damages, both repaired and unrepaired.
+ * 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 $knownVehicleDamages;
+ protected $accelerationTime;
/**
- * 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.
@@ -246,60 +222,60 @@ public static function fieldList() {
protected $vehicleInteriorColor;
/**
- * The number of axles.\n\nTypical unit code(s): C62
+ * Indicates the design and body style of the vehicle (e.g. station wagon, hatchback, etc.).
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- protected $numberOfAxles;
+ protected $bodyType;
/**
- * The release date of a vehicle model (often used to differentiate versions of the same make and model).
+ * 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 Date|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $modelDate;
+ protected $tongueWeight;
/**
- * The number of doors.\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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- protected $numberOfDoors;
+ protected $seatingCapacity;
/**
- * 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 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|Number|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $vehicleSeatingCapacity;
+ protected $speed;
/**
- * 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 number of axles.\n\nTypical unit code(s): C62
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- protected $callSign;
+ protected $numberOfAxles;
/**
- * The permitted vertical load (TWR) of a trailer attached to the vehicle. Also referred to as Tongue Load Rating (TLR) or Vertical Load Rating (VLR)\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges.
+ * The type of fuel suitable for the engine or engines of the vehicle. If the vehicle has only one engine, this property can be attached directly to the vehicle.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
*/
- protected $tongueWeight;
+ protected $fuelType;
/**
- * 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 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $fuelEfficiency;
+ protected $trailerWeight;
/**
* The release date of a vehicle model (often used to differentiate versions of the same make and model).
@@ -310,44 +286,36 @@ public static function fieldList() {
protected $vehicleModelDate;
/**
- * A short text indicating the configuration of the vehicle, e.g. '5dr hatchback ST 2.5 MT 225 hp' or 'limited edition'.
- *
- *
- * @var string
- */
- protected $vehicleConfiguration;
-
- /**
- * 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 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 $mileageFromOdometer;
+ protected $fuelCapacity;
/**
- * The number of persons that can be seated (e.g. in a vehicle), both in terms of the physical space available, and in terms of limitations set by law.\n\nTypical unit code(s): C62 for persons
+ * The release date of a vehicle model (often used to differentiate versions of the same make and model).
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ * @var Date|null
*/
- protected $seatingCapacity;
+ protected $modelDate;
/**
- * Indicates the design and body style of the vehicle (e.g. station wagon, hatchback, etc.).
+ * Information about the engine or engines of the vehicle.
*
*
- * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\EngineSpecification|string
*/
- protected $bodyType;
+ protected $vehicleEngine;
/**
- * The date of the first registration of the vehicle with the respective public authorities.
+ * 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 Date|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $dateVehicleFirstRegistered;
+ protected $payload;
/**
* The Vehicle Identification Number (VIN) is a unique serial number used by the automotive industry to identify individual motor vehicles.
@@ -358,169 +326,102 @@ public static function fieldList() {
protected $vehicleIdentificationNumber;
/**
- * Indicates that the vehicle meets the respective emission standard.
+ * 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 $meetsEmissionStandard;
+ protected $emissionsCO2;
/**
- * Indicates whether the vehicle has been used for special purposes, like commercial rental, driving school, or as a taxi. The legislation in many countries requires this information to be revealed when offering a car for sale.
+ * The position of the steering wheel or similar device (mostly for cars).
*
*
- * @var \OpenActive\Enums\SchemaOrg\CarUsageType|string|null
- */
- 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.
+ * @var \OpenActive\Models\SchemaOrg\SteeringPositionValue|string
*/
- public function setFuelCapacity($fuelCapacity)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
- ];
-
- $fuelCapacity = self::checkTypes($fuelCapacity, $types);
-
- $this->fuelCapacity = $fuelCapacity;
- }
+ protected $steeringPosition;
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * The total number of forward gears available for the transmission system of the vehicle.\n\nTypical unit code(s): C62
+ *
+ *
+ * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getAccelerationTime()
- {
- return $this->accelerationTime;
- }
+ protected $numberOfForwardGears;
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $accelerationTime
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The distance traveled per unit of fuel used; most commonly miles per gallon (mpg) or kilometers per liter (km/L).\n\n* Note 1: There are unfortunately no standard unit codes for miles per gallon or kilometers per liter. Use [[unitText]] to indicate the unit of measurement, e.g. mpg or km/L.\n* Note 2: There are two ways of indicating the fuel consumption, [[fuelConsumption]] (e.g. 8 liters per 100 km) and [[fuelEfficiency]] (e.g. 30 miles per gallon). They are reciprocal.\n* Note 3: Often, the absolute value is useful only when related to driving speed ("at 80 km/h") or usage pattern ("city traffic"). You can use [[valueReference]] to link the value for the fuel economy to another value.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function setAccelerationTime($accelerationTime)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
- ];
-
- $accelerationTime = self::checkTypes($accelerationTime, $types);
-
- $this->accelerationTime = $accelerationTime;
- }
+ protected $fuelEfficiency;
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * 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
*/
- public function getSpeed()
- {
- return $this->speed;
- }
+ protected $callSign;
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $speed
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The number or type of airbags in the vehicle.
+ *
+ *
+ * @var string|Number|null
*/
- public function setSpeed($speed)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
- ];
-
- $speed = self::checkTypes($speed, $types);
-
- $this->speed = $speed;
- }
+ protected $numberOfAirbags;
/**
- * @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
*/
- public function getVehicleEngine()
+ public function getVehicleConfiguration()
{
- return $this->vehicleEngine;
+ return $this->vehicleConfiguration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EngineSpecification|string $vehicleEngine
+ * @param string $vehicleConfiguration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVehicleEngine($vehicleEngine)
+ public function setVehicleConfiguration($vehicleConfiguration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EngineSpecification",
"string",
];
- $vehicleEngine = self::checkTypes($vehicleEngine, $types);
-
- $this->vehicleEngine = $vehicleEngine;
- }
-
- /**
- * @return Number|null
- */
- public function getEmissionsCO2()
- {
- return $this->emissionsCO2;
- }
-
- /**
- * @param Number|null $emissionsCO2
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setEmissionsCO2($emissionsCO2)
- {
- $types = [
- "Number",
- "null",
- ];
-
- $emissionsCO2 = self::checkTypes($emissionsCO2, $types);
+ $vehicleConfiguration = self::checkTypes($vehicleConfiguration, $types);
- $this->emissionsCO2 = $emissionsCO2;
+ $this->vehicleConfiguration = $vehicleConfiguration;
}
/**
@@ -549,132 +450,130 @@ public function setPurchaseDate($purchaseDate)
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ * @return \OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue|string
*/
- public function getNumberOfForwardGears()
+ public function getDriveWheelConfiguration()
{
- return $this->numberOfForwardGears;
+ return $this->driveWheelConfiguration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfForwardGears
+ * @param \OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue|string $driveWheelConfiguration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfForwardGears($numberOfForwardGears)
+ public function setDriveWheelConfiguration($driveWheelConfiguration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue",
"string",
- "Number",
- "null",
];
- $numberOfForwardGears = self::checkTypes($numberOfForwardGears, $types);
+ $driveWheelConfiguration = self::checkTypes($driveWheelConfiguration, $types);
- $this->numberOfForwardGears = $numberOfForwardGears;
+ $this->driveWheelConfiguration = $driveWheelConfiguration;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function getWeightTotal()
+ public function getVehicleSeatingCapacity()
{
- return $this->weightTotal;
+ return $this->vehicleSeatingCapacity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weightTotal
+ * @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 setWeightTotal($weightTotal)
+ public function setVehicleSeatingCapacity($vehicleSeatingCapacity)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "Number",
+ "null",
];
- $weightTotal = self::checkTypes($weightTotal, $types);
+ $vehicleSeatingCapacity = self::checkTypes($vehicleSeatingCapacity, $types);
- $this->weightTotal = $weightTotal;
+ $this->vehicleSeatingCapacity = $vehicleSeatingCapacity;
}
/**
* @return Date|null
*/
- public function getProductionDate()
+ public function getDateVehicleFirstRegistered()
{
- return $this->productionDate;
+ return $this->dateVehicleFirstRegistered;
}
/**
- * @param Date|null $productionDate
+ * @param Date|null $dateVehicleFirstRegistered
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionDate($productionDate)
+ public function setDateVehicleFirstRegistered($dateVehicleFirstRegistered)
{
$types = [
"Date",
"null",
];
- $productionDate = self::checkTypes($productionDate, $types);
+ $dateVehicleFirstRegistered = self::checkTypes($dateVehicleFirstRegistered, $types);
- $this->productionDate = $productionDate;
+ $this->dateVehicleFirstRegistered = $dateVehicleFirstRegistered;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return string
*/
- public function getNumberOfPreviousOwners()
+ public function getKnownVehicleDamages()
{
- return $this->numberOfPreviousOwners;
+ return $this->knownVehicleDamages;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfPreviousOwners
+ * @param string $knownVehicleDamages
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfPreviousOwners($numberOfPreviousOwners)
+ public function setKnownVehicleDamages($knownVehicleDamages)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $numberOfPreviousOwners = self::checkTypes($numberOfPreviousOwners, $types);
+ $knownVehicleDamages = self::checkTypes($knownVehicleDamages, $types);
- $this->numberOfPreviousOwners = $numberOfPreviousOwners;
+ $this->knownVehicleDamages = $knownVehicleDamages;
}
/**
- * @return \OpenActive\Models\SchemaOrg\SteeringPositionValue|string
+ * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- public function getSteeringPosition()
+ public function getVehicleTransmission()
{
- return $this->steeringPosition;
+ return $this->vehicleTransmission;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SteeringPositionValue|string $steeringPosition
+ * @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 setSteeringPosition($steeringPosition)
+ public function setVehicleTransmission($vehicleTransmission)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SteeringPositionValue",
"string",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
+ "null",
];
- $steeringPosition = self::checkTypes($steeringPosition, $types);
+ $vehicleTransmission = self::checkTypes($vehicleTransmission, $types);
- $this->steeringPosition = $steeringPosition;
+ $this->vehicleTransmission = $vehicleTransmission;
}
/**
@@ -703,69 +602,97 @@ public function setWheelbase($wheelbase)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getVehicleInteriorType()
+ public function getMileageFromOdometer()
{
- return $this->vehicleInteriorType;
+ return $this->mileageFromOdometer;
}
/**
- * @param string $vehicleInteriorType
+ * @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 setVehicleInteriorType($vehicleInteriorType)
+ public function setMileageFromOdometer($mileageFromOdometer)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $vehicleInteriorType = self::checkTypes($vehicleInteriorType, $types);
+ $mileageFromOdometer = self::checkTypes($mileageFromOdometer, $types);
- $this->vehicleInteriorType = $vehicleInteriorType;
+ $this->mileageFromOdometer = $mileageFromOdometer;
}
/**
- * @return string|Number|null
+ * @return \OpenActive\Enums\SchemaOrg\CarUsageType|string|null
*/
- public function getNumberOfAirbags()
+ public function getVehicleSpecialUsage()
{
- return $this->numberOfAirbags;
+ return $this->vehicleSpecialUsage;
}
/**
- * @param string|Number|null $numberOfAirbags
+ * @param \OpenActive\Enums\SchemaOrg\CarUsageType|string|null $vehicleSpecialUsage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfAirbags($numberOfAirbags)
+ public function setVehicleSpecialUsage($vehicleSpecialUsage)
+ {
+ $types = [
+ "\OpenActive\Enums\SchemaOrg\CarUsageType",
+ "string",
+ "null",
+ ];
+
+ $vehicleSpecialUsage = self::checkTypes($vehicleSpecialUsage, $types);
+
+ $this->vehicleSpecialUsage = $vehicleSpecialUsage;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ */
+ public function getNumberOfDoors()
+ {
+ return $this->numberOfDoors;
+ }
+
+ /**
+ * @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 setNumberOfDoors($numberOfDoors)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
"Number",
"null",
];
- $numberOfAirbags = self::checkTypes($numberOfAirbags, $types);
+ $numberOfDoors = self::checkTypes($numberOfDoors, $types);
- $this->numberOfAirbags = $numberOfAirbags;
+ $this->numberOfDoors = $numberOfDoors;
}
/**
* @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- public function getFuelType()
+ public function getMeetsEmissionStandard()
{
- return $this->fuelType;
+ return $this->meetsEmissionStandard;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $fuelType
+ * @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 setFuelType($fuelType)
+ public function setMeetsEmissionStandard($meetsEmissionStandard)
{
$types = [
"string",
@@ -773,9 +700,9 @@ public function setFuelType($fuelType)
"null",
];
- $fuelType = self::checkTypes($fuelType, $types);
+ $meetsEmissionStandard = self::checkTypes($meetsEmissionStandard, $types);
- $this->fuelType = $fuelType;
+ $this->meetsEmissionStandard = $meetsEmissionStandard;
}
/**
@@ -804,128 +731,127 @@ public function setCargoVolume($cargoVolume)
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ * @return string
*/
- public function getVehicleTransmission()
+ public function getVehicleInteriorType()
{
- return $this->vehicleTransmission;
+ return $this->vehicleInteriorType;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $vehicleTransmission
+ * @param string $vehicleInteriorType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVehicleTransmission($vehicleTransmission)
+ public function setVehicleInteriorType($vehicleInteriorType)
{
$types = [
"string",
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
- "null",
];
- $vehicleTransmission = self::checkTypes($vehicleTransmission, $types);
+ $vehicleInteriorType = self::checkTypes($vehicleInteriorType, $types);
- $this->vehicleTransmission = $vehicleTransmission;
+ $this->vehicleInteriorType = $vehicleInteriorType;
}
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getPayload()
+ public function getWeightTotal()
{
- return $this->payload;
+ return $this->weightTotal;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $payload
+ * @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 setPayload($payload)
+ public function setWeightTotal($weightTotal)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $payload = self::checkTypes($payload, $types);
+ $weightTotal = self::checkTypes($weightTotal, $types);
- $this->payload = $payload;
+ $this->weightTotal = $weightTotal;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getDriveWheelConfiguration()
+ public function getFuelConsumption()
{
- return $this->driveWheelConfiguration;
+ return $this->fuelConsumption;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue $driveWheelConfiguration
+ * @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 setDriveWheelConfiguration($driveWheelConfiguration)
+ public function setFuelConsumption($fuelConsumption)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue",
];
- $driveWheelConfiguration = self::checkTypes($driveWheelConfiguration, $types);
+ $fuelConsumption = self::checkTypes($fuelConsumption, $types);
- $this->driveWheelConfiguration = $driveWheelConfiguration;
+ $this->fuelConsumption = $fuelConsumption;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getKnownVehicleDamages()
+ public function getAccelerationTime()
{
- return $this->knownVehicleDamages;
+ return $this->accelerationTime;
}
/**
- * @param string $knownVehicleDamages
+ * @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 setKnownVehicleDamages($knownVehicleDamages)
+ public function setAccelerationTime($accelerationTime)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $knownVehicleDamages = self::checkTypes($knownVehicleDamages, $types);
+ $accelerationTime = self::checkTypes($accelerationTime, $types);
- $this->knownVehicleDamages = $knownVehicleDamages;
+ $this->accelerationTime = $accelerationTime;
}
/**
- * @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;
}
/**
@@ -953,71 +879,122 @@ public function setVehicleInteriorColor($vehicleInteriorColor)
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- public function getNumberOfAxles()
+ public function getBodyType()
{
- return $this->numberOfAxles;
+ return $this->bodyType;
+ }
+
+ /**
+ * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $bodyType
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setBodyType($bodyType)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
+ "null",
+ ];
+
+ $bodyType = self::checkTypes($bodyType, $types);
+
+ $this->bodyType = $bodyType;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ public function getTongueWeight()
+ {
+ return $this->tongueWeight;
+ }
+
+ /**
+ * @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 setTongueWeight($tongueWeight)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
+ ];
+
+ $tongueWeight = self::checkTypes($tongueWeight, $types);
+
+ $this->tongueWeight = $tongueWeight;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ */
+ public function getSeatingCapacity()
+ {
+ return $this->seatingCapacity;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfAxles
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $seatingCapacity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfAxles($numberOfAxles)
+ public function setSeatingCapacity($seatingCapacity)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "Number",
"null",
];
- $numberOfAxles = self::checkTypes($numberOfAxles, $types);
+ $seatingCapacity = self::checkTypes($seatingCapacity, $types);
- $this->numberOfAxles = $numberOfAxles;
+ $this->seatingCapacity = $seatingCapacity;
}
/**
- * @return Date|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getModelDate()
+ public function getSpeed()
{
- return $this->modelDate;
+ return $this->speed;
}
/**
- * @param Date|null $modelDate
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $speed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setModelDate($modelDate)
+ public function setSpeed($speed)
{
$types = [
- "Date",
- "null",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
];
- $modelDate = self::checkTypes($modelDate, $types);
+ $speed = self::checkTypes($speed, $types);
- $this->modelDate = $modelDate;
+ $this->speed = $speed;
}
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function getNumberOfDoors()
+ public function getNumberOfAxles()
{
- return $this->numberOfDoors;
+ return $this->numberOfAxles;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfDoors
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfAxles
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfDoors($numberOfDoors)
+ public function setNumberOfAxles($numberOfAxles)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
@@ -1026,338 +1003,361 @@ public function setNumberOfDoors($numberOfDoors)
"null",
];
- $numberOfDoors = self::checkTypes($numberOfDoors, $types);
+ $numberOfAxles = self::checkTypes($numberOfAxles, $types);
- $this->numberOfDoors = $numberOfDoors;
+ $this->numberOfAxles = $numberOfAxles;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
*/
- public function getVehicleSeatingCapacity()
+ public function getFuelType()
{
- return $this->vehicleSeatingCapacity;
+ return $this->fuelType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $vehicleSeatingCapacity
+ * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $fuelType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVehicleSeatingCapacity($vehicleSeatingCapacity)
+ public function setFuelType($fuelType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
"string",
- "Number",
"null",
];
- $vehicleSeatingCapacity = self::checkTypes($vehicleSeatingCapacity, $types);
+ $fuelType = self::checkTypes($fuelType, $types);
- $this->vehicleSeatingCapacity = $vehicleSeatingCapacity;
+ $this->fuelType = $fuelType;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getCallSign()
+ public function getTrailerWeight()
{
- return $this->callSign;
+ return $this->trailerWeight;
}
/**
- * @param string $callSign
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $trailerWeight
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCallSign($callSign)
+ public function setTrailerWeight($trailerWeight)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $callSign = self::checkTypes($callSign, $types);
+ $trailerWeight = self::checkTypes($trailerWeight, $types);
- $this->callSign = $callSign;
+ $this->trailerWeight = $trailerWeight;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return Date|null
*/
- public function getTongueWeight()
+ public function getVehicleModelDate()
{
- return $this->tongueWeight;
+ return $this->vehicleModelDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $tongueWeight
+ * @param Date|null $vehicleModelDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTongueWeight($tongueWeight)
+ public function setVehicleModelDate($vehicleModelDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
+ "Date",
+ "null",
];
- $tongueWeight = self::checkTypes($tongueWeight, $types);
+ $vehicleModelDate = self::checkTypes($vehicleModelDate, $types);
- $this->tongueWeight = $tongueWeight;
+ $this->vehicleModelDate = $vehicleModelDate;
}
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getFuelEfficiency()
+ public function getFuelCapacity()
{
- return $this->fuelEfficiency;
+ return $this->fuelCapacity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $fuelEfficiency
+ * @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 setFuelEfficiency($fuelEfficiency)
+ public function setFuelCapacity($fuelCapacity)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $fuelEfficiency = self::checkTypes($fuelEfficiency, $types);
+ $fuelCapacity = self::checkTypes($fuelCapacity, $types);
- $this->fuelEfficiency = $fuelEfficiency;
+ $this->fuelCapacity = $fuelCapacity;
}
/**
* @return Date|null
*/
- public function getVehicleModelDate()
+ public function getModelDate()
{
- return $this->vehicleModelDate;
+ return $this->modelDate;
}
/**
- * @param Date|null $vehicleModelDate
+ * @param Date|null $modelDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVehicleModelDate($vehicleModelDate)
+ public function setModelDate($modelDate)
{
$types = [
"Date",
"null",
];
- $vehicleModelDate = self::checkTypes($vehicleModelDate, $types);
+ $modelDate = self::checkTypes($modelDate, $types);
- $this->vehicleModelDate = $vehicleModelDate;
+ $this->modelDate = $modelDate;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\EngineSpecification|string
*/
- public function getVehicleConfiguration()
+ public function getVehicleEngine()
{
- return $this->vehicleConfiguration;
+ return $this->vehicleEngine;
}
/**
- * @param string $vehicleConfiguration
+ * @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 setVehicleConfiguration($vehicleConfiguration)
+ public function setVehicleEngine($vehicleEngine)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\EngineSpecification",
"string",
];
- $vehicleConfiguration = self::checkTypes($vehicleConfiguration, $types);
+ $vehicleEngine = self::checkTypes($vehicleEngine, $types);
- $this->vehicleConfiguration = $vehicleConfiguration;
+ $this->vehicleEngine = $vehicleEngine;
}
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getMileageFromOdometer()
+ public function getPayload()
{
- return $this->mileageFromOdometer;
+ return $this->payload;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $mileageFromOdometer
+ * @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 setMileageFromOdometer($mileageFromOdometer)
+ public function setPayload($payload)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $mileageFromOdometer = self::checkTypes($mileageFromOdometer, $types);
+ $payload = self::checkTypes($payload, $types);
- $this->mileageFromOdometer = $mileageFromOdometer;
+ $this->payload = $payload;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ * @return string
*/
- public function getSeatingCapacity()
+ public function getVehicleIdentificationNumber()
{
- return $this->seatingCapacity;
+ return $this->vehicleIdentificationNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $seatingCapacity
+ * @param string $vehicleIdentificationNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSeatingCapacity($seatingCapacity)
+ public function setVehicleIdentificationNumber($vehicleIdentificationNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ ];
+
+ $vehicleIdentificationNumber = self::checkTypes($vehicleIdentificationNumber, $types);
+
+ $this->vehicleIdentificationNumber = $vehicleIdentificationNumber;
+ }
+
+ /**
+ * @return Number|null
+ */
+ public function getEmissionsCO2()
+ {
+ return $this->emissionsCO2;
+ }
+
+ /**
+ * @param Number|null $emissionsCO2
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setEmissionsCO2($emissionsCO2)
+ {
+ $types = [
"Number",
"null",
];
- $seatingCapacity = self::checkTypes($seatingCapacity, $types);
+ $emissionsCO2 = self::checkTypes($emissionsCO2, $types);
- $this->seatingCapacity = $seatingCapacity;
+ $this->emissionsCO2 = $emissionsCO2;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\SteeringPositionValue|string
*/
- public function getBodyType()
+ public function getSteeringPosition()
{
- return $this->bodyType;
+ return $this->steeringPosition;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $bodyType
+ * @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 setBodyType($bodyType)
+ public function setSteeringPosition($steeringPosition)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
+ "\OpenActive\Models\SchemaOrg\SteeringPositionValue",
"string",
- "null",
];
- $bodyType = self::checkTypes($bodyType, $types);
+ $steeringPosition = self::checkTypes($steeringPosition, $types);
- $this->bodyType = $bodyType;
+ $this->steeringPosition = $steeringPosition;
}
/**
- * @return Date|null
+ * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getDateVehicleFirstRegistered()
+ public function getNumberOfForwardGears()
{
- return $this->dateVehicleFirstRegistered;
+ return $this->numberOfForwardGears;
}
/**
- * @param Date|null $dateVehicleFirstRegistered
+ * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfForwardGears
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateVehicleFirstRegistered($dateVehicleFirstRegistered)
+ public function setNumberOfForwardGears($numberOfForwardGears)
{
$types = [
- "Date",
+ "Number",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
"null",
];
- $dateVehicleFirstRegistered = self::checkTypes($dateVehicleFirstRegistered, $types);
+ $numberOfForwardGears = self::checkTypes($numberOfForwardGears, $types);
- $this->dateVehicleFirstRegistered = $dateVehicleFirstRegistered;
+ $this->numberOfForwardGears = $numberOfForwardGears;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getVehicleIdentificationNumber()
+ public function getFuelEfficiency()
{
- return $this->vehicleIdentificationNumber;
+ return $this->fuelEfficiency;
}
/**
- * @param string $vehicleIdentificationNumber
+ * @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 setVehicleIdentificationNumber($vehicleIdentificationNumber)
+ public function setFuelEfficiency($fuelEfficiency)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $vehicleIdentificationNumber = self::checkTypes($vehicleIdentificationNumber, $types);
+ $fuelEfficiency = self::checkTypes($fuelEfficiency, $types);
- $this->vehicleIdentificationNumber = $vehicleIdentificationNumber;
+ $this->fuelEfficiency = $fuelEfficiency;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ * @return string
*/
- public function getMeetsEmissionStandard()
+ public function getCallSign()
{
- return $this->meetsEmissionStandard;
+ return $this->callSign;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $meetsEmissionStandard
+ * @param string $callSign
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMeetsEmissionStandard($meetsEmissionStandard)
+ public function setCallSign($callSign)
{
$types = [
"string",
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
- "null",
];
- $meetsEmissionStandard = self::checkTypes($meetsEmissionStandard, $types);
+ $callSign = self::checkTypes($callSign, $types);
- $this->meetsEmissionStandard = $meetsEmissionStandard;
+ $this->callSign = $callSign;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\CarUsageType|string|null
+ * @return string|Number|null
*/
- public function getVehicleSpecialUsage()
+ public function getNumberOfAirbags()
{
- return $this->vehicleSpecialUsage;
+ return $this->numberOfAirbags;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\CarUsageType|string|null $vehicleSpecialUsage
+ * @param string|Number|null $numberOfAirbags
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVehicleSpecialUsage($vehicleSpecialUsage)
+ public function setNumberOfAirbags($numberOfAirbags)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\CarUsageType",
"string",
+ "Number",
"null",
];
- $vehicleSpecialUsage = self::checkTypes($vehicleSpecialUsage, $types);
+ $numberOfAirbags = self::checkTypes($numberOfAirbags, $types);
- $this->vehicleSpecialUsage = $vehicleSpecialUsage;
+ $this->numberOfAirbags = $numberOfAirbags;
}
}
diff --git a/src/Models/SchemaOrg/Vein.php b/src/Models/SchemaOrg/Vein.php
index 98279ab1..67cfccf6 100644
--- a/src/Models/SchemaOrg/Vein.php
+++ b/src/Models/SchemaOrg/Vein.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "regionDrained" => "regionDrained",
"tributary" => "tributary",
+ "regionDrained" => "regionDrained",
"drainsTo" => "drainsTo",
];
@@ -26,20 +26,20 @@ public static function fieldList() {
}
/**
- * The anatomical or organ system drained by this vessel; generally refers to a specific part of an organ.
+ * The anatomical or organ system that the vein flows into; a larger structure that the vein connects to.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $regionDrained;
+ protected $tributary;
/**
- * The anatomical or organ system that the vein flows into; a larger structure that the vein connects to.
+ * The anatomical or organ system drained by this vessel; generally refers to a specific part of an organ.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $tributary;
+ protected $regionDrained;
/**
* The vasculature that the vein drains into.
@@ -50,54 +50,54 @@ public static function fieldList() {
protected $drainsTo;
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getRegionDrained()
+ public function getTributary()
{
- return $this->regionDrained;
+ return $this->tributary;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $regionDrained
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $tributary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRegionDrained($regionDrained)
+ public function setTributary($tributary)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
"\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $regionDrained = self::checkTypes($regionDrained, $types);
+ $tributary = self::checkTypes($tributary, $types);
- $this->regionDrained = $regionDrained;
+ $this->tributary = $tributary;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getTributary()
+ public function getRegionDrained()
{
- return $this->tributary;
+ return $this->regionDrained;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $tributary
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $regionDrained
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTributary($tributary)
+ public function setRegionDrained($regionDrained)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
"\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $tributary = self::checkTypes($tributary, $types);
+ $regionDrained = self::checkTypes($regionDrained, $types);
- $this->tributary = $tributary;
+ $this->regionDrained = $regionDrained;
}
/**
diff --git a/src/Models/SchemaOrg/VideoGame.php b/src/Models/SchemaOrg/VideoGame.php
index 4dcc4416..55949496 100644
--- a/src/Models/SchemaOrg/VideoGame.php
+++ b/src/Models/SchemaOrg/VideoGame.php
@@ -5,7 +5,7 @@
/**
*
*/
-class VideoGame extends \OpenActive\Models\SchemaOrg\SoftwareApplication
+class VideoGame extends \OpenActive\Models\SchemaOrg\Game
{
/**
* @return string[]|null
@@ -17,54 +17,54 @@ public static function getType()
public static function fieldList() {
$fields = [
- "director" => "director",
- "actor" => "actor",
- "trailer" => "trailer",
- "gameEdition" => "gameEdition",
- "cheatCode" => "cheatCode",
- "gameServer" => "gameServer",
- "gameTip" => "gameTip",
"actors" => "actors",
- "playMode" => "playMode",
+ "gameEdition" => "gameEdition",
"gamePlatform" => "gamePlatform",
+ "gameServer" => "gameServer",
+ "cheatCode" => "cheatCode",
+ "trailer" => "trailer",
"musicBy" => "musicBy",
"directors" => "directors",
+ "gameTip" => "gameTip",
+ "playMode" => "playMode",
+ "director" => "director",
+ "actor" => "actor",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
+ * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $director;
+ protected $actors;
/**
- * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
+ * The edition of a video game.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $actor;
+ protected $gameEdition;
/**
- * The trailer of a movie or tv/radio series, season, episode, etc.
+ * The electronic systems used to play video games.
*
*
- * @var \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @var string|\OpenActive\Models\SchemaOrg\Thing
*/
- protected $trailer;
+ protected $gamePlatform;
/**
- * The edition of a video game.
+ * The server on which it is possible to play the game.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\GameServer|string
*/
- protected $gameEdition;
+ protected $gameServer;
/**
* Cheat codes to the game.
@@ -75,158 +75,158 @@ public static function fieldList() {
protected $cheatCode;
/**
- * The server on which it is possible to play the game.
+ * The trailer of a movie or TV/radio series, season, episode, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\GameServer|string
+ * @var \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- protected $gameServer;
+ protected $trailer;
/**
- * Links to tips, tactics, etc.
+ * The composer of the soundtrack.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|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.
+ * Links to tips, tactics, etc.
*
*
- * @var \OpenActive\Enums\SchemaOrg\GamePlayMode|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $playMode;
+ protected $gameTip;
/**
- * The electronic systems used to play video games.
+ * 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 string|\OpenActive\Models\SchemaOrg\Thing
+ * @var \OpenActive\Enums\SchemaOrg\GamePlayMode|null
*/
- protected $gamePlatform;
+ 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;
/**
- * 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., or in an event. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $directors;
+ protected $actor;
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDirector()
+ public function getActors()
{
- return $this->director;
+ return $this->actors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @param \OpenActive\Models\SchemaOrg\Person|string $actors
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirector($director)
+ public function setActors($actors)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $director = self::checkTypes($director, $types);
+ $actors = self::checkTypes($actors, $types);
- $this->director = $director;
+ $this->actors = $actors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getActor()
+ public function getGameEdition()
{
- return $this->actor;
+ return $this->gameEdition;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @param string $gameEdition
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActor($actor)
+ public function setGameEdition($gameEdition)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $actor = self::checkTypes($actor, $types);
+ $gameEdition = self::checkTypes($gameEdition, $types);
- $this->actor = $actor;
+ $this->gameEdition = $gameEdition;
}
/**
- * @return \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @return string|\OpenActive\Models\SchemaOrg\Thing
*/
- public function getTrailer()
+ public function getGamePlatform()
{
- return $this->trailer;
+ return $this->gamePlatform;
}
/**
- * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
+ * @param string|\OpenActive\Models\SchemaOrg\Thing $gamePlatform
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTrailer($trailer)
+ public function setGamePlatform($gamePlatform)
{
$types = [
- "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
+ "\OpenActive\Models\SchemaOrg\Thing",
];
- $trailer = self::checkTypes($trailer, $types);
+ $gamePlatform = self::checkTypes($gamePlatform, $types);
- $this->trailer = $trailer;
+ $this->gamePlatform = $gamePlatform;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\GameServer|string
*/
- public function getGameEdition()
+ public function getGameServer()
{
- return $this->gameEdition;
+ return $this->gameServer;
}
/**
- * @param string $gameEdition
+ * @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 setGameEdition($gameEdition)
+ public function setGameServer($gameServer)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\GameServer",
"string",
];
- $gameEdition = self::checkTypes($gameEdition, $types);
+ $gameServer = self::checkTypes($gameServer, $types);
- $this->gameEdition = $gameEdition;
+ $this->gameServer = $gameServer;
}
/**
@@ -255,179 +255,179 @@ public function setCheatCode($cheatCode)
}
/**
- * @return \OpenActive\Models\SchemaOrg\GameServer|string
+ * @return \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- public function getGameServer()
+ public function getTrailer()
{
- return $this->gameServer;
+ return $this->trailer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GameServer|string $gameServer
+ * @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 setGameServer($gameServer)
+ public function setTrailer($trailer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GameServer",
+ "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
];
- $gameServer = self::checkTypes($gameServer, $types);
+ $trailer = self::checkTypes($trailer, $types);
- $this->gameServer = $gameServer;
+ $this->trailer = $trailer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- public function getGameTip()
+ public function getMusicBy()
{
- return $this->gameTip;
+ return $this->musicBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $gameTip
+ * @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 setGameTip($gameTip)
+ public function setMusicBy($musicBy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
"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;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\GamePlayMode|null
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getPlayMode()
+ public function getGameTip()
{
- return $this->playMode;
+ return $this->gameTip;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\GamePlayMode|null $playMode
+ * @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 setPlayMode($playMode)
+ public function setGameTip($gameTip)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\GamePlayMode",
- "null",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $playMode = self::checkTypes($playMode, $types);
+ $gameTip = self::checkTypes($gameTip, $types);
- $this->playMode = $playMode;
+ $this->gameTip = $gameTip;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Thing
+ * @return \OpenActive\Enums\SchemaOrg\GamePlayMode|null
*/
- public function getGamePlatform()
+ public function getPlayMode()
{
- return $this->gamePlatform;
+ return $this->playMode;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Thing $gamePlatform
+ * @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 setGamePlatform($gamePlatform)
+ public function setPlayMode($playMode)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Enums\SchemaOrg\GamePlayMode",
+ "null",
];
- $gamePlatform = self::checkTypes($gamePlatform, $types);
+ $playMode = self::checkTypes($playMode, $types);
- $this->gamePlatform = $gamePlatform;
+ $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\Person|string
*/
- public function getDirectors()
+ public function getActor()
{
- return $this->directors;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @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 setDirectors($directors)
+ public function setActor($actor)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->directors = $directors;
+ $this->actor = $actor;
}
}
diff --git a/src/Models/SchemaOrg/VideoGameSeries.php b/src/Models/SchemaOrg/VideoGameSeries.php
index 16fd6ce6..2fa1c3ea 100644
--- a/src/Models/SchemaOrg/VideoGameSeries.php
+++ b/src/Models/SchemaOrg/VideoGameSeries.php
@@ -17,72 +17,56 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "characterAttribute" => "characterAttribute",
+ "actors" => "actors",
+ "gamePlatform" => "gamePlatform",
+ "episodes" => "episodes",
"season" => "season",
+ "cheatCode" => "cheatCode",
"containsSeason" => "containsSeason",
- "director" => "director",
- "actor" => "actor",
"trailer" => "trailer",
- "episodes" => "episodes",
- "characterAttribute" => "characterAttribute",
- "numberOfEpisodes" => "numberOfEpisodes",
- "seasons" => "seasons",
- "cheatCode" => "cheatCode",
- "gameItem" => "gameItem",
"productionCompany" => "productionCompany",
- "actors" => "actors",
- "playMode" => "playMode",
- "gamePlatform" => "gamePlatform",
+ "episode" => "episode",
+ "seasons" => "seasons",
"numberOfSeasons" => "numberOfSeasons",
- "musicBy" => "musicBy",
- "numberOfPlayers" => "numberOfPlayers",
- "quest" => "quest",
"gameLocation" => "gameLocation",
- "episode" => "episode",
+ "musicBy" => "musicBy",
"directors" => "directors",
+ "quest" => "quest",
+ "numberOfPlayers" => "numberOfPlayers",
+ "playMode" => "playMode",
+ "director" => "director",
+ "numberOfEpisodes" => "numberOfEpisodes",
+ "actor" => "actor",
+ "gameItem" => "gameItem",
];
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.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
- */
- protected $containsSeason;
-
- /**
- * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
+ * A piece of data that represents a particular aspect of a fictional character (skill, power, character points, advantage, disadvantage).
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $director;
+ protected $characterAttribute;
/**
- * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
+ * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $actor;
+ protected $actors;
/**
- * The trailer of a movie or tv/radio series, season, episode, etc.
+ * The electronic systems used to play video games.
*
*
- * @var \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @var string|\OpenActive\Models\SchemaOrg\Thing
*/
- protected $trailer;
+ protected $gamePlatform;
/**
* An episode of a TV/radio series or season.
@@ -92,29 +76,13 @@ public static function fieldList() {
*/
protected $episodes;
- /**
- * A piece of data that represents a particular aspect of a fictional character (skill, power, character points, advantage, disadvantage).
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Thing|string
- */
- protected $characterAttribute;
-
- /**
- * The number of episodes in this season or series.
- *
- *
- * @var int|null
- */
- protected $numberOfEpisodes;
-
/**
* A season in a media series.
*
*
* @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- protected $seasons;
+ protected $season;
/**
* Cheat codes to the game.
@@ -125,44 +93,44 @@ public static function fieldList() {
protected $cheatCode;
/**
- * An item is an object within the game world that can be collected by a player or, occasionally, a non-player character.
+ * A season that is part of the media series.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- protected $gameItem;
+ protected $containsSeason;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * The trailer of a movie or TV/radio series, season, episode, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- protected $productionCompany;
+ protected $trailer;
/**
- * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $actors;
+ protected $productionCompany;
/**
- * 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.
+ * An episode of a TV, radio or game media within a series or season.
*
*
- * @var \OpenActive\Enums\SchemaOrg\GamePlayMode|null
+ * @var \OpenActive\Models\SchemaOrg\Episode|string
*/
- protected $playMode;
+ protected $episode;
/**
- * The electronic systems used to play video games.
+ * A season in a media series.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Thing
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- protected $gamePlatform;
+ protected $seasons;
/**
* The number of seasons in this series.
@@ -172,6 +140,14 @@ public static function fieldList() {
*/
protected $numberOfSeasons;
+ /**
+ * Real or fictional location of the game (or part of game).
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress
+ */
+ protected $gameLocation;
+
/**
* The composer of the soundtrack.
*
@@ -181,12 +157,12 @@ public static function fieldList() {
protected $musicBy;
/**
- * Indicate how many people can play this game (minimum, maximum, or range).
+ * 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\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $numberOfPlayers;
+ protected $directors;
/**
* The task that a player-controlled character, or group of characters may complete in order to gain a reward.
@@ -197,453 +173,453 @@ public static function fieldList() {
protected $quest;
/**
- * 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;
/**
- * An episode of a tv, radio or game media within a series or season.
+ * Indicates whether this game is multi-player, co-op or single-player. The game can be marked as multi-player, co-op and single-player at the same time.
*
*
- * @var \OpenActive\Models\SchemaOrg\Episode|string
+ * @var \OpenActive\Enums\SchemaOrg\GamePlayMode|null
*/
- protected $episode;
+ protected $playMode;
/**
- * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
+ * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $directors;
+ protected $director;
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason
+ * The number of episodes in this season or series.
+ *
+ *
+ * @var int|null
*/
- public function getSeason()
- {
- return $this->season;
- }
+ protected $numberOfEpisodes;
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason $season
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * 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
*/
- public function setSeason($season)
- {
- $types = [
- "string",
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
- ];
-
- $season = self::checkTypes($season, $types);
+ protected $actor;
- $this->season = $season;
- }
+ /**
+ * An item is an object within the game world that can be collected by a player or, occasionally, a non-player character.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
+ */
+ protected $gameItem;
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getContainsSeason()
+ public function getCharacterAttribute()
{
- return $this->containsSeason;
+ return $this->characterAttribute;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $containsSeason
+ * @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 setContainsSeason($containsSeason)
+ public function setCharacterAttribute($characterAttribute)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $containsSeason = self::checkTypes($containsSeason, $types);
+ $characterAttribute = self::checkTypes($characterAttribute, $types);
- $this->containsSeason = $containsSeason;
+ $this->characterAttribute = $characterAttribute;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDirector()
+ public function getActors()
{
- return $this->director;
+ return $this->actors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @param \OpenActive\Models\SchemaOrg\Person|string $actors
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirector($director)
+ public function setActors($actors)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $director = self::checkTypes($director, $types);
+ $actors = self::checkTypes($actors, $types);
- $this->director = $director;
+ $this->actors = $actors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string|\OpenActive\Models\SchemaOrg\Thing
*/
- public function getActor()
+ public function getGamePlatform()
{
- return $this->actor;
+ return $this->gamePlatform;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @param string|\OpenActive\Models\SchemaOrg\Thing $gamePlatform
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActor($actor)
+ public function setGamePlatform($gamePlatform)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
+ "\OpenActive\Models\SchemaOrg\Thing",
];
- $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\Episode|string
*/
- public function getTrailer()
+ public function getEpisodes()
{
- return $this->trailer;
+ return $this->episodes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
+ * @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 setTrailer($trailer)
+ public function setEpisodes($episodes)
{
$types = [
- "\OpenActive\Models\SchemaOrg\VideoObject",
+ "\OpenActive\Models\SchemaOrg\Episode",
"string",
];
- $trailer = self::checkTypes($trailer, $types);
+ $episodes = self::checkTypes($episodes, $types);
- $this->trailer = $trailer;
+ $this->episodes = $episodes;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Episode|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- public function getEpisodes()
+ public function getSeason()
{
- return $this->episodes;
+ return $this->season;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes
+ * @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 setEpisodes($episodes)
+ public function setSeason($season)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Episode",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
"string",
];
- $episodes = self::checkTypes($episodes, $types);
+ $season = self::checkTypes($season, $types);
- $this->episodes = $episodes;
+ $this->season = $season;
}
/**
- * @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\CreativeWorkSeason|string
*/
- public function getNumberOfEpisodes()
+ public function getContainsSeason()
{
- return $this->numberOfEpisodes;
+ return $this->containsSeason;
}
/**
- * @param int|null $numberOfEpisodes
+ * @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 setNumberOfEpisodes($numberOfEpisodes)
+ public function setContainsSeason($containsSeason)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
+ "string",
];
- $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types);
+ $containsSeason = self::checkTypes($containsSeason, $types);
- $this->numberOfEpisodes = $numberOfEpisodes;
+ $this->containsSeason = $containsSeason;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ * @return \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- public function getSeasons()
+ public function getTrailer()
{
- return $this->seasons;
+ return $this->trailer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $seasons
+ * @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 setSeasons($seasons)
+ public function setTrailer($trailer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
+ "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
];
- $seasons = self::checkTypes($seasons, $types);
+ $trailer = self::checkTypes($trailer, $types);
- $this->seasons = $seasons;
+ $this->trailer = $trailer;
}
/**
- * @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 \OpenActive\Models\SchemaOrg\Episode|string
*/
- public function getGameItem()
+ public function getEpisode()
{
- return $this->gameItem;
+ return $this->episode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $gameItem
+ * @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 setGameItem($gameItem)
+ public function setEpisode($episode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\Episode",
"string",
];
- $gameItem = self::checkTypes($gameItem, $types);
+ $episode = self::checkTypes($episode, $types);
- $this->gameItem = $gameItem;
+ $this->episode = $episode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- public function getProductionCompany()
+ public function getSeasons()
{
- return $this->productionCompany;
+ return $this->seasons;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $seasons
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionCompany($productionCompany)
+ public function setSeasons($seasons)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
"string",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $seasons = self::checkTypes($seasons, $types);
- $this->productionCompany = $productionCompany;
+ $this->seasons = $seasons;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return int|null
*/
- public function getActors()
+ public function getNumberOfSeasons()
{
- return $this->actors;
+ return $this->numberOfSeasons;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actors
+ * @param int|null $numberOfSeasons
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActors($actors)
+ public function setNumberOfSeasons($numberOfSeasons)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "int",
+ "null",
];
- $actors = self::checkTypes($actors, $types);
+ $numberOfSeasons = self::checkTypes($numberOfSeasons, $types);
- $this->actors = $actors;
+ $this->numberOfSeasons = $numberOfSeasons;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\GamePlayMode|null
+ * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress
*/
- public function getPlayMode()
+ public function getGameLocation()
{
- return $this->playMode;
+ return $this->gameLocation;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\GamePlayMode|null $playMode
+ * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $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\Place",
+ "string",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
];
- $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|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- public function getGamePlatform()
+ public function getMusicBy()
{
- return $this->gamePlatform;
+ return $this->musicBy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Thing $gamePlatform
+ * @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 setGamePlatform($gamePlatform)
+ public function setMusicBy($musicBy)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
"string",
- "\OpenActive\Models\SchemaOrg\Thing",
];
- $gamePlatform = self::checkTypes($gamePlatform, $types);
+ $musicBy = self::checkTypes($musicBy, $types);
- $this->gamePlatform = $gamePlatform;
+ $this->musicBy = $musicBy;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getNumberOfSeasons()
+ public function getDirectors()
{
- return $this->numberOfSeasons;
+ return $this->directors;
}
/**
- * @param int|null $numberOfSeasons
+ * @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 setNumberOfSeasons($numberOfSeasons)
+ public function setDirectors($directors)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $numberOfSeasons = self::checkTypes($numberOfSeasons, $types);
+ $directors = self::checkTypes($directors, $types);
- $this->numberOfSeasons = $numberOfSeasons;
+ $this->directors = $directors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getMusicBy()
+ public function getQuest()
{
- return $this->musicBy;
+ return $this->quest;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy
+ * @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 setMusicBy($musicBy)
+ public function setQuest($quest)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\MusicGroup",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $musicBy = self::checkTypes($musicBy, $types);
+ $quest = self::checkTypes($quest, $types);
- $this->musicBy = $musicBy;
+ $this->quest = $quest;
}
/**
@@ -672,104 +648,128 @@ public function setNumberOfPlayers($numberOfPlayers)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Enums\SchemaOrg\GamePlayMode|null
*/
- public function getQuest()
+ public function getPlayMode()
{
- return $this->quest;
+ return $this->playMode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $quest
+ * @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 setQuest($quest)
+ public function setPlayMode($playMode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
- "string",
+ "\OpenActive\Enums\SchemaOrg\GamePlayMode",
+ "null",
];
- $quest = self::checkTypes($quest, $types);
+ $playMode = self::checkTypes($playMode, $types);
- $this->quest = $quest;
+ $this->playMode = $playMode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getGameLocation()
+ public function getDirector()
{
- return $this->gameLocation;
+ return $this->director;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $gameLocation
+ * @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 setGameLocation($gameLocation)
+ public function setDirector($director)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "\OpenActive\Models\SchemaOrg\PostalAddress",
];
- $gameLocation = self::checkTypes($gameLocation, $types);
+ $director = self::checkTypes($director, $types);
- $this->gameLocation = $gameLocation;
+ $this->director = $director;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Episode|string
+ * @return int|null
*/
- public function getEpisode()
+ public function getNumberOfEpisodes()
{
- return $this->episode;
+ return $this->numberOfEpisodes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Episode|string $episode
+ * @param int|null $numberOfEpisodes
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEpisode($episode)
+ public function setNumberOfEpisodes($numberOfEpisodes)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Episode",
- "string",
+ "int",
+ "null",
];
- $episode = self::checkTypes($episode, $types);
+ $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types);
- $this->episode = $episode;
+ $this->numberOfEpisodes = $numberOfEpisodes;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDirectors()
+ public function getActor()
{
- return $this->directors;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @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 setDirectors($directors)
+ public function setActor($actor)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->directors = $directors;
+ $this->actor = $actor;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
+ */
+ public function getGameItem()
+ {
+ return $this->gameItem;
+ }
+
+ /**
+ * @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 setGameItem($gameItem)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "string",
+ ];
+
+ $gameItem = self::checkTypes($gameItem, $types);
+
+ $this->gameItem = $gameItem;
}
}
diff --git a/src/Models/SchemaOrg/VideoObject.php b/src/Models/SchemaOrg/VideoObject.php
index 0b78c4c5..22004a1b 100644
--- a/src/Models/SchemaOrg/VideoObject.php
+++ b/src/Models/SchemaOrg/VideoObject.php
@@ -17,45 +17,44 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "actors" => "actors",
"embeddedTextCaption" => "embeddedTextCaption",
- "director" => "director",
- "actor" => "actor",
- "caption" => "caption",
- "thumbnail" => "thumbnail",
- "transcript" => "transcript",
"videoQuality" => "videoQuality",
+ "caption" => "caption",
"videoFrameSize" => "videoFrameSize",
- "actors" => "actors",
+ "transcript" => "transcript",
"musicBy" => "musicBy",
"directors" => "directors",
+ "director" => "director",
+ "actor" => "actor",
];
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. Actors can be associated with individual items or with a series, episode, clip.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $embeddedTextCaption;
+ protected $actors;
/**
- * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
+ * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $director;
+ protected $embeddedTextCaption;
/**
- * 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 quality of the video.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $actor;
+ protected $videoQuality;
/**
* The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]].
@@ -66,12 +65,12 @@ public static function fieldList() {
protected $caption;
/**
- * Thumbnail image for an image or video.
+ * The frame size of the video.
*
*
- * @var \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @var string
*/
- protected $thumbnail;
+ protected $videoFrameSize;
/**
* If this MediaObject is an AudioObject or VideoObject, the transcript of that object.
@@ -82,117 +81,108 @@ public static function fieldList() {
protected $transcript;
/**
- * The quality of the video.
- *
- *
- * @var string
- */
- protected $videoQuality;
-
- /**
- * The frame size of the video.
+ * The composer of the soundtrack.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- protected $videoFrameSize;
+ protected $musicBy;
/**
- * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
+ * 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., or in an event. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $directors;
+ protected $actor;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getEmbeddedTextCaption()
+ public function getActors()
{
- return $this->embeddedTextCaption;
+ return $this->actors;
}
/**
- * @param string $embeddedTextCaption
+ * @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 setEmbeddedTextCaption($embeddedTextCaption)
+ public function setActors($actors)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types);
+ $actors = self::checkTypes($actors, $types);
- $this->embeddedTextCaption = $embeddedTextCaption;
+ $this->actors = $actors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getDirector()
+ public function getEmbeddedTextCaption()
{
- return $this->director;
+ return $this->embeddedTextCaption;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @param string $embeddedTextCaption
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirector($director)
+ public function setEmbeddedTextCaption($embeddedTextCaption)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $director = self::checkTypes($director, $types);
+ $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types);
- $this->director = $director;
+ $this->embeddedTextCaption = $embeddedTextCaption;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getActor()
+ public function getVideoQuality()
{
- return $this->actor;
+ return $this->videoQuality;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @param string $videoQuality
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActor($actor)
+ public function setVideoQuality($videoQuality)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $actor = self::checkTypes($actor, $types);
+ $videoQuality = self::checkTypes($videoQuality, $types);
- $this->actor = $actor;
+ $this->videoQuality = $videoQuality;
}
/**
@@ -221,28 +211,27 @@ public function setCaption($caption)
}
/**
- * @return \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @return string
*/
- public function getThumbnail()
+ public function getVideoFrameSize()
{
- return $this->thumbnail;
+ return $this->videoFrameSize;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ImageObject|string $thumbnail
+ * @param string $videoFrameSize
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setThumbnail($thumbnail)
+ public function setVideoFrameSize($videoFrameSize)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
];
- $thumbnail = self::checkTypes($thumbnail, $types);
+ $videoFrameSize = self::checkTypes($videoFrameSize, $types);
- $this->thumbnail = $thumbnail;
+ $this->videoFrameSize = $videoFrameSize;
}
/**
@@ -270,127 +259,104 @@ public function setTranscript($transcript)
}
/**
- * @return string
- */
- public function getVideoQuality()
- {
- return $this->videoQuality;
- }
-
- /**
- * @param string $videoQuality
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setVideoQuality($videoQuality)
- {
- $types = [
- "string",
- ];
-
- $videoQuality = self::checkTypes($videoQuality, $types);
-
- $this->videoQuality = $videoQuality;
- }
-
- /**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- public function getVideoFrameSize()
+ public function getMusicBy()
{
- return $this->videoFrameSize;
+ return $this->musicBy;
}
/**
- * @param string $videoFrameSize
+ * @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 setVideoFrameSize($videoFrameSize)
+ public function setMusicBy($musicBy)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
"string",
];
- $videoFrameSize = self::checkTypes($videoFrameSize, $types);
+ $musicBy = self::checkTypes($musicBy, $types);
- $this->videoFrameSize = $videoFrameSize;
+ $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 getActor()
{
- return $this->directors;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @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 setDirectors($directors)
+ public function setActor($actor)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->directors = $directors;
+ $this->actor = $actor;
}
}
diff --git a/src/Models/SchemaOrg/VisualArtwork.php b/src/Models/SchemaOrg/VisualArtwork.php
index 43135cf8..75b16c11 100644
--- a/src/Models/SchemaOrg/VisualArtwork.php
+++ b/src/Models/SchemaOrg/VisualArtwork.php
@@ -17,87 +17,97 @@ public static function getType()
public static function fieldList() {
$fields = [
- "width" => "width",
+ "inker" => "inker",
+ "artworkSurface" => "artworkSurface",
+ "colorist" => "colorist",
+ "artist" => "artist",
"letterer" => "letterer",
+ "depth" => "depth",
"height" => "height",
+ "artMedium" => "artMedium",
"surface" => "surface",
- "colorist" => "colorist",
- "inker" => "inker",
- "artform" => "artform",
- "artworkSurface" => "artworkSurface",
"artEdition" => "artEdition",
- "depth" => "depth",
+ "width" => "width",
"penciler" => "penciler",
- "artist" => "artist",
- "artMedium" => "artMedium",
+ "artform" => "artform",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The width of the item.
+ * The individual who traces over the pencil drawings in ink after pencils are complete.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $width;
+ protected $inker;
/**
- * The individual who adds lettering, including speech balloons and sound effects, to artwork.
+ * The supporting materials for the artwork, e.g. Canvas, Paper, Wood, Board, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $letterer;
+ protected $artworkSurface;
/**
- * The height of the item.
+ * The individual who adds color to inked drawings.
*
*
- * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $height;
+ protected $colorist;
/**
- * A material used as a surface in some artwork, e.g. Canvas, Paper, Wood, Board, etc.
+ * The primary artist for a work
+ * in a medium other than pencils or digital line art--for example, if the
+ * primary artwork is done in watercolors or digital paints.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $surface;
+ protected $artist;
/**
- * The individual who adds color to inked drawings.
+ * The 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 depth of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
*/
- protected $inker;
+ protected $depth;
/**
- * e.g. Painting, Drawing, Sculpture, Print, Photograph, Assemblage, Collage, etc.
+ * The height of the item.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
+ */
+ protected $height;
+
+ /**
+ * The material used. (E.g. Oil, Watercolour, Acrylic, Linoprint, Marble, Cyanotype, Digital, Lithograph, DryPoint, Intaglio, Pastel, Woodcut, Pencil, Mixed Media, etc.)
*
*
* @var string
*/
- protected $artform;
+ protected $artMedium;
/**
- * The supporting materials for the artwork, e.g. Canvas, Paper, Wood, Board, etc.
+ * A material used as a surface in some artwork, e.g. Canvas, Paper, Wood, Board, etc.
*
*
* @var string
*/
- protected $artworkSurface;
+ protected $surface;
/**
* 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").
@@ -108,12 +118,12 @@ public static function fieldList() {
protected $artEdition;
/**
- * The depth of the item.
+ * The width of the item.
*
*
* @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $depth;
+ protected $width;
/**
* The individual who draws the primary narrative artwork.
@@ -124,220 +134,235 @@ 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.
+ * e.g. Painting, Drawing, Sculpture, Print, Photograph, Assemblage, Collage, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $artist;
+ protected $artform;
/**
- * The material used. (e.g. Oil, Watercolour, Acrylic, Linoprint, Marble, Cyanotype, Digital, Lithograph, DryPoint, Intaglio, Pastel, Woodcut, Pencil, Mixed Media, etc.)
- *
- *
- * @var string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $artMedium;
+ public function getInker()
+ {
+ return $this->inker;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
+ * @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 getWidth()
+ public function setInker($inker)
{
- return $this->width;
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
+ ];
+
+ $inker = self::checkTypes($inker, $types);
+
+ $this->inker = $inker;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $width
+ * @return string
+ */
+ public function getArtworkSurface()
+ {
+ return $this->artworkSurface;
+ }
+
+ /**
+ * @param string $artworkSurface
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWidth($width)
+ public function setArtworkSurface($artworkSurface)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "\OpenActive\Models\SchemaOrg\Distance",
"string",
];
- $width = self::checkTypes($width, $types);
+ $artworkSurface = self::checkTypes($artworkSurface, $types);
- $this->width = $width;
+ $this->artworkSurface = $artworkSurface;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getLetterer()
+ public function getColorist()
{
- return $this->letterer;
+ return $this->colorist;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $letterer
+ * @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 setLetterer($letterer)
+ public function setColorist($colorist)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $letterer = self::checkTypes($letterer, $types);
+ $colorist = self::checkTypes($colorist, $types);
- $this->letterer = $letterer;
+ $this->colorist = $colorist;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getHeight()
+ public function getArtist()
{
- return $this->height;
+ return $this->artist;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height
+ * @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 setHeight($height)
+ public function setArtist($artist)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Distance",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $height = self::checkTypes($height, $types);
+ $artist = self::checkTypes($artist, $types);
- $this->height = $height;
+ $this->artist = $artist;
}
/**
- * @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
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
*/
- public function getColorist()
+ public function getDepth()
{
- return $this->colorist;
+ return $this->depth;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $colorist
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $depth
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setColorist($colorist)
+ public function setDepth($depth)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Distance",
"string",
];
- $colorist = self::checkTypes($colorist, $types);
+ $depth = self::checkTypes($depth, $types);
- $this->colorist = $colorist;
+ $this->depth = $depth;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
*/
- public function getInker()
+ public function getHeight()
{
- return $this->inker;
+ return $this->height;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $inker
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $height
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInker($inker)
+ public function setHeight($height)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Distance",
"string",
];
- $inker = self::checkTypes($inker, $types);
+ $height = self::checkTypes($height, $types);
- $this->inker = $inker;
+ $this->height = $height;
}
/**
* @return string
*/
- public function getArtform()
+ public function getArtMedium()
{
- return $this->artform;
+ return $this->artMedium;
}
/**
- * @param string $artform
+ * @param string $artMedium
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArtform($artform)
+ public function setArtMedium($artMedium)
{
$types = [
"string",
];
- $artform = self::checkTypes($artform, $types);
+ $artMedium = self::checkTypes($artMedium, $types);
- $this->artform = $artform;
+ $this->artMedium = $artMedium;
}
/**
* @return string
*/
- public function getArtworkSurface()
+ public function getSurface()
{
- return $this->artworkSurface;
+ return $this->surface;
}
/**
- * @param string $artworkSurface
+ * @param string $surface
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArtworkSurface($artworkSurface)
+ public function setSurface($surface)
{
$types = [
"string",
];
- $artworkSurface = self::checkTypes($artworkSurface, $types);
+ $surface = self::checkTypes($surface, $types);
- $this->artworkSurface = $artworkSurface;
+ $this->surface = $surface;
}
/**
@@ -369,17 +394,17 @@ public function setArtEdition($artEdition)
/**
* @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getDepth()
+ public function getWidth()
{
- return $this->depth;
+ return $this->width;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $depth
+ * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $width
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDepth($depth)
+ public function setWidth($width)
{
$types = [
"\OpenActive\Models\SchemaOrg\Distance",
@@ -387,9 +412,9 @@ public function setDepth($depth)
"string",
];
- $depth = self::checkTypes($depth, $types);
+ $width = self::checkTypes($width, $types);
- $this->depth = $depth;
+ $this->width = $width;
}
/**
@@ -417,53 +442,28 @@ public function setPenciler($penciler)
$this->penciler = $penciler;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\Person|string
- */
- public function getArtist()
- {
- return $this->artist;
- }
-
- /**
- * @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 setArtist($artist)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
- ];
-
- $artist = self::checkTypes($artist, $types);
-
- $this->artist = $artist;
- }
-
/**
* @return string
*/
- public function getArtMedium()
+ public function getArtform()
{
- return $this->artMedium;
+ return $this->artform;
}
/**
- * @param string $artMedium
+ * @param string $artform
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArtMedium($artMedium)
+ public function setArtform($artform)
{
$types = [
"string",
];
- $artMedium = self::checkTypes($artMedium, $types);
+ $artform = self::checkTypes($artform, $types);
- $this->artMedium = $artMedium;
+ $this->artform = $artform;
}
}
diff --git a/src/Models/SchemaOrg/WebPage.php b/src/Models/SchemaOrg/WebPage.php
index 5a3ac4b1..902d2921 100644
--- a/src/Models/SchemaOrg/WebPage.php
+++ b/src/Models/SchemaOrg/WebPage.php
@@ -17,44 +17,44 @@ public static function getType()
public static function fieldList() {
$fields = [
- "lastReviewed" => "lastReviewed",
- "specialty" => "specialty",
"primaryImageOfPage" => "primaryImageOfPage",
+ "mainContentOfPage" => "mainContentOfPage",
+ "significantLinks" => "significantLinks",
"significantLink" => "significantLink",
"reviewedBy" => "reviewedBy",
- "mainContentOfPage" => "mainContentOfPage",
+ "specialty" => "specialty",
"relatedLink" => "relatedLink",
- "speakable" => "speakable",
+ "lastReviewed" => "lastReviewed",
"breadcrumb" => "breadcrumb",
- "significantLinks" => "significantLinks",
+ "speakable" => "speakable",
];
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.
+ * Indicates if this web page element is the main subject of the page.
*
*
- * @var \OpenActive\Enums\SchemaOrg\Specialty|null
+ * @var \OpenActive\Models\SchemaOrg\WebPageElement|string
*/
- protected $specialty;
+ protected $mainContentOfPage;
/**
- * Indicates the main image on the page.
+ * The most significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most.
*
*
- * @var \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @var string
*/
- protected $primaryImageOfPage;
+ protected $significantLinks;
/**
* One of the more significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most.
@@ -73,12 +73,12 @@ public static function fieldList() {
protected $reviewedBy;
/**
- * Indicates if this web page element is the main subject of the page.
+ * One of the domain specialities to which this web page's content applies.
*
*
- * @var \OpenActive\Models\SchemaOrg\WebPageElement|string
+ * @var \OpenActive\Enums\SchemaOrg\Specialty|null
*/
- protected $mainContentOfPage;
+ protected $specialty;
/**
* A link related to this web page, for example to other related web pages.
@@ -88,6 +88,22 @@ public static function fieldList() {
*/
protected $relatedLink;
+ /**
+ * Date on which the content on this web page was last reviewed for accuracy and/or completeness.
+ *
+ *
+ * @var Date|null
+ */
+ protected $lastReviewed;
+
+ /**
+ * A set of links that can help a user understand and navigate a website hierarchy.
+ *
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\BreadcrumbList
+ */
+ protected $breadcrumb;
+
/**
* Indicates sections of a Web page that are particularly 'speakable' in the sense of being highlighted as being especially appropriate for text-to-speech conversion. Other sections of a page may also be usefully spoken in particular circumstances; the 'speakable' property serves to indicate the parts most likely to be generally useful for speech.
*
@@ -95,7 +111,7 @@ public static function fieldList() {
*
* 1.) *id-value* URL references - uses *id-value* of an element in the page being annotated. The simplest use of *speakable* has (potentially relative) URL values, referencing identified sections of the document concerned.
*
- * 2.) CSS Selectors - addresses content in the annotated page, eg. via class attribute. Use the [[cssSelector]] property.
+ * 2.) CSS Selectors - addresses content in the annotated page, e.g. via class attribute. Use the [[cssSelector]] property.
*
* 3.) XPaths - addresses content via XPaths (assuming an XML view of the content). Use the [[xpath]] property.
*
@@ -105,99 +121,82 @@ public static function fieldList() {
*
*
*
- * @var string|\OpenActive\Models\SchemaOrg\SpeakableSpecification
+ * @var \OpenActive\Models\SchemaOrg\SpeakableSpecification|string
*/
protected $speakable;
/**
- * A set of links that can help a user understand and navigate a website hierarchy.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\BreadcrumbList|string
- */
- protected $breadcrumb;
-
- /**
- * The most significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most.
- *
- *
- * @var string
- */
- protected $significantLinks;
-
- /**
- * @return Date|null
+ * @return \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;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\Specialty|null
+ * @return \OpenActive\Models\SchemaOrg\WebPageElement|string
*/
- public function getSpecialty()
+ public function getMainContentOfPage()
{
- return $this->specialty;
+ return $this->mainContentOfPage;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\Specialty|null $specialty
+ * @param \OpenActive\Models\SchemaOrg\WebPageElement|string $mainContentOfPage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSpecialty($specialty)
+ public function setMainContentOfPage($mainContentOfPage)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\Specialty",
- "null",
+ "\OpenActive\Models\SchemaOrg\WebPageElement",
+ "string",
];
- $specialty = self::checkTypes($specialty, $types);
+ $mainContentOfPage = self::checkTypes($mainContentOfPage, $types);
- $this->specialty = $specialty;
+ $this->mainContentOfPage = $mainContentOfPage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @return string
*/
- public function getPrimaryImageOfPage()
+ public function getSignificantLinks()
{
- return $this->primaryImageOfPage;
+ return $this->significantLinks;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ImageObject|string $primaryImageOfPage
+ * @param string $significantLinks
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrimaryImageOfPage($primaryImageOfPage)
+ public function setSignificantLinks($significantLinks)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
];
- $primaryImageOfPage = self::checkTypes($primaryImageOfPage, $types);
+ $significantLinks = self::checkTypes($significantLinks, $types);
- $this->primaryImageOfPage = $primaryImageOfPage;
+ $this->significantLinks = $significantLinks;
}
/**
@@ -251,28 +250,28 @@ public function setReviewedBy($reviewedBy)
}
/**
- * @return \OpenActive\Models\SchemaOrg\WebPageElement|string
+ * @return \OpenActive\Enums\SchemaOrg\Specialty|null
*/
- public function getMainContentOfPage()
+ public function getSpecialty()
{
- return $this->mainContentOfPage;
+ return $this->specialty;
}
/**
- * @param \OpenActive\Models\SchemaOrg\WebPageElement|string $mainContentOfPage
+ * @param \OpenActive\Enums\SchemaOrg\Specialty|null $specialty
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMainContentOfPage($mainContentOfPage)
+ public function setSpecialty($specialty)
{
$types = [
- "\OpenActive\Models\SchemaOrg\WebPageElement",
- "string",
+ "\OpenActive\Enums\SchemaOrg\Specialty",
+ "null",
];
- $mainContentOfPage = self::checkTypes($mainContentOfPage, $types);
+ $specialty = self::checkTypes($specialty, $types);
- $this->mainContentOfPage = $mainContentOfPage;
+ $this->specialty = $specialty;
}
/**
@@ -300,32 +299,32 @@ public function setRelatedLink($relatedLink)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\SpeakableSpecification
+ * @return Date|null
*/
- public function getSpeakable()
+ public function getLastReviewed()
{
- return $this->speakable;
+ return $this->lastReviewed;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\SpeakableSpecification $speakable
+ * @param Date|null $lastReviewed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSpeakable($speakable)
+ public function setLastReviewed($lastReviewed)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\SpeakableSpecification",
+ "Date",
+ "null",
];
- $speakable = self::checkTypes($speakable, $types);
+ $lastReviewed = self::checkTypes($lastReviewed, $types);
- $this->speakable = $speakable;
+ $this->lastReviewed = $lastReviewed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BreadcrumbList|string
+ * @return string|\OpenActive\Models\SchemaOrg\BreadcrumbList
*/
public function getBreadcrumb()
{
@@ -333,15 +332,15 @@ public function getBreadcrumb()
}
/**
- * @param \OpenActive\Models\SchemaOrg\BreadcrumbList|string $breadcrumb
+ * @param string|\OpenActive\Models\SchemaOrg\BreadcrumbList $breadcrumb
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setBreadcrumb($breadcrumb)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BreadcrumbList",
"string",
+ "\OpenActive\Models\SchemaOrg\BreadcrumbList",
];
$breadcrumb = self::checkTypes($breadcrumb, $types);
@@ -350,27 +349,28 @@ public function setBreadcrumb($breadcrumb)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\SpeakableSpecification|string
*/
- public function getSignificantLinks()
+ public function getSpeakable()
{
- return $this->significantLinks;
+ return $this->speakable;
}
/**
- * @param string $significantLinks
+ * @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 setSignificantLinks($significantLinks)
+ public function setSpeakable($speakable)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\SpeakableSpecification",
"string",
];
- $significantLinks = self::checkTypes($significantLinks, $types);
+ $speakable = self::checkTypes($speakable, $types);
- $this->significantLinks = $significantLinks;
+ $this->speakable = $speakable;
}
}
diff --git a/src/Models/SchemaOrg/WorkBasedProgram.php b/src/Models/SchemaOrg/WorkBasedProgram.php
index bbfb2b27..24c84530 100644
--- a/src/Models/SchemaOrg/WorkBasedProgram.php
+++ b/src/Models/SchemaOrg/WorkBasedProgram.php
@@ -17,78 +17,78 @@ public static function getType()
public static function fieldList() {
$fields = [
- "trainingSalary" => "trainingSalary",
"occupationalCategory" => "occupationalCategory",
+ "trainingSalary" => "trainingSalary",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The estimated salary earned while in the program.
+ * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n
+ * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
+ * @var string|\OpenActive\Models\SchemaOrg\CategoryCode
*/
- protected $trainingSalary;
+ protected $occupationalCategory;
/**
- * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n
- * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC.
+ * The estimated salary earned while in the program.
*
*
- * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
*/
- protected $occupationalCategory;
+ protected $trainingSalary;
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
+ * @return 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 \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
*/
- public function getOccupationalCategory()
+ public function getTrainingSalary()
{
- return $this->occupationalCategory;
+ return $this->trainingSalary;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $trainingSalary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationalCategory($occupationalCategory)
+ public function setTrainingSalary($trainingSalary)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCode",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"string",
];
- $occupationalCategory = self::checkTypes($occupationalCategory, $types);
+ $trainingSalary = self::checkTypes($trainingSalary, $types);
- $this->occupationalCategory = $occupationalCategory;
+ $this->trainingSalary = $trainingSalary;
}
}