Skip to content

Commit

Permalink
Merge pull request #211 from spatie/schema-22
Browse files Browse the repository at this point in the history
upgrade to schema.org v22
  • Loading branch information
Gummibeer authored Jan 11, 2024
2 parents 3a3243d + f448f9f commit d364392
Show file tree
Hide file tree
Showing 13 changed files with 97 additions and 1 deletion.
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/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')) {
Expand Down
14 changes: 14 additions & 0 deletions src/BoatTrip.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
14 changes: 14 additions & 0 deletions src/BusTrip.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Contracts/BoatTripContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,7 @@ public function subTrip($subTrip);

public function subjectOf($subjectOf);

public function tripOrigin($tripOrigin);

public function url($url);
}
2 changes: 2 additions & 0 deletions src/Contracts/BusTripContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@ public function subTrip($subTrip);

public function subjectOf($subjectOf);

public function tripOrigin($tripOrigin);

public function url($url);
}
2 changes: 2 additions & 0 deletions src/Contracts/FlightContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public function subTrip($subTrip);

public function subjectOf($subjectOf);

public function tripOrigin($tripOrigin);

public function url($url);

public function webCheckinTime($webCheckinTime);
Expand Down
2 changes: 2 additions & 0 deletions src/Contracts/TouristTripContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,7 @@ public function subjectOf($subjectOf);

public function touristType($touristType);

public function tripOrigin($tripOrigin);

public function url($url);
}
2 changes: 2 additions & 0 deletions src/Contracts/TrainTripContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,7 @@ public function trainName($trainName);

public function trainNumber($trainNumber);

public function tripOrigin($tripOrigin);

public function url($url);
}
2 changes: 2 additions & 0 deletions src/Contracts/TripContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ public function subTrip($subTrip);

public function subjectOf($subjectOf);

public function tripOrigin($tripOrigin);

public function url($url);
}
14 changes: 14 additions & 0 deletions src/Flight.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
14 changes: 14 additions & 0 deletions src/TouristTrip.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
14 changes: 14 additions & 0 deletions src/TrainTrip.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
14 changes: 14 additions & 0 deletions src/Trip.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit d364392

Please sign in to comment.