diff --git a/generator/Console/GenerateCommand.php b/generator/Console/GenerateCommand.php index cde57feef..139becd0a 100644 --- a/generator/Console/GenerateCommand.php +++ b/generator/Console/GenerateCommand.php @@ -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/21.0/schemaorg-all-https.jsonld', + 'core' => 'https://raw.githubusercontent.com/schemaorg/schemaorg/main/data/releases/22.0/schemaorg-all-https.jsonld', ]); if (! $input->getOption('local')) { diff --git a/src/BoatTrip.php b/src/BoatTrip.php index 15c36ed8f..a978c0b38 100644 --- a/src/BoatTrip.php +++ b/src/BoatTrip.php @@ -345,6 +345,20 @@ public function subjectOf($subjectOf) return $this->setProperty('subjectOf', $subjectOf); } + /** + * The location of origin of the trip, prior to any destination(s). + * + * @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $tripOrigin + * + * @return static + * + * @see https://schema.org/tripOrigin + */ + public function tripOrigin($tripOrigin) + { + return $this->setProperty('tripOrigin', $tripOrigin); + } + /** * URL of the item. * diff --git a/src/BusTrip.php b/src/BusTrip.php index 2307a2a56..3efaef76d 100644 --- a/src/BusTrip.php +++ b/src/BusTrip.php @@ -367,6 +367,20 @@ public function subjectOf($subjectOf) return $this->setProperty('subjectOf', $subjectOf); } + /** + * The location of origin of the trip, prior to any destination(s). + * + * @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $tripOrigin + * + * @return static + * + * @see https://schema.org/tripOrigin + */ + public function tripOrigin($tripOrigin) + { + return $this->setProperty('tripOrigin', $tripOrigin); + } + /** * URL of the item. * diff --git a/src/Contracts/BoatTripContract.php b/src/Contracts/BoatTripContract.php index 188a19882..01d983cfa 100644 --- a/src/Contracts/BoatTripContract.php +++ b/src/Contracts/BoatTripContract.php @@ -44,5 +44,7 @@ public function subTrip($subTrip); public function subjectOf($subjectOf); + public function tripOrigin($tripOrigin); + public function url($url); } diff --git a/src/Contracts/BusTripContract.php b/src/Contracts/BusTripContract.php index 2120843b1..c5a6c51f8 100644 --- a/src/Contracts/BusTripContract.php +++ b/src/Contracts/BusTripContract.php @@ -48,5 +48,7 @@ public function subTrip($subTrip); public function subjectOf($subjectOf); + public function tripOrigin($tripOrigin); + public function url($url); } diff --git a/src/Contracts/FlightContract.php b/src/Contracts/FlightContract.php index 161bee1f7..c358a61d3 100644 --- a/src/Contracts/FlightContract.php +++ b/src/Contracts/FlightContract.php @@ -68,6 +68,8 @@ public function subTrip($subTrip); public function subjectOf($subjectOf); + public function tripOrigin($tripOrigin); + public function url($url); public function webCheckinTime($webCheckinTime); diff --git a/src/Contracts/TouristTripContract.php b/src/Contracts/TouristTripContract.php index 64e55410e..737eef7f7 100644 --- a/src/Contracts/TouristTripContract.php +++ b/src/Contracts/TouristTripContract.php @@ -42,5 +42,7 @@ public function subjectOf($subjectOf); public function touristType($touristType); + public function tripOrigin($tripOrigin); + public function url($url); } diff --git a/src/Contracts/TrainTripContract.php b/src/Contracts/TrainTripContract.php index e550cf0a2..ddf25c19a 100644 --- a/src/Contracts/TrainTripContract.php +++ b/src/Contracts/TrainTripContract.php @@ -52,5 +52,7 @@ public function trainName($trainName); public function trainNumber($trainNumber); + public function tripOrigin($tripOrigin); + public function url($url); } diff --git a/src/Contracts/TripContract.php b/src/Contracts/TripContract.php index a52ed1eed..643c1bc60 100644 --- a/src/Contracts/TripContract.php +++ b/src/Contracts/TripContract.php @@ -40,5 +40,7 @@ public function subTrip($subTrip); public function subjectOf($subjectOf); + public function tripOrigin($tripOrigin); + public function url($url); } diff --git a/src/Flight.php b/src/Flight.php index 35134c859..5425164c0 100644 --- a/src/Flight.php +++ b/src/Flight.php @@ -512,6 +512,20 @@ public function subjectOf($subjectOf) return $this->setProperty('subjectOf', $subjectOf); } + /** + * The location of origin of the trip, prior to any destination(s). + * + * @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $tripOrigin + * + * @return static + * + * @see https://schema.org/tripOrigin + */ + public function tripOrigin($tripOrigin) + { + return $this->setProperty('tripOrigin', $tripOrigin); + } + /** * URL of the item. * diff --git a/src/TouristTrip.php b/src/TouristTrip.php index e2cb5a532..0960dd467 100644 --- a/src/TouristTrip.php +++ b/src/TouristTrip.php @@ -333,6 +333,20 @@ public function touristType($touristType) return $this->setProperty('touristType', $touristType); } + /** + * The location of origin of the trip, prior to any destination(s). + * + * @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $tripOrigin + * + * @return static + * + * @see https://schema.org/tripOrigin + */ + public function tripOrigin($tripOrigin) + { + return $this->setProperty('tripOrigin', $tripOrigin); + } + /** * URL of the item. * diff --git a/src/TrainTrip.php b/src/TrainTrip.php index fc86176c7..c06a1f79d 100644 --- a/src/TrainTrip.php +++ b/src/TrainTrip.php @@ -395,6 +395,20 @@ public function trainNumber($trainNumber) return $this->setProperty('trainNumber', $trainNumber); } + /** + * The location of origin of the trip, prior to any destination(s). + * + * @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $tripOrigin + * + * @return static + * + * @see https://schema.org/tripOrigin + */ + public function tripOrigin($tripOrigin) + { + return $this->setProperty('tripOrigin', $tripOrigin); + } + /** * URL of the item. * diff --git a/src/Trip.php b/src/Trip.php index 0fd748b09..ce59e9d69 100644 --- a/src/Trip.php +++ b/src/Trip.php @@ -310,6 +310,20 @@ public function subjectOf($subjectOf) return $this->setProperty('subjectOf', $subjectOf); } + /** + * The location of origin of the trip, prior to any destination(s). + * + * @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $tripOrigin + * + * @return static + * + * @see https://schema.org/tripOrigin + */ + public function tripOrigin($tripOrigin) + { + return $this->setProperty('tripOrigin', $tripOrigin); + } + /** * URL of the item. *