Skip to content

Commit

Permalink
Merge pull request #212 from spatie/schema-23
Browse files Browse the repository at this point in the history
upgrade to schema.org v23
  • Loading branch information
Gummibeer authored Jan 11, 2024
2 parents d364392 + dc85f9c commit 63a4bd3
Show file tree
Hide file tree
Showing 1,059 changed files with 4,950 additions and 1,555 deletions.
2 changes: 1 addition & 1 deletion generator/Console/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$generator = new PackageGenerator();

$definitions = new Definitions([
'core' => 'https://raw.githubusercontent.com/schemaorg/schemaorg/main/data/releases/22.0/schemaorg-all-https.jsonld',
'core' => 'https://raw.githubusercontent.com/schemaorg/schemaorg/main/data/releases/23.0/schemaorg-all-https.jsonld',
]);

if (! $input->getOption('local')) {
Expand Down
2 changes: 1 addition & 1 deletion src/AMRadioChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class AMRadioChannel extends BaseType implements AMRadioChannelContract, Broadca
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down
6 changes: 3 additions & 3 deletions src/APIReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function accessibilityHazard($accessibilityHazard)
* 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."
* are present and no long descriptions are needed".
*
* @param string|string[] $accessibilitySummary
*
Expand Down Expand Up @@ -209,7 +209,7 @@ public function acquireLicensePage($acquireLicensePage)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down Expand Up @@ -1838,7 +1838,7 @@ public function schemaVersion($schemaVersion)

/**
* Indicates the date on which the current structured data was generated /
* published. Typically used alongside [[sdPublisher]]
* published. Typically used alongside [[sdPublisher]].
*
* @param \DateTimeInterface|\DateTimeInterface[] $sdDatePublished
*
Expand Down
6 changes: 3 additions & 3 deletions src/AboutPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function accessibilityHazard($accessibilityHazard)
* 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."
* are present and no long descriptions are needed".
*
* @param string|string[] $accessibilitySummary
*
Expand Down Expand Up @@ -208,7 +208,7 @@ public function acquireLicensePage($acquireLicensePage)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down Expand Up @@ -1747,7 +1747,7 @@ public function schemaVersion($schemaVersion)

/**
* Indicates the date on which the current structured data was generated /
* published. Typically used alongside [[sdPublisher]]
* published. Typically used alongside [[sdPublisher]].
*
* @param \DateTimeInterface|\DateTimeInterface[] $sdDatePublished
*
Expand Down
2 changes: 1 addition & 1 deletion src/AcceptAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function actionStatus($actionStatus)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down
8 changes: 4 additions & 4 deletions src/Accommodation.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function additionalProperty($additionalProperty)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down Expand Up @@ -341,7 +341,7 @@ public function floorLevel($floorLevel)
/**
* 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
* for square yard.
*
* @param \Spatie\SchemaOrg\Contracts\QuantitativeValueContract|\Spatie\SchemaOrg\Contracts\QuantitativeValueContract[] $floorSize
*
Expand Down Expand Up @@ -899,7 +899,7 @@ public function numberOfRooms($numberOfRooms)
* infants etc). For individual accommodations, this is not necessarily the
* legal maximum but defines the permitted usage as per the contractual
* agreement (e.g. a double room used by a single person).
* Typical unit code(s): C62 for person
* Typical unit code(s): C62 for person.
*
* @param \Spatie\SchemaOrg\Contracts\QuantitativeValueContract|\Spatie\SchemaOrg\Contracts\QuantitativeValueContract[] $occupancy
*
Expand Down Expand Up @@ -1000,7 +1000,7 @@ public function potentialAction($potentialAction)

/**
* A flag to signal that the [[Place]] is open to public visitors. If this
* property is omitted there is no assumed default boolean value
* property is omitted there is no assumed default boolean value.
*
* @param bool|bool[] $publicAccess
*
Expand Down
22 changes: 20 additions & 2 deletions src/AccountingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function additionalProperty($additionalProperty)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand All @@ -98,6 +98,24 @@ public function address($address)
return $this->setProperty('address', $address);
}

/**
* The number of completed interactions for this entity, in a particular
* role (the 'agent'), in a particular action (indicated in the statistic),
* and in a particular context (i.e. interactionService).
*
* @param \Spatie\SchemaOrg\Contracts\InteractionCounterContract|\Spatie\SchemaOrg\Contracts\InteractionCounterContract[] $agentInteractionStatistic
*
* @return static
*
* @see https://schema.org/agentInteractionStatistic
* @see https://pending.schema.org
* @link https://github.com/schemaorg/schemaorg/issues/2858
*/
public function agentInteractionStatistic($agentInteractionStatistic)
{
return $this->setProperty('agentInteractionStatistic', $agentInteractionStatistic);
}

/**
* The overall rating, based on a collection of reviews or ratings, of the
* item.
Expand Down Expand Up @@ -1582,7 +1600,7 @@ public function priceRange($priceRange)

/**
* A flag to signal that the [[Place]] is open to public visitors. If this
* property is omitted there is no assumed default boolean value
* property is omitted there is no assumed default boolean value.
*
* @param bool|bool[] $publicAccess
*
Expand Down
2 changes: 1 addition & 1 deletion src/AchieveAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function actionStatus($actionStatus)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down
2 changes: 1 addition & 1 deletion src/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function actionStatus($actionStatus)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down
2 changes: 1 addition & 1 deletion src/ActionAccessSpecification.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ActionAccessSpecification extends BaseType implements ActionAccessSpecific
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down
2 changes: 1 addition & 1 deletion src/ActionStatusType.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ActionStatusType extends BaseType implements ActionStatusTypeContract, Enu
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down
2 changes: 1 addition & 1 deletion src/ActivateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function actionStatus($actionStatus)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down
2 changes: 1 addition & 1 deletion src/AddAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function actionStatus($actionStatus)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down
4 changes: 2 additions & 2 deletions src/AdministrativeArea.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function additionalProperty($additionalProperty)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down Expand Up @@ -748,7 +748,7 @@ public function potentialAction($potentialAction)

/**
* A flag to signal that the [[Place]] is open to public visitors. If this
* property is omitted there is no assumed default boolean value
* property is omitted there is no assumed default boolean value.
*
* @param bool|bool[] $publicAccess
*
Expand Down
22 changes: 20 additions & 2 deletions src/AdultEntertainment.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function additionalProperty($additionalProperty)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand All @@ -95,6 +95,24 @@ public function address($address)
return $this->setProperty('address', $address);
}

/**
* The number of completed interactions for this entity, in a particular
* role (the 'agent'), in a particular action (indicated in the statistic),
* and in a particular context (i.e. interactionService).
*
* @param \Spatie\SchemaOrg\Contracts\InteractionCounterContract|\Spatie\SchemaOrg\Contracts\InteractionCounterContract[] $agentInteractionStatistic
*
* @return static
*
* @see https://schema.org/agentInteractionStatistic
* @see https://pending.schema.org
* @link https://github.com/schemaorg/schemaorg/issues/2858
*/
public function agentInteractionStatistic($agentInteractionStatistic)
{
return $this->setProperty('agentInteractionStatistic', $agentInteractionStatistic);
}

/**
* The overall rating, based on a collection of reviews or ratings, of the
* item.
Expand Down Expand Up @@ -1564,7 +1582,7 @@ public function priceRange($priceRange)

/**
* A flag to signal that the [[Place]] is open to public visitors. If this
* property is omitted there is no assumed default boolean value
* property is omitted there is no assumed default boolean value.
*
* @param bool|bool[] $publicAccess
*
Expand Down
2 changes: 1 addition & 1 deletion src/AdultOrientedEnumeration.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class AdultOrientedEnumeration extends BaseType implements AdultOrientedEnumerat
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down
6 changes: 3 additions & 3 deletions src/AdvertiserContentArticle.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function accessibilityHazard($accessibilityHazard)
* 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."
* are present and no long descriptions are needed".
*
* @param string|string[] $accessibilitySummary
*
Expand Down Expand Up @@ -213,7 +213,7 @@ public function acquireLicensePage($acquireLicensePage)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down Expand Up @@ -1757,7 +1757,7 @@ public function schemaVersion($schemaVersion)

/**
* Indicates the date on which the current structured data was generated /
* published. Typically used alongside [[sdPublisher]]
* published. Typically used alongside [[sdPublisher]].
*
* @param \DateTimeInterface|\DateTimeInterface[] $sdDatePublished
*
Expand Down
2 changes: 1 addition & 1 deletion src/AggregateOffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function addOn($addOn)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down
2 changes: 1 addition & 1 deletion src/AggregateRating.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AggregateRating extends BaseType implements AggregateRatingContract, Intan
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down
2 changes: 1 addition & 1 deletion src/AgreeAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function actionStatus($actionStatus)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down
20 changes: 19 additions & 1 deletion src/Airline.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function actionableFeedbackPolicy($actionableFeedbackPolicy)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand All @@ -70,6 +70,24 @@ public function address($address)
return $this->setProperty('address', $address);
}

/**
* The number of completed interactions for this entity, in a particular
* role (the 'agent'), in a particular action (indicated in the statistic),
* and in a particular context (i.e. interactionService).
*
* @param \Spatie\SchemaOrg\Contracts\InteractionCounterContract|\Spatie\SchemaOrg\Contracts\InteractionCounterContract[] $agentInteractionStatistic
*
* @return static
*
* @see https://schema.org/agentInteractionStatistic
* @see https://pending.schema.org
* @link https://github.com/schemaorg/schemaorg/issues/2858
*/
public function agentInteractionStatistic($agentInteractionStatistic)
{
return $this->setProperty('agentInteractionStatistic', $agentInteractionStatistic);
}

/**
* The overall rating, based on a collection of reviews or ratings, of the
* item.
Expand Down
4 changes: 2 additions & 2 deletions src/Airport.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function additionalProperty($additionalProperty)
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down Expand Up @@ -803,7 +803,7 @@ public function potentialAction($potentialAction)

/**
* A flag to signal that the [[Place]] is open to public visitors. If this
* property is omitted there is no assumed default boolean value
* property is omitted there is no assumed default boolean value.
*
* @param bool|bool[] $publicAccess
*
Expand Down
2 changes: 1 addition & 1 deletion src/AlignmentObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AlignmentObject extends BaseType implements AlignmentObjectContract, Intan
* 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](https://schema.org/docs/styleguide.html)
* guide](https://schema.org/docs/styleguide.html).
*
* @param string|string[] $additionalType
*
Expand Down
Loading

0 comments on commit 63a4bd3

Please sign in to comment.