Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to schema.org v22 #211

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading