From e2a191b98c0351ac2622754ef09d802762a5799f Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Mon, 20 Jan 2020 10:44:14 +0100 Subject: [PATCH 1/2] generate types --- src/APIReference.php | 2 +- src/AboutPage.php | 2 +- src/AggregateOffer.php | 5 + src/Answer.php | 2 +- src/Article.php | 2 +- src/AudioObject.php | 2 +- src/Barcode.php | 2 +- src/Blog.php | 2 +- src/BlogPosting.php | 2 +- src/Book.php | 2 +- src/BookSeries.php | 2 +- src/CheckoutPage.php | 2 +- src/ClaimReview.php | 2 +- src/Clip.php | 2 +- src/Code.php | 2 +- src/CollectionPage.php | 2 +- src/Comment.php | 2 +- src/ContactPage.php | 2 +- src/Contracts/CreditCardContract.php | 89 -- src/Contracts/JobPostingContract.php | 4 - src/Contracts/LockerDeliveryContract.php | 31 - src/Contracts/MediaGalleryContract.php | 221 +++ src/Contracts/OccupationContract.php | 2 - src/Contracts/ParcelServiceContract.php | 31 - src/Contracts/PaymentCardContract.php | 83 -- src/Conversation.php | 2 +- src/Course.php | 2 +- src/CreativeWork.php | 2 +- src/CreativeWorkSeason.php | 2 +- src/CreativeWorkSeries.php | 2 +- src/CreditCard.php | 653 --------- src/DataCatalog.php | 2 +- src/DataDownload.php | 2 +- src/DataFeed.php | 2 +- src/Dataset.php | 2 +- src/DeliveryMethod.php | 21 + src/DigitalDocument.php | 2 +- src/DiscussionForumPosting.php | 2 +- src/EmailMessage.php | 2 +- src/Episode.php | 2 +- src/FAQPage.php | 2 +- src/Game.php | 2 +- src/HowTo.php | 2 +- src/HowToDirection.php | 2 +- src/HowToSection.php | 2 +- src/HowToStep.php | 2 +- src/HowToTip.php | 2 +- src/ImageGallery.php | 5 +- src/ImageObject.php | 2 +- src/ItemPage.php | 2 +- src/JobPosting.php | 30 +- src/LiveBlogPosting.php | 2 +- src/LockerDelivery.php | 205 --- src/Map.php | 2 +- src/MediaGallery.php | 1700 ++++++++++++++++++++++ src/MediaObject.php | 2 +- src/Menu.php | 2 +- src/MenuItem.php | 2 +- src/MenuSection.php | 2 +- src/Message.php | 2 +- src/MobileApplication.php | 2 +- src/Movie.php | 2 +- src/MovieClip.php | 2 +- src/MovieSeries.php | 2 +- src/MusicAlbum.php | 2 +- src/MusicComposition.php | 2 +- src/MusicPlaylist.php | 2 +- src/MusicRecording.php | 2 +- src/MusicRelease.php | 2 +- src/MusicVideoObject.php | 2 +- src/NewsArticle.php | 2 +- src/NoteDigitalDocument.php | 2 +- src/Occupation.php | 15 +- src/Offer.php | 5 + src/Painting.php | 2 +- src/ParcelService.php | 211 --- src/PaymentCard.php | 598 -------- src/PaymentMethod.php | 8 + src/Periodical.php | 2 +- src/Photograph.php | 2 +- src/PresentationDigitalDocument.php | 2 +- src/ProfilePage.php | 2 +- src/PublicationIssue.php | 2 +- src/PublicationVolume.php | 2 +- src/QAPage.php | 2 +- src/Question.php | 2 +- src/RadioClip.php | 2 +- src/RadioEpisode.php | 2 +- src/RadioSeason.php | 2 +- src/RadioSeries.php | 4 +- src/Recipe.php | 2 +- src/Report.php | 2 +- src/Review.php | 2 +- src/Schema.php | 25 +- src/ScholarlyArticle.php | 2 +- src/Sculpture.php | 2 +- src/SearchResultsPage.php | 2 +- src/Season.php | 2 +- src/SiteNavigationElement.php | 2 +- src/SocialMediaPosting.php | 2 +- src/SoftwareApplication.php | 2 +- src/SoftwareSourceCode.php | 2 +- src/SpreadsheetDigitalDocument.php | 2 +- src/TVClip.php | 2 +- src/TVEpisode.php | 2 +- src/TVSeason.php | 2 +- src/TVSeries.php | 4 +- src/Table.php | 2 +- src/TechArticle.php | 2 +- src/TextDigitalDocument.php | 2 +- src/VideoGallery.php | 5 +- src/VideoGame.php | 2 +- src/VideoGameClip.php | 2 +- src/VideoGameSeries.php | 4 +- src/VideoObject.php | 2 +- src/VisualArtwork.php | 2 +- src/WPAdBlock.php | 2 +- src/WPFooter.php | 2 +- src/WPHeader.php | 2 +- src/WPSideBar.php | 2 +- src/WebApplication.php | 2 +- src/WebPage.php | 2 +- src/WebPageElement.php | 2 +- src/WebSite.php | 2 +- 124 files changed, 2080 insertions(+), 2079 deletions(-) delete mode 100644 src/Contracts/CreditCardContract.php delete mode 100644 src/Contracts/LockerDeliveryContract.php create mode 100644 src/Contracts/MediaGalleryContract.php delete mode 100644 src/Contracts/ParcelServiceContract.php delete mode 100644 src/Contracts/PaymentCardContract.php delete mode 100644 src/CreditCard.php delete mode 100644 src/LockerDelivery.php create mode 100644 src/MediaGallery.php delete mode 100644 src/ParcelService.php delete mode 100644 src/PaymentCard.php diff --git a/src/APIReference.php b/src/APIReference.php index 606335bd3..188a122dd 100644 --- a/src/APIReference.php +++ b/src/APIReference.php @@ -984,7 +984,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/AboutPage.php b/src/AboutPage.php index b98a9536f..a8921cb3e 100644 --- a/src/AboutPage.php +++ b/src/AboutPage.php @@ -913,7 +913,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/AggregateOffer.php b/src/AggregateOffer.php index c80a49d70..fa8331365 100644 --- a/src/AggregateOffer.php +++ b/src/AggregateOffer.php @@ -11,6 +11,11 @@ * When a single product is associated with multiple offers (for example, the * same pair of shoes is offered by different merchants), then AggregateOffer * can be used. + * + * Note: AggregateOffers are normally expected to associate multiple offers that + * all share the same defined [[businessFunction]] value, or default to + * http://purl.org/goodrelations/v1#Sell if businessFunction is not explicitly + * defined. * * @see http://schema.org/AggregateOffer * diff --git a/src/Answer.php b/src/Answer.php index aed3adf51..74ef76154 100644 --- a/src/Answer.php +++ b/src/Answer.php @@ -914,7 +914,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Article.php b/src/Article.php index 76934303b..869f59f2e 100644 --- a/src/Article.php +++ b/src/Article.php @@ -931,7 +931,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/AudioObject.php b/src/AudioObject.php index 869f6fa8b..647c29e8d 100644 --- a/src/AudioObject.php +++ b/src/AudioObject.php @@ -1053,7 +1053,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Barcode.php b/src/Barcode.php index db5862c98..9a846985c 100644 --- a/src/Barcode.php +++ b/src/Barcode.php @@ -1068,7 +1068,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Blog.php b/src/Blog.php index b54b01491..9fbbf2f11 100644 --- a/src/Blog.php +++ b/src/Blog.php @@ -925,7 +925,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/BlogPosting.php b/src/BlogPosting.php index e1fe3b579..8d66d687e 100644 --- a/src/BlogPosting.php +++ b/src/BlogPosting.php @@ -928,7 +928,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Book.php b/src/Book.php index dec6dd24c..d233a503e 100644 --- a/src/Book.php +++ b/src/Book.php @@ -939,7 +939,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/BookSeries.php b/src/BookSeries.php index c4061e98c..9f7ba736e 100644 --- a/src/BookSeries.php +++ b/src/BookSeries.php @@ -931,7 +931,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/CheckoutPage.php b/src/CheckoutPage.php index 2f8b33a1e..94c7c1228 100644 --- a/src/CheckoutPage.php +++ b/src/CheckoutPage.php @@ -913,7 +913,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/ClaimReview.php b/src/ClaimReview.php index 425647e9b..902bc529d 100644 --- a/src/ClaimReview.php +++ b/src/ClaimReview.php @@ -913,7 +913,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Clip.php b/src/Clip.php index daada170a..cf2e8c05c 100644 --- a/src/Clip.php +++ b/src/Clip.php @@ -973,7 +973,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Code.php b/src/Code.php index 11089884a..5ca9056fc 100644 --- a/src/Code.php +++ b/src/Code.php @@ -898,7 +898,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/CollectionPage.php b/src/CollectionPage.php index cd7b3c0e8..46ae4cd69 100644 --- a/src/CollectionPage.php +++ b/src/CollectionPage.php @@ -913,7 +913,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Comment.php b/src/Comment.php index e5016f4f0..24853df5c 100644 --- a/src/Comment.php +++ b/src/Comment.php @@ -914,7 +914,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/ContactPage.php b/src/ContactPage.php index bd525ec6b..8d2734c4f 100644 --- a/src/ContactPage.php +++ b/src/ContactPage.php @@ -913,7 +913,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Contracts/CreditCardContract.php b/src/Contracts/CreditCardContract.php deleted file mode 100644 index d68c2ff7a..000000000 --- a/src/Contracts/CreditCardContract.php +++ /dev/null @@ -1,89 +0,0 @@ -setProperty('additionalType', $additionalType); - } - - /** - * The overall rating, based on a collection of reviews or ratings, of the - * item. - * - * @param \Spatie\SchemaOrg\Contracts\AggregateRatingContract|\Spatie\SchemaOrg\Contracts\AggregateRatingContract[] $aggregateRating - * - * @return static - * - * @see http://schema.org/aggregateRating - */ - public function aggregateRating($aggregateRating) - { - return $this->setProperty('aggregateRating', $aggregateRating); - } - - /** - * An alias for the item. - * - * @param string|string[] $alternateName - * - * @return static - * - * @see http://schema.org/alternateName - */ - public function alternateName($alternateName) - { - return $this->setProperty('alternateName', $alternateName); - } - - /** - * The amount of money. - * - * @param \Spatie\SchemaOrg\Contracts\MonetaryAmountContract|\Spatie\SchemaOrg\Contracts\MonetaryAmountContract[]|float|float[]|int|int[] $amount - * - * @return static - * - * @see http://schema.org/amount - */ - public function amount($amount) - { - return $this->setProperty('amount', $amount); - } - - /** - * 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. - * - * @param \Spatie\SchemaOrg\Contracts\QuantitativeValueContract|\Spatie\SchemaOrg\Contracts\QuantitativeValueContract[]|float|float[]|int|int[] $annualPercentageRate - * - * @return static - * - * @see http://schema.org/annualPercentageRate - */ - public function annualPercentageRate($annualPercentageRate) - { - return $this->setProperty('annualPercentageRate', $annualPercentageRate); - } - - /** - * The geographic area where a service or offered item is provided. - * - * @param \Spatie\SchemaOrg\Contracts\AdministrativeAreaContract|\Spatie\SchemaOrg\Contracts\AdministrativeAreaContract[]|\Spatie\SchemaOrg\Contracts\GeoShapeContract|\Spatie\SchemaOrg\Contracts\GeoShapeContract[]|\Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[]|string|string[] $areaServed - * - * @return static - * - * @see http://schema.org/areaServed - */ - public function areaServed($areaServed) - { - return $this->setProperty('areaServed', $areaServed); - } - - /** - * An intended audience, i.e. a group for whom something was created. - * - * @param \Spatie\SchemaOrg\Contracts\AudienceContract|\Spatie\SchemaOrg\Contracts\AudienceContract[] $audience - * - * @return static - * - * @see http://schema.org/audience - */ - public function audience($audience) - { - return $this->setProperty('audience', $audience); - } - - /** - * A means of accessing the service (e.g. a phone bank, a web site, a - * location, etc.). - * - * @param \Spatie\SchemaOrg\Contracts\ServiceChannelContract|\Spatie\SchemaOrg\Contracts\ServiceChannelContract[] $availableChannel - * - * @return static - * - * @see http://schema.org/availableChannel - */ - public function availableChannel($availableChannel) - { - return $this->setProperty('availableChannel', $availableChannel); - } - - /** - * An award won by or for this item. - * - * @param string|string[] $award - * - * @return static - * - * @see http://schema.org/award - */ - public function award($award) - { - return $this->setProperty('award', $award); - } - - /** - * The brand(s) associated with a product or service, or the brand(s) - * maintained by an organization or business person. - * - * @param \Spatie\SchemaOrg\Contracts\BrandContract|\Spatie\SchemaOrg\Contracts\BrandContract[]|\Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[] $brand - * - * @return static - * - * @see http://schema.org/brand - */ - public function brand($brand) - { - return $this->setProperty('brand', $brand); - } - - /** - * 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. - * - * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $broker - * - * @return static - * - * @see http://schema.org/broker - */ - public function broker($broker) - { - return $this->setProperty('broker', $broker); - } - - /** - * A category for the item. Greater signs or slashes can be used to - * informally indicate a category hierarchy. - * - * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[]|string|string[] $category - * - * @return static - * - * @see http://schema.org/category - */ - public function category($category) - { - return $this->setProperty('category', $category); - } - - /** - * A description of the item. - * - * @param string|string[] $description - * - * @return static - * - * @see http://schema.org/description - */ - public function description($description) - { - return $this->setProperty('description', $description); - } - - /** - * 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. - * - * @param string|string[] $disambiguatingDescription - * - * @return static - * - * @see http://schema.org/disambiguatingDescription - */ - public function disambiguatingDescription($disambiguatingDescription) - { - return $this->setProperty('disambiguatingDescription', $disambiguatingDescription); - } - - /** - * Description of fees, commissions, and other terms applied either to a - * class of financial product, or by a financial service organization. - * - * @param string|string[] $feesAndCommissionsSpecification - * - * @return static - * - * @see http://schema.org/feesAndCommissionsSpecification - */ - public function feesAndCommissionsSpecification($feesAndCommissionsSpecification) - { - return $this->setProperty('feesAndCommissionsSpecification', $feesAndCommissionsSpecification); - } - - /** - * Indicates an OfferCatalog listing for this Organization, Person, or - * Service. - * - * @param \Spatie\SchemaOrg\Contracts\OfferCatalogContract|\Spatie\SchemaOrg\Contracts\OfferCatalogContract[] $hasOfferCatalog - * - * @return static - * - * @see http://schema.org/hasOfferCatalog - */ - public function hasOfferCatalog($hasOfferCatalog) - { - return $this->setProperty('hasOfferCatalog', $hasOfferCatalog); - } - - /** - * The hours during which this service or contact is available. - * - * @param \Spatie\SchemaOrg\Contracts\OpeningHoursSpecificationContract|\Spatie\SchemaOrg\Contracts\OpeningHoursSpecificationContract[] $hoursAvailable - * - * @return static - * - * @see http://schema.org/hoursAvailable - */ - public function hoursAvailable($hoursAvailable) - { - return $this->setProperty('hoursAvailable', $hoursAvailable); - } - - /** - * The identifier property represents any kind of identifier for any kind of - * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides - * dedicated properties for representing many of these, either as textual - * strings or as URL (URI) links. See [background - * notes](/docs/datamodel.html#identifierBg) for more details. - * - * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier - * - * @return static - * - * @see http://schema.org/identifier - */ - public function identifier($identifier) - { - return $this->setProperty('identifier', $identifier); - } - - /** - * An image of the item. This can be a [[URL]] or a fully described - * [[ImageObject]]. - * - * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image - * - * @return static - * - * @see http://schema.org/image - */ - public function image($image) - { - return $this->setProperty('image', $image); - } - - /** - * The interest rate, charged or paid, applicable to the financial product. - * Note: This is different from the calculated annualPercentageRate. - * - * @param \Spatie\SchemaOrg\Contracts\QuantitativeValueContract|\Spatie\SchemaOrg\Contracts\QuantitativeValueContract[]|float|float[]|int|int[] $interestRate - * - * @return static - * - * @see http://schema.org/interestRate - */ - public function interestRate($interestRate) - { - return $this->setProperty('interestRate', $interestRate); - } - - /** - * A pointer to another, somehow related product (or multiple products). - * - * @param \Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[]|\Spatie\SchemaOrg\Contracts\ServiceContract|\Spatie\SchemaOrg\Contracts\ServiceContract[] $isRelatedTo - * - * @return static - * - * @see http://schema.org/isRelatedTo - */ - public function isRelatedTo($isRelatedTo) - { - return $this->setProperty('isRelatedTo', $isRelatedTo); - } - - /** - * A pointer to another, functionally similar product (or multiple - * products). - * - * @param \Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[]|\Spatie\SchemaOrg\Contracts\ServiceContract|\Spatie\SchemaOrg\Contracts\ServiceContract[] $isSimilarTo - * - * @return static - * - * @see http://schema.org/isSimilarTo - */ - public function isSimilarTo($isSimilarTo) - { - return $this->setProperty('isSimilarTo', $isSimilarTo); - } - - /** - * The duration of the loan or credit agreement. - * - * @param \Spatie\SchemaOrg\Contracts\QuantitativeValueContract|\Spatie\SchemaOrg\Contracts\QuantitativeValueContract[] $loanTerm - * - * @return static - * - * @see http://schema.org/loanTerm - */ - public function loanTerm($loanTerm) - { - return $this->setProperty('loanTerm', $loanTerm); - } - - /** - * An associated logo. - * - * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $logo - * - * @return static - * - * @see http://schema.org/logo - */ - public function logo($logo) - { - return $this->setProperty('logo', $logo); - } - - /** - * 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. - * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage - * - * @return static - * - * @see http://schema.org/mainEntityOfPage - */ - public function mainEntityOfPage($mainEntityOfPage) - { - return $this->setProperty('mainEntityOfPage', $mainEntityOfPage); - } - - /** - * The name of the item. - * - * @param string|string[] $name - * - * @return static - * - * @see http://schema.org/name - */ - public function name($name) - { - return $this->setProperty('name', $name); - } - - /** - * 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. - * - * @param \Spatie\SchemaOrg\Contracts\DemandContract|\Spatie\SchemaOrg\Contracts\DemandContract[]|\Spatie\SchemaOrg\Contracts\OfferContract|\Spatie\SchemaOrg\Contracts\OfferContract[] $offers - * - * @return static - * - * @see http://schema.org/offers - */ - public function offers($offers) - { - return $this->setProperty('offers', $offers); - } - - /** - * Indicates a potential Action, which describes an idealized action in - * which this thing would play an 'object' role. - * - * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction - * - * @return static - * - * @see http://schema.org/potentialAction - */ - public function potentialAction($potentialAction) - { - return $this->setProperty('potentialAction', $potentialAction); - } - - /** - * The tangible thing generated by the service, e.g. a passport, permit, - * etc. - * - * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $produces - * - * @return static - * - * @see http://schema.org/produces - */ - public function produces($produces) - { - return $this->setProperty('produces', $produces); - } - - /** - * 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. - * - * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $provider - * - * @return static - * - * @see http://schema.org/provider - */ - public function provider($provider) - { - return $this->setProperty('provider', $provider); - } - - /** - * Indicates the mobility of a provided service (e.g. 'static', 'dynamic'). - * - * @param string|string[] $providerMobility - * - * @return static - * - * @see http://schema.org/providerMobility - */ - public function providerMobility($providerMobility) - { - return $this->setProperty('providerMobility', $providerMobility); - } - - /** - * Assets required to secure loan or credit repayments. It may take form of - * third party pledge, goods, financial instruments (cash, securities, etc.) - * - * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[]|string|string[] $requiredCollateral - * - * @return static - * - * @see http://schema.org/requiredCollateral - */ - public function requiredCollateral($requiredCollateral) - { - return $this->setProperty('requiredCollateral', $requiredCollateral); - } - - /** - * A review of the item. - * - * @param \Spatie\SchemaOrg\Contracts\ReviewContract|\Spatie\SchemaOrg\Contracts\ReviewContract[] $review - * - * @return static - * - * @see http://schema.org/review - */ - public function review($review) - { - return $this->setProperty('review', $review); - } - - /** - * 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. - * - * @param string|string[] $sameAs - * - * @return static - * - * @see http://schema.org/sameAs - */ - public function sameAs($sameAs) - { - return $this->setProperty('sameAs', $sameAs); - } - - /** - * The geographic area where the service is provided. - * - * @param \Spatie\SchemaOrg\Contracts\AdministrativeAreaContract|\Spatie\SchemaOrg\Contracts\AdministrativeAreaContract[]|\Spatie\SchemaOrg\Contracts\GeoShapeContract|\Spatie\SchemaOrg\Contracts\GeoShapeContract[]|\Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $serviceArea - * - * @return static - * - * @see http://schema.org/serviceArea - */ - public function serviceArea($serviceArea) - { - return $this->setProperty('serviceArea', $serviceArea); - } - - /** - * The audience eligible for this service. - * - * @param \Spatie\SchemaOrg\Contracts\AudienceContract|\Spatie\SchemaOrg\Contracts\AudienceContract[] $serviceAudience - * - * @return static - * - * @see http://schema.org/serviceAudience - */ - public function serviceAudience($serviceAudience) - { - return $this->setProperty('serviceAudience', $serviceAudience); - } - - /** - * The tangible thing generated by the service, e.g. a passport, permit, - * etc. - * - * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $serviceOutput - * - * @return static - * - * @see http://schema.org/serviceOutput - */ - public function serviceOutput($serviceOutput) - { - return $this->setProperty('serviceOutput', $serviceOutput); - } - - /** - * The type of service being offered, e.g. veterans' benefits, emergency - * relief, etc. - * - * @param string|string[] $serviceType - * - * @return static - * - * @see http://schema.org/serviceType - */ - public function serviceType($serviceType) - { - return $this->setProperty('serviceType', $serviceType); - } - - /** - * A slogan or motto associated with the item. - * - * @param string|string[] $slogan - * - * @return static - * - * @see http://schema.org/slogan - */ - public function slogan($slogan) - { - return $this->setProperty('slogan', $slogan); - } - - /** - * A CreativeWork or Event about this Thing. - * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf - * - * @return static - * - * @see http://schema.org/subjectOf - */ - public function subjectOf($subjectOf) - { - return $this->setProperty('subjectOf', $subjectOf); - } - - /** - * URL of the item. - * - * @param string|string[] $url - * - * @return static - * - * @see http://schema.org/url - */ - public function url($url) - { - return $this->setProperty('url', $url); - } - -} diff --git a/src/DataCatalog.php b/src/DataCatalog.php index 614672820..c65142fff 100644 --- a/src/DataCatalog.php +++ b/src/DataCatalog.php @@ -911,7 +911,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/DataDownload.php b/src/DataDownload.php index 167336e7a..3abd2a687 100644 --- a/src/DataDownload.php +++ b/src/DataDownload.php @@ -1037,7 +1037,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/DataFeed.php b/src/DataFeed.php index f935596f4..cd328bc08 100644 --- a/src/DataFeed.php +++ b/src/DataFeed.php @@ -986,7 +986,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Dataset.php b/src/Dataset.php index e882808bd..48b7499e4 100644 --- a/src/Dataset.php +++ b/src/Dataset.php @@ -970,7 +970,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/DeliveryMethod.php b/src/DeliveryMethod.php index 8efd595ec..705276948 100644 --- a/src/DeliveryMethod.php +++ b/src/DeliveryMethod.php @@ -30,6 +30,13 @@ */ class DeliveryMethod extends BaseType implements DeliveryMethodContract, EnumerationContract, IntangibleContract, ThingContract { + /** + * A DeliveryMethod in which an item is made available via locker. + * + * @see http://schema.org/LockerDelivery + */ + const LockerDelivery = 'http://schema.org/LockerDelivery'; + /** * A DeliveryMethod in which an item is collected on site, e.g. in a store * or at a box office. @@ -38,6 +45,20 @@ class DeliveryMethod extends BaseType implements DeliveryMethodContract, Enumera */ const OnSitePickup = 'http://schema.org/OnSitePickup'; + /** + * A private parcel service as the delivery mode available for a certain + * offer. + * + * Commonly used values: + * + * * http://purl.org/goodrelations/v1#DHL + * * http://purl.org/goodrelations/v1#FederalExpress + * * http://purl.org/goodrelations/v1#UPS + * + * @see http://schema.org/ParcelService + */ + const ParcelService = 'http://schema.org/ParcelService'; + /** * An additional type for the item, typically used for adding more specific * types from external vocabularies in microdata syntax. This is a diff --git a/src/DigitalDocument.php b/src/DigitalDocument.php index e700528c6..d9de65c5e 100644 --- a/src/DigitalDocument.php +++ b/src/DigitalDocument.php @@ -913,7 +913,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/DiscussionForumPosting.php b/src/DiscussionForumPosting.php index 11b35bf84..df11902e6 100644 --- a/src/DiscussionForumPosting.php +++ b/src/DiscussionForumPosting.php @@ -928,7 +928,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/EmailMessage.php b/src/EmailMessage.php index 75c7dd765..1d8cfbf7f 100644 --- a/src/EmailMessage.php +++ b/src/EmailMessage.php @@ -969,7 +969,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Episode.php b/src/Episode.php index 502fb180f..5a9da5777 100644 --- a/src/Episode.php +++ b/src/Episode.php @@ -974,7 +974,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/FAQPage.php b/src/FAQPage.php index b0185aeb5..c039857e7 100644 --- a/src/FAQPage.php +++ b/src/FAQPage.php @@ -914,7 +914,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Game.php b/src/Game.php index 0453b71a7..751ba02d2 100644 --- a/src/Game.php +++ b/src/Game.php @@ -943,7 +943,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/HowTo.php b/src/HowTo.php index 55b911010..2a71b2fdc 100644 --- a/src/HowTo.php +++ b/src/HowTo.php @@ -913,7 +913,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/HowToDirection.php b/src/HowToDirection.php index f64fb3013..2ccdada79 100644 --- a/src/HowToDirection.php +++ b/src/HowToDirection.php @@ -945,7 +945,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/HowToSection.php b/src/HowToSection.php index 49aca9bc5..ca55f2679 100644 --- a/src/HowToSection.php +++ b/src/HowToSection.php @@ -901,7 +901,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/HowToStep.php b/src/HowToStep.php index 5ae60d8fd..a0d945a94 100644 --- a/src/HowToStep.php +++ b/src/HowToStep.php @@ -901,7 +901,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/HowToTip.php b/src/HowToTip.php index d03f1ebb5..a2439bcf5 100644 --- a/src/HowToTip.php +++ b/src/HowToTip.php @@ -902,7 +902,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/ImageGallery.php b/src/ImageGallery.php index e2b48bf62..3ddebca62 100644 --- a/src/ImageGallery.php +++ b/src/ImageGallery.php @@ -5,6 +5,7 @@ use \Spatie\SchemaOrg\Contracts\ImageGalleryContract; use \Spatie\SchemaOrg\Contracts\CollectionPageContract; use \Spatie\SchemaOrg\Contracts\CreativeWorkContract; +use \Spatie\SchemaOrg\Contracts\MediaGalleryContract; use \Spatie\SchemaOrg\Contracts\ThingContract; use \Spatie\SchemaOrg\Contracts\WebPageContract; @@ -14,7 +15,7 @@ * @see http://schema.org/ImageGallery * */ -class ImageGallery extends BaseType implements ImageGalleryContract, CollectionPageContract, CreativeWorkContract, ThingContract, WebPageContract +class ImageGallery extends BaseType implements ImageGalleryContract, CollectionPageContract, CreativeWorkContract, MediaGalleryContract, ThingContract, WebPageContract { /** * The subject matter of the content. @@ -914,7 +915,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/ImageObject.php b/src/ImageObject.php index 66b72960d..e2390d91a 100644 --- a/src/ImageObject.php +++ b/src/ImageObject.php @@ -1067,7 +1067,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/ItemPage.php b/src/ItemPage.php index c7ce4afcb..fc3101535 100644 --- a/src/ItemPage.php +++ b/src/ItemPage.php @@ -913,7 +913,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/JobPosting.php b/src/JobPosting.php index f2216062e..738239d3d 100644 --- a/src/JobPosting.php +++ b/src/JobPosting.php @@ -11,6 +11,8 @@ * * @see http://schema.org/JobPosting * + * @method static industry($industry) The value should be instance of pending types DefinedTerm|DefinedTerm[]|string|string[] + * @method static skills($skills) The value should be instance of pending types DefinedTerm|DefinedTerm[]|string|string[] */ class JobPosting extends BaseType implements JobPostingContract, IntangibleContract, ThingContract { @@ -257,20 +259,6 @@ public function incentives($incentives) return $this->setProperty('incentives', $incentives); } - /** - * The industry associated with the job position. - * - * @param string|string[] $industry - * - * @return static - * - * @see http://schema.org/industry - */ - public function industry($industry) - { - return $this->setProperty('industry', $industry); - } - /** * Description of benefits associated with the job. * @@ -441,20 +429,6 @@ public function sameAs($sameAs) return $this->setProperty('sameAs', $sameAs); } - /** - * Skills required to fulfill this role or in this Occupation. - * - * @param string|string[] $skills - * - * @return static - * - * @see http://schema.org/skills - */ - public function skills($skills) - { - return $this->setProperty('skills', $skills); - } - /** * Any special commitments associated with this job posting. Valid entries * include VeteranCommit, MilitarySpouseCommit, etc. diff --git a/src/LiveBlogPosting.php b/src/LiveBlogPosting.php index efb162890..285125733 100644 --- a/src/LiveBlogPosting.php +++ b/src/LiveBlogPosting.php @@ -961,7 +961,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/LockerDelivery.php b/src/LockerDelivery.php deleted file mode 100644 index 3eb38f7c5..000000000 --- a/src/LockerDelivery.php +++ /dev/null @@ -1,205 +0,0 @@ -setProperty('additionalType', $additionalType); - } - - /** - * An alias for the item. - * - * @param string|string[] $alternateName - * - * @return static - * - * @see http://schema.org/alternateName - */ - public function alternateName($alternateName) - { - return $this->setProperty('alternateName', $alternateName); - } - - /** - * A description of the item. - * - * @param string|string[] $description - * - * @return static - * - * @see http://schema.org/description - */ - public function description($description) - { - return $this->setProperty('description', $description); - } - - /** - * 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. - * - * @param string|string[] $disambiguatingDescription - * - * @return static - * - * @see http://schema.org/disambiguatingDescription - */ - public function disambiguatingDescription($disambiguatingDescription) - { - return $this->setProperty('disambiguatingDescription', $disambiguatingDescription); - } - - /** - * The identifier property represents any kind of identifier for any kind of - * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides - * dedicated properties for representing many of these, either as textual - * strings or as URL (URI) links. See [background - * notes](/docs/datamodel.html#identifierBg) for more details. - * - * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier - * - * @return static - * - * @see http://schema.org/identifier - */ - public function identifier($identifier) - { - return $this->setProperty('identifier', $identifier); - } - - /** - * An image of the item. This can be a [[URL]] or a fully described - * [[ImageObject]]. - * - * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image - * - * @return static - * - * @see http://schema.org/image - */ - public function image($image) - { - return $this->setProperty('image', $image); - } - - /** - * 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. - * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage - * - * @return static - * - * @see http://schema.org/mainEntityOfPage - */ - public function mainEntityOfPage($mainEntityOfPage) - { - return $this->setProperty('mainEntityOfPage', $mainEntityOfPage); - } - - /** - * The name of the item. - * - * @param string|string[] $name - * - * @return static - * - * @see http://schema.org/name - */ - public function name($name) - { - return $this->setProperty('name', $name); - } - - /** - * Indicates a potential Action, which describes an idealized action in - * which this thing would play an 'object' role. - * - * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction - * - * @return static - * - * @see http://schema.org/potentialAction - */ - public function potentialAction($potentialAction) - { - return $this->setProperty('potentialAction', $potentialAction); - } - - /** - * 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. - * - * @param string|string[] $sameAs - * - * @return static - * - * @see http://schema.org/sameAs - */ - public function sameAs($sameAs) - { - return $this->setProperty('sameAs', $sameAs); - } - - /** - * A CreativeWork or Event about this Thing. - * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf - * - * @return static - * - * @see http://schema.org/subjectOf - */ - public function subjectOf($subjectOf) - { - return $this->setProperty('subjectOf', $subjectOf); - } - - /** - * URL of the item. - * - * @param string|string[] $url - * - * @return static - * - * @see http://schema.org/url - */ - public function url($url) - { - return $this->setProperty('url', $url); - } - -} diff --git a/src/Map.php b/src/Map.php index a79f614bc..f91fc25c7 100644 --- a/src/Map.php +++ b/src/Map.php @@ -897,7 +897,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/MediaGallery.php b/src/MediaGallery.php new file mode 100644 index 000000000..4bc11a20a --- /dev/null +++ b/src/MediaGallery.php @@ -0,0 +1,1700 @@ +setProperty('about', $about); + } + + /** + * The human sensory perceptual system or cognitive faculty through which a + * person may process or perceive information. Expected values include: + * auditory, tactile, textual, visual, colorDependent, chartOnVisual, + * chemOnVisual, diagramOnVisual, mathOnVisual, musicOnVisual, textOnVisual. + * + * @param string|string[] $accessMode + * + * @return static + * + * @see http://schema.org/accessMode + */ + public function accessMode($accessMode) + { + return $this->setProperty('accessMode', $accessMode); + } + + /** + * A list of single or combined accessModes that are sufficient to + * understand all the intellectual content of a resource. Expected values + * include: auditory, tactile, textual, visual. + * + * @param \Spatie\SchemaOrg\Contracts\ItemListContract|\Spatie\SchemaOrg\Contracts\ItemListContract[] $accessModeSufficient + * + * @return static + * + * @see http://schema.org/accessModeSufficient + */ + public function accessModeSufficient($accessModeSufficient) + { + return $this->setProperty('accessModeSufficient', $accessModeSufficient); + } + + /** + * Indicates that the resource is compatible with the referenced + * accessibility API ([WebSchemas wiki lists possible + * values](http://www.w3.org/wiki/WebSchemas/Accessibility)). + * + * @param string|string[] $accessibilityAPI + * + * @return static + * + * @see http://schema.org/accessibilityAPI + */ + public function accessibilityAPI($accessibilityAPI) + { + return $this->setProperty('accessibilityAPI', $accessibilityAPI); + } + + /** + * Identifies input methods that are sufficient to fully control the + * described resource ([WebSchemas wiki lists possible + * values](http://www.w3.org/wiki/WebSchemas/Accessibility)). + * + * @param string|string[] $accessibilityControl + * + * @return static + * + * @see http://schema.org/accessibilityControl + */ + public function accessibilityControl($accessibilityControl) + { + return $this->setProperty('accessibilityControl', $accessibilityControl); + } + + /** + * Content features of the resource, such as accessible media, alternatives + * and supported enhancements for accessibility ([WebSchemas wiki lists + * possible values](http://www.w3.org/wiki/WebSchemas/Accessibility)). + * + * @param string|string[] $accessibilityFeature + * + * @return static + * + * @see http://schema.org/accessibilityFeature + */ + public function accessibilityFeature($accessibilityFeature) + { + return $this->setProperty('accessibilityFeature', $accessibilityFeature); + } + + /** + * A characteristic of the described resource that is physiologically + * dangerous to some users. Related to WCAG 2.0 guideline 2.3 ([WebSchemas + * wiki lists possible + * values](http://www.w3.org/wiki/WebSchemas/Accessibility)). + * + * @param string|string[] $accessibilityHazard + * + * @return static + * + * @see http://schema.org/accessibilityHazard + */ + public function accessibilityHazard($accessibilityHazard) + { + return $this->setProperty('accessibilityHazard', $accessibilityHazard); + } + + /** + * 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." + * + * @param string|string[] $accessibilitySummary + * + * @return static + * + * @see http://schema.org/accessibilitySummary + */ + public function accessibilitySummary($accessibilitySummary) + { + return $this->setProperty('accessibilitySummary', $accessibilitySummary); + } + + /** + * Specifies the Person that is legally accountable for the CreativeWork. + * + * @param \Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $accountablePerson + * + * @return static + * + * @see http://schema.org/accountablePerson + */ + public function accountablePerson($accountablePerson) + { + return $this->setProperty('accountablePerson', $accountablePerson); + } + + /** + * 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. + * + * @param string|string[] $additionalType + * + * @return static + * + * @see http://schema.org/additionalType + */ + public function additionalType($additionalType) + { + return $this->setProperty('additionalType', $additionalType); + } + + /** + * The overall rating, based on a collection of reviews or ratings, of the + * item. + * + * @param \Spatie\SchemaOrg\Contracts\AggregateRatingContract|\Spatie\SchemaOrg\Contracts\AggregateRatingContract[] $aggregateRating + * + * @return static + * + * @see http://schema.org/aggregateRating + */ + public function aggregateRating($aggregateRating) + { + return $this->setProperty('aggregateRating', $aggregateRating); + } + + /** + * An alias for the item. + * + * @param string|string[] $alternateName + * + * @return static + * + * @see http://schema.org/alternateName + */ + public function alternateName($alternateName) + { + return $this->setProperty('alternateName', $alternateName); + } + + /** + * A secondary title of the CreativeWork. + * + * @param string|string[] $alternativeHeadline + * + * @return static + * + * @see http://schema.org/alternativeHeadline + */ + public function alternativeHeadline($alternativeHeadline) + { + return $this->setProperty('alternativeHeadline', $alternativeHeadline); + } + + /** + * A media object that encodes this CreativeWork. This property is a synonym + * for encoding. + * + * @param \Spatie\SchemaOrg\Contracts\MediaObjectContract|\Spatie\SchemaOrg\Contracts\MediaObjectContract[] $associatedMedia + * + * @return static + * + * @see http://schema.org/associatedMedia + */ + public function associatedMedia($associatedMedia) + { + return $this->setProperty('associatedMedia', $associatedMedia); + } + + /** + * An intended audience, i.e. a group for whom something was created. + * + * @param \Spatie\SchemaOrg\Contracts\AudienceContract|\Spatie\SchemaOrg\Contracts\AudienceContract[] $audience + * + * @return static + * + * @see http://schema.org/audience + */ + public function audience($audience) + { + return $this->setProperty('audience', $audience); + } + + /** + * An embedded audio object. + * + * @param \Spatie\SchemaOrg\Contracts\AudioObjectContract|\Spatie\SchemaOrg\Contracts\AudioObjectContract[]|\Spatie\SchemaOrg\Contracts\ClipContract|\Spatie\SchemaOrg\Contracts\ClipContract[] $audio + * + * @return static + * + * @see http://schema.org/audio + */ + public function audio($audio) + { + return $this->setProperty('audio', $audio); + } + + /** + * 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. + * + * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $author + * + * @return static + * + * @see http://schema.org/author + */ + public function author($author) + { + return $this->setProperty('author', $author); + } + + /** + * An award won by or for this item. + * + * @param string|string[] $award + * + * @return static + * + * @see http://schema.org/award + */ + public function award($award) + { + return $this->setProperty('award', $award); + } + + /** + * Awards won by or for this item. + * + * @param string|string[] $awards + * + * @return static + * + * @see http://schema.org/awards + */ + public function awards($awards) + { + return $this->setProperty('awards', $awards); + } + + /** + * A set of links that can help a user understand and navigate a website + * hierarchy. + * + * @param \Spatie\SchemaOrg\Contracts\BreadcrumbListContract|\Spatie\SchemaOrg\Contracts\BreadcrumbListContract[]|string|string[] $breadcrumb + * + * @return static + * + * @see http://schema.org/breadcrumb + */ + public function breadcrumb($breadcrumb) + { + return $this->setProperty('breadcrumb', $breadcrumb); + } + + /** + * Fictional person connected with a creative work. + * + * @param \Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $character + * + * @return static + * + * @see http://schema.org/character + */ + public function character($character) + { + return $this->setProperty('character', $character); + } + + /** + * A citation or reference to another creative work, such as another + * publication, web page, scholarly article, etc. + * + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $citation + * + * @return static + * + * @see http://schema.org/citation + */ + public function citation($citation) + { + return $this->setProperty('citation', $citation); + } + + /** + * Comments, typically from users. + * + * @param \Spatie\SchemaOrg\Contracts\CommentContract|\Spatie\SchemaOrg\Contracts\CommentContract[] $comment + * + * @return static + * + * @see http://schema.org/comment + */ + public function comment($comment) + { + return $this->setProperty('comment', $comment); + } + + /** + * 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. + * + * @param int|int[] $commentCount + * + * @return static + * + * @see http://schema.org/commentCount + */ + public function commentCount($commentCount) + { + return $this->setProperty('commentCount', $commentCount); + } + + /** + * The location depicted or described in the content. For example, the + * location in a photograph or painting. + * + * @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $contentLocation + * + * @return static + * + * @see http://schema.org/contentLocation + */ + public function contentLocation($contentLocation) + { + return $this->setProperty('contentLocation', $contentLocation); + } + + /** + * Official rating of a piece of content—for example,'MPAA PG-13'. + * + * @param \Spatie\SchemaOrg\Contracts\RatingContract|\Spatie\SchemaOrg\Contracts\RatingContract[]|string|string[] $contentRating + * + * @return static + * + * @see http://schema.org/contentRating + */ + public function contentRating($contentRating) + { + return $this->setProperty('contentRating', $contentRating); + } + + /** + * A secondary contributor to the CreativeWork or Event. + * + * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $contributor + * + * @return static + * + * @see http://schema.org/contributor + */ + public function contributor($contributor) + { + return $this->setProperty('contributor', $contributor); + } + + /** + * The party holding the legal copyright to the CreativeWork. + * + * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $copyrightHolder + * + * @return static + * + * @see http://schema.org/copyrightHolder + */ + public function copyrightHolder($copyrightHolder) + { + return $this->setProperty('copyrightHolder', $copyrightHolder); + } + + /** + * The year during which the claimed copyright for the CreativeWork was + * first asserted. + * + * @param float|float[]|int|int[] $copyrightYear + * + * @return static + * + * @see http://schema.org/copyrightYear + */ + public function copyrightYear($copyrightYear) + { + return $this->setProperty('copyrightYear', $copyrightYear); + } + + /** + * The creator/author of this CreativeWork. This is the same as the Author + * property for CreativeWork. + * + * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $creator + * + * @return static + * + * @see http://schema.org/creator + */ + public function creator($creator) + { + return $this->setProperty('creator', $creator); + } + + /** + * The date on which the CreativeWork was created or the item was added to a + * DataFeed. + * + * @param \DateTimeInterface|\DateTimeInterface[] $dateCreated + * + * @return static + * + * @see http://schema.org/dateCreated + */ + public function dateCreated($dateCreated) + { + return $this->setProperty('dateCreated', $dateCreated); + } + + /** + * The date on which the CreativeWork was most recently modified or when the + * item's entry was modified within a DataFeed. + * + * @param \DateTimeInterface|\DateTimeInterface[] $dateModified + * + * @return static + * + * @see http://schema.org/dateModified + */ + public function dateModified($dateModified) + { + return $this->setProperty('dateModified', $dateModified); + } + + /** + * Date of first broadcast/publication. + * + * @param \DateTimeInterface|\DateTimeInterface[] $datePublished + * + * @return static + * + * @see http://schema.org/datePublished + */ + public function datePublished($datePublished) + { + return $this->setProperty('datePublished', $datePublished); + } + + /** + * A description of the item. + * + * @param string|string[] $description + * + * @return static + * + * @see http://schema.org/description + */ + public function description($description) + { + return $this->setProperty('description', $description); + } + + /** + * 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. + * + * @param string|string[] $disambiguatingDescription + * + * @return static + * + * @see http://schema.org/disambiguatingDescription + */ + public function disambiguatingDescription($disambiguatingDescription) + { + return $this->setProperty('disambiguatingDescription', $disambiguatingDescription); + } + + /** + * A link to the page containing the comments of the CreativeWork. + * + * @param string|string[] $discussionUrl + * + * @return static + * + * @see http://schema.org/discussionUrl + */ + public function discussionUrl($discussionUrl) + { + return $this->setProperty('discussionUrl', $discussionUrl); + } + + /** + * Specifies the Person who edited the CreativeWork. + * + * @param \Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $editor + * + * @return static + * + * @see http://schema.org/editor + */ + public function editor($editor) + { + return $this->setProperty('editor', $editor); + } + + /** + * An alignment to an established educational framework. + * + * @param \Spatie\SchemaOrg\Contracts\AlignmentObjectContract|\Spatie\SchemaOrg\Contracts\AlignmentObjectContract[] $educationalAlignment + * + * @return static + * + * @see http://schema.org/educationalAlignment + */ + public function educationalAlignment($educationalAlignment) + { + return $this->setProperty('educationalAlignment', $educationalAlignment); + } + + /** + * The purpose of a work in the context of education; for example, + * 'assignment', 'group work'. + * + * @param string|string[] $educationalUse + * + * @return static + * + * @see http://schema.org/educationalUse + */ + public function educationalUse($educationalUse) + { + return $this->setProperty('educationalUse', $educationalUse); + } + + /** + * A media object that encodes this CreativeWork. This property is a synonym + * for associatedMedia. + * + * @param \Spatie\SchemaOrg\Contracts\MediaObjectContract|\Spatie\SchemaOrg\Contracts\MediaObjectContract[] $encoding + * + * @return static + * + * @see http://schema.org/encoding + */ + public function encoding($encoding) + { + return $this->setProperty('encoding', $encoding); + } + + /** + * 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. + * + * @param string|string[] $encodingFormat + * + * @return static + * + * @see http://schema.org/encodingFormat + */ + public function encodingFormat($encodingFormat) + { + return $this->setProperty('encodingFormat', $encodingFormat); + } + + /** + * A media object that encodes this CreativeWork. + * + * @param \Spatie\SchemaOrg\Contracts\MediaObjectContract|\Spatie\SchemaOrg\Contracts\MediaObjectContract[] $encodings + * + * @return static + * + * @see http://schema.org/encodings + */ + public function encodings($encodings) + { + return $this->setProperty('encodings', $encodings); + } + + /** + * A creative work that this work is an + * example/instance/realization/derivation of. + * + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $exampleOfWork + * + * @return static + * + * @see http://schema.org/exampleOfWork + */ + public function exampleOfWork($exampleOfWork) + { + return $this->setProperty('exampleOfWork', $exampleOfWork); + } + + /** + * 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. + * + * @param \DateTimeInterface|\DateTimeInterface[] $expires + * + * @return static + * + * @see http://schema.org/expires + */ + public function expires($expires) + { + return $this->setProperty('expires', $expires); + } + + /** + * 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. + * + * @param string|string[] $fileFormat + * + * @return static + * + * @see http://schema.org/fileFormat + */ + public function fileFormat($fileFormat) + { + return $this->setProperty('fileFormat', $fileFormat); + } + + /** + * A person or organization that supports (sponsors) something through some + * kind of financial contribution. + * + * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $funder + * + * @return static + * + * @see http://schema.org/funder + */ + public function funder($funder) + { + return $this->setProperty('funder', $funder); + } + + /** + * Genre of the creative work, broadcast channel or group. + * + * @param string|string[] $genre + * + * @return static + * + * @see http://schema.org/genre + */ + public function genre($genre) + { + return $this->setProperty('genre', $genre); + } + + /** + * Indicates an item or CreativeWork that is part of this item, or + * CreativeWork (in some sense). + * + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $hasPart + * + * @return static + * + * @see http://schema.org/hasPart + */ + public function hasPart($hasPart) + { + return $this->setProperty('hasPart', $hasPart); + } + + /** + * Headline of the article. + * + * @param string|string[] $headline + * + * @return static + * + * @see http://schema.org/headline + */ + public function headline($headline) + { + return $this->setProperty('headline', $headline); + } + + /** + * The identifier property represents any kind of identifier for any kind of + * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides + * dedicated properties for representing many of these, either as textual + * strings or as URL (URI) links. See [background + * notes](/docs/datamodel.html#identifierBg) for more details. + * + * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier + * + * @return static + * + * @see http://schema.org/identifier + */ + public function identifier($identifier) + { + return $this->setProperty('identifier', $identifier); + } + + /** + * An image of the item. This can be a [[URL]] or a fully described + * [[ImageObject]]. + * + * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image + * + * @return static + * + * @see http://schema.org/image + */ + public function image($image) + { + return $this->setProperty('image', $image); + } + + /** + * 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]]. + * + * @param \Spatie\SchemaOrg\Contracts\LanguageContract|\Spatie\SchemaOrg\Contracts\LanguageContract[]|string|string[] $inLanguage + * + * @return static + * + * @see http://schema.org/inLanguage + */ + public function inLanguage($inLanguage) + { + return $this->setProperty('inLanguage', $inLanguage); + } + + /** + * The number of interactions for the CreativeWork using the WebSite or + * SoftwareApplication. The most specific child type of InteractionCounter + * should be used. + * + * @param \Spatie\SchemaOrg\Contracts\InteractionCounterContract|\Spatie\SchemaOrg\Contracts\InteractionCounterContract[] $interactionStatistic + * + * @return static + * + * @see http://schema.org/interactionStatistic + */ + public function interactionStatistic($interactionStatistic) + { + return $this->setProperty('interactionStatistic', $interactionStatistic); + } + + /** + * The predominant mode of learning supported by the learning resource. + * Acceptable values are 'active', 'expositive', or 'mixed'. + * + * @param string|string[] $interactivityType + * + * @return static + * + * @see http://schema.org/interactivityType + */ + public function interactivityType($interactivityType) + { + return $this->setProperty('interactivityType', $interactivityType); + } + + /** + * A flag to signal that the item, event, or place is accessible for free. + * + * @param bool|bool[] $isAccessibleForFree + * + * @return static + * + * @see http://schema.org/isAccessibleForFree + */ + public function isAccessibleForFree($isAccessibleForFree) + { + return $this->setProperty('isAccessibleForFree', $isAccessibleForFree); + } + + /** + * A resource from which this work is derived or from which it is a + * modification or adaption. + * + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[]|string|string[] $isBasedOn + * + * @return static + * + * @see http://schema.org/isBasedOn + */ + public function isBasedOn($isBasedOn) + { + return $this->setProperty('isBasedOn', $isBasedOn); + } + + /** + * 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. + * + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[]|string|string[] $isBasedOnUrl + * + * @return static + * + * @see http://schema.org/isBasedOnUrl + */ + public function isBasedOnUrl($isBasedOnUrl) + { + return $this->setProperty('isBasedOnUrl', $isBasedOnUrl); + } + + /** + * Indicates whether this content is family friendly. + * + * @param bool|bool[] $isFamilyFriendly + * + * @return static + * + * @see http://schema.org/isFamilyFriendly + */ + public function isFamilyFriendly($isFamilyFriendly) + { + return $this->setProperty('isFamilyFriendly', $isFamilyFriendly); + } + + /** + * Indicates an item or CreativeWork that this item, or CreativeWork (in + * some sense), is part of. + * + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf + * + * @return static + * + * @see http://schema.org/isPartOf + */ + public function isPartOf($isPartOf) + { + return $this->setProperty('isPartOf', $isPartOf); + } + + /** + * Keywords or tags used to describe this content. Multiple entries in a + * keywords list are typically delimited by commas. + * + * @param string|string[] $keywords + * + * @return static + * + * @see http://schema.org/keywords + */ + public function keywords($keywords) + { + return $this->setProperty('keywords', $keywords); + } + + /** + * Date on which the content on this web page was last reviewed for accuracy + * and/or completeness. + * + * @param \DateTimeInterface|\DateTimeInterface[] $lastReviewed + * + * @return static + * + * @see http://schema.org/lastReviewed + */ + public function lastReviewed($lastReviewed) + { + return $this->setProperty('lastReviewed', $lastReviewed); + } + + /** + * The predominant type or kind characterizing the learning resource. For + * example, 'presentation', 'handout'. + * + * @param string|string[] $learningResourceType + * + * @return static + * + * @see http://schema.org/learningResourceType + */ + public function learningResourceType($learningResourceType) + { + return $this->setProperty('learningResourceType', $learningResourceType); + } + + /** + * A license document that applies to this content, typically indicated by + * URL. + * + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $license + * + * @return static + * + * @see http://schema.org/license + */ + public function license($license) + { + return $this->setProperty('license', $license); + } + + /** + * The location where the CreativeWork was created, which may not be the + * same as the location depicted in the CreativeWork. + * + * @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $locationCreated + * + * @return static + * + * @see http://schema.org/locationCreated + */ + public function locationCreated($locationCreated) + { + return $this->setProperty('locationCreated', $locationCreated); + } + + /** + * Indicates if this web page element is the main subject of the page. + * + * @param \Spatie\SchemaOrg\Contracts\WebPageElementContract|\Spatie\SchemaOrg\Contracts\WebPageElementContract[] $mainContentOfPage + * + * @return static + * + * @see http://schema.org/mainContentOfPage + */ + public function mainContentOfPage($mainContentOfPage) + { + return $this->setProperty('mainContentOfPage', $mainContentOfPage); + } + + /** + * Indicates the primary entity described in some page or other + * CreativeWork. + * + * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $mainEntity + * + * @return static + * + * @see http://schema.org/mainEntity + */ + public function mainEntity($mainEntity) + { + return $this->setProperty('mainEntity', $mainEntity); + } + + /** + * 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. + * + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage + * + * @return static + * + * @see http://schema.org/mainEntityOfPage + */ + public function mainEntityOfPage($mainEntityOfPage) + { + return $this->setProperty('mainEntityOfPage', $mainEntityOfPage); + } + + /** + * A material that something is made from, e.g. leather, wool, cotton, + * paper. + * + * @param \Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[]|string|string[] $material + * + * @return static + * + * @see http://schema.org/material + */ + public function material($material) + { + return $this->setProperty('material', $material); + } + + /** + * Indicates that the CreativeWork contains a reference to, but is not + * necessarily about a concept. + * + * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $mentions + * + * @return static + * + * @see http://schema.org/mentions + */ + public function mentions($mentions) + { + return $this->setProperty('mentions', $mentions); + } + + /** + * The name of the item. + * + * @param string|string[] $name + * + * @return static + * + * @see http://schema.org/name + */ + public function name($name) + { + return $this->setProperty('name', $name); + } + + /** + * 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. + * + * @param \Spatie\SchemaOrg\Contracts\DemandContract|\Spatie\SchemaOrg\Contracts\DemandContract[]|\Spatie\SchemaOrg\Contracts\OfferContract|\Spatie\SchemaOrg\Contracts\OfferContract[] $offers + * + * @return static + * + * @see http://schema.org/offers + */ + public function offers($offers) + { + return $this->setProperty('offers', $offers); + } + + /** + * The position of an item in a series or sequence of items. + * + * @param int|int[]|string|string[] $position + * + * @return static + * + * @see http://schema.org/position + */ + public function position($position) + { + return $this->setProperty('position', $position); + } + + /** + * Indicates a potential Action, which describes an idealized action in + * which this thing would play an 'object' role. + * + * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction + * + * @return static + * + * @see http://schema.org/potentialAction + */ + public function potentialAction($potentialAction) + { + return $this->setProperty('potentialAction', $potentialAction); + } + + /** + * Indicates the main image on the page. + * + * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[] $primaryImageOfPage + * + * @return static + * + * @see http://schema.org/primaryImageOfPage + */ + public function primaryImageOfPage($primaryImageOfPage) + { + return $this->setProperty('primaryImageOfPage', $primaryImageOfPage); + } + + /** + * The person or organization who produced the work (e.g. music album, + * movie, tv/radio series etc.). + * + * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $producer + * + * @return static + * + * @see http://schema.org/producer + */ + public function producer($producer) + { + return $this->setProperty('producer', $producer); + } + + /** + * 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. + * + * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $provider + * + * @return static + * + * @see http://schema.org/provider + */ + public function provider($provider) + { + return $this->setProperty('provider', $provider); + } + + /** + * A publication event associated with the item. + * + * @param \Spatie\SchemaOrg\Contracts\PublicationEventContract|\Spatie\SchemaOrg\Contracts\PublicationEventContract[] $publication + * + * @return static + * + * @see http://schema.org/publication + */ + public function publication($publication) + { + return $this->setProperty('publication', $publication); + } + + /** + * The publisher of the creative work. + * + * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $publisher + * + * @return static + * + * @see http://schema.org/publisher + */ + public function publisher($publisher) + { + return $this->setProperty('publisher', $publisher); + } + + /** + * 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. + * + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $publishingPrinciples + * + * @return static + * + * @see http://schema.org/publishingPrinciples + */ + public function publishingPrinciples($publishingPrinciples) + { + return $this->setProperty('publishingPrinciples', $publishingPrinciples); + } + + /** + * The Event where the CreativeWork was recorded. The CreativeWork may + * capture all or part of the event. + * + * @param \Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $recordedAt + * + * @return static + * + * @see http://schema.org/recordedAt + */ + public function recordedAt($recordedAt) + { + return $this->setProperty('recordedAt', $recordedAt); + } + + /** + * A link related to this web page, for example to other related web pages. + * + * @param string|string[] $relatedLink + * + * @return static + * + * @see http://schema.org/relatedLink + */ + public function relatedLink($relatedLink) + { + return $this->setProperty('relatedLink', $relatedLink); + } + + /** + * The place and time the release was issued, expressed as a + * PublicationEvent. + * + * @param \Spatie\SchemaOrg\Contracts\PublicationEventContract|\Spatie\SchemaOrg\Contracts\PublicationEventContract[] $releasedEvent + * + * @return static + * + * @see http://schema.org/releasedEvent + */ + public function releasedEvent($releasedEvent) + { + return $this->setProperty('releasedEvent', $releasedEvent); + } + + /** + * A review of the item. + * + * @param \Spatie\SchemaOrg\Contracts\ReviewContract|\Spatie\SchemaOrg\Contracts\ReviewContract[] $review + * + * @return static + * + * @see http://schema.org/review + */ + public function review($review) + { + return $this->setProperty('review', $review); + } + + /** + * People or organizations that have reviewed the content on this web page + * for accuracy and/or completeness. + * + * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $reviewedBy + * + * @return static + * + * @see http://schema.org/reviewedBy + */ + public function reviewedBy($reviewedBy) + { + return $this->setProperty('reviewedBy', $reviewedBy); + } + + /** + * Review of the item. + * + * @param \Spatie\SchemaOrg\Contracts\ReviewContract|\Spatie\SchemaOrg\Contracts\ReviewContract[] $reviews + * + * @return static + * + * @see http://schema.org/reviews + */ + public function reviews($reviews) + { + return $this->setProperty('reviews', $reviews); + } + + /** + * 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. + * + * @param string|string[] $sameAs + * + * @return static + * + * @see http://schema.org/sameAs + */ + public function sameAs($sameAs) + { + return $this->setProperty('sameAs', $sameAs); + } + + /** + * Indicates (by URL or string) a particular version of a schema used in + * some CreativeWork. For example, a document could declare a schemaVersion + * using an URL such as http://schema.org/version/2.0/ if precise indication + * of schema version was required by some application. + * + * @param string|string[] $schemaVersion + * + * @return static + * + * @see http://schema.org/schemaVersion + */ + public function schemaVersion($schemaVersion) + { + return $this->setProperty('schemaVersion', $schemaVersion); + } + + /** + * One of the more significant URLs on the page. Typically, these are the + * non-navigation links that are clicked on the most. + * + * @param string|string[] $significantLink + * + * @return static + * + * @see http://schema.org/significantLink + */ + public function significantLink($significantLink) + { + return $this->setProperty('significantLink', $significantLink); + } + + /** + * The most significant URLs on the page. Typically, these are the + * non-navigation links that are clicked on the most. + * + * @param string|string[] $significantLinks + * + * @return static + * + * @see http://schema.org/significantLinks + */ + public function significantLinks($significantLinks) + { + return $this->setProperty('significantLinks', $significantLinks); + } + + /** + * The Organization on whose behalf the creator was working. + * + * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[] $sourceOrganization + * + * @return static + * + * @see http://schema.org/sourceOrganization + */ + public function sourceOrganization($sourceOrganization) + { + return $this->setProperty('sourceOrganization', $sourceOrganization); + } + + /** + * The "spatial" property can be used in cases when more specific properties + * (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are + * not known to be appropriate. + * + * @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $spatial + * + * @return static + * + * @see http://schema.org/spatial + */ + public function spatial($spatial) + { + return $this->setProperty('spatial', $spatial); + } + + /** + * 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. + * + * @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $spatialCoverage + * + * @return static + * + * @see http://schema.org/spatialCoverage + */ + public function spatialCoverage($spatialCoverage) + { + return $this->setProperty('spatialCoverage', $spatialCoverage); + } + + /** + * 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. + * + * The *speakable* property can be repeated an arbitrary number of times, + * with three kinds of possible 'content-locator' values: + * + * 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. + * + * 3.) XPaths - addresses content via XPaths (assuming an XML view of the + * content). Use the [[xpath]] property. + * + * + * For more sophisticated markup of speakable sections beyond simple ID + * references, either CSS selectors or XPath expressions to pick out + * document section(s) as speakable. For this + * we define a supporting type, [[SpeakableSpecification]] which is defined + * to be a possible value of the *speakable* property. + * + * @param \Spatie\SchemaOrg\Contracts\SpeakableSpecificationContract|\Spatie\SchemaOrg\Contracts\SpeakableSpecificationContract[]|string|string[] $speakable + * + * @return static + * + * @see http://schema.org/speakable + */ + public function speakable($speakable) + { + return $this->setProperty('speakable', $speakable); + } + + /** + * One of the domain specialities to which this web page's content applies. + * + * @param \Spatie\SchemaOrg\Contracts\SpecialtyContract|\Spatie\SchemaOrg\Contracts\SpecialtyContract[] $specialty + * + * @return static + * + * @see http://schema.org/specialty + */ + public function specialty($specialty) + { + return $this->setProperty('specialty', $specialty); + } + + /** + * 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. + * + * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $sponsor + * + * @return static + * + * @see http://schema.org/sponsor + */ + public function sponsor($sponsor) + { + return $this->setProperty('sponsor', $sponsor); + } + + /** + * A CreativeWork or Event about this Thing. + * + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf + * + * @return static + * + * @see http://schema.org/subjectOf + */ + public function subjectOf($subjectOf) + { + return $this->setProperty('subjectOf', $subjectOf); + } + + /** + * The "temporal" property can be used in cases where more specific + * properties + * (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], + * [[datePublished]]) are not known to be appropriate. + * + * @param \DateTimeInterface|\DateTimeInterface[]|string|string[] $temporal + * + * @return static + * + * @see http://schema.org/temporal + */ + public function temporal($temporal) + { + return $this->setProperty('temporal', $temporal); + } + + /** + * 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. + * + * @param \DateTimeInterface|\DateTimeInterface[]|string|string[] $temporalCoverage + * + * @return static + * + * @see http://schema.org/temporalCoverage + */ + public function temporalCoverage($temporalCoverage) + { + return $this->setProperty('temporalCoverage', $temporalCoverage); + } + + /** + * The textual content of this CreativeWork. + * + * @param string|string[] $text + * + * @return static + * + * @see http://schema.org/text + */ + public function text($text) + { + return $this->setProperty('text', $text); + } + + /** + * A thumbnail image relevant to the Thing. + * + * @param string|string[] $thumbnailUrl + * + * @return static + * + * @see http://schema.org/thumbnailUrl + */ + public function thumbnailUrl($thumbnailUrl) + { + return $this->setProperty('thumbnailUrl', $thumbnailUrl); + } + + /** + * Approximate or typical time it takes to work with or through this + * learning resource for the typical intended target audience, e.g. 'PT30M', + * 'PT1H25M'. + * + * @param \Spatie\SchemaOrg\Contracts\DurationContract|\Spatie\SchemaOrg\Contracts\DurationContract[] $timeRequired + * + * @return static + * + * @see http://schema.org/timeRequired + */ + public function timeRequired($timeRequired) + { + return $this->setProperty('timeRequired', $timeRequired); + } + + /** + * 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. + * + * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $translator + * + * @return static + * + * @see http://schema.org/translator + */ + public function translator($translator) + { + return $this->setProperty('translator', $translator); + } + + /** + * The typical expected age range, e.g. '7-9', '11-'. + * + * @param string|string[] $typicalAgeRange + * + * @return static + * + * @see http://schema.org/typicalAgeRange + */ + public function typicalAgeRange($typicalAgeRange) + { + return $this->setProperty('typicalAgeRange', $typicalAgeRange); + } + + /** + * URL of the item. + * + * @param string|string[] $url + * + * @return static + * + * @see http://schema.org/url + */ + public function url($url) + { + return $this->setProperty('url', $url); + } + + /** + * The version of the CreativeWork embodied by a specified resource. + * + * @param float|float[]|int|int[]|string|string[] $version + * + * @return static + * + * @see http://schema.org/version + */ + public function version($version) + { + return $this->setProperty('version', $version); + } + + /** + * An embedded video object. + * + * @param \Spatie\SchemaOrg\Contracts\ClipContract|\Spatie\SchemaOrg\Contracts\ClipContract[]|\Spatie\SchemaOrg\Contracts\VideoObjectContract|\Spatie\SchemaOrg\Contracts\VideoObjectContract[] $video + * + * @return static + * + * @see http://schema.org/video + */ + public function video($video) + { + return $this->setProperty('video', $video); + } + + /** + * Example/instance/realization/derivation of the concept of this creative + * work. eg. The paperback edition, first edition, or eBook. + * + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $workExample + * + * @return static + * + * @see http://schema.org/workExample + */ + public function workExample($workExample) + { + return $this->setProperty('workExample', $workExample); + } + +} diff --git a/src/MediaObject.php b/src/MediaObject.php index 70dada518..336b0f816 100644 --- a/src/MediaObject.php +++ b/src/MediaObject.php @@ -1040,7 +1040,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Menu.php b/src/Menu.php index 19568011d..24bd14c76 100644 --- a/src/Menu.php +++ b/src/Menu.php @@ -926,7 +926,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/MenuItem.php b/src/MenuItem.php index bb1c8837c..a39fe8777 100644 --- a/src/MenuItem.php +++ b/src/MenuItem.php @@ -897,7 +897,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/MenuSection.php b/src/MenuSection.php index 5eb886056..416deb1c5 100644 --- a/src/MenuSection.php +++ b/src/MenuSection.php @@ -928,7 +928,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Message.php b/src/Message.php index d44e926a9..5bc22a7a0 100644 --- a/src/Message.php +++ b/src/Message.php @@ -968,7 +968,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/MobileApplication.php b/src/MobileApplication.php index e9aa7c239..485e2dcbd 100644 --- a/src/MobileApplication.php +++ b/src/MobileApplication.php @@ -1076,7 +1076,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Movie.php b/src/Movie.php index ed05610b8..3d192f923 100644 --- a/src/Movie.php +++ b/src/Movie.php @@ -989,7 +989,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/MovieClip.php b/src/MovieClip.php index f54139e9b..bc27984c2 100644 --- a/src/MovieClip.php +++ b/src/MovieClip.php @@ -974,7 +974,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/MovieSeries.php b/src/MovieSeries.php index 60e174e69..21440f26b 100644 --- a/src/MovieSeries.php +++ b/src/MovieSeries.php @@ -978,7 +978,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/MusicAlbum.php b/src/MusicAlbum.php index f38535804..51eb361c0 100644 --- a/src/MusicAlbum.php +++ b/src/MusicAlbum.php @@ -955,7 +955,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/MusicComposition.php b/src/MusicComposition.php index 539b4cc51..cd591d798 100644 --- a/src/MusicComposition.php +++ b/src/MusicComposition.php @@ -941,7 +941,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/MusicPlaylist.php b/src/MusicPlaylist.php index 9ea6e99b3..6ab245f33 100644 --- a/src/MusicPlaylist.php +++ b/src/MusicPlaylist.php @@ -897,7 +897,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/MusicRecording.php b/src/MusicRecording.php index 40ed5b8b5..791ecb65d 100644 --- a/src/MusicRecording.php +++ b/src/MusicRecording.php @@ -954,7 +954,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/MusicRelease.php b/src/MusicRelease.php index 24b7d3e7c..5388a6fa3 100644 --- a/src/MusicRelease.php +++ b/src/MusicRelease.php @@ -928,7 +928,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/MusicVideoObject.php b/src/MusicVideoObject.php index 44968f808..3ec725d1f 100644 --- a/src/MusicVideoObject.php +++ b/src/MusicVideoObject.php @@ -1037,7 +1037,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/NewsArticle.php b/src/NewsArticle.php index dbce364a4..229f0ef86 100644 --- a/src/NewsArticle.php +++ b/src/NewsArticle.php @@ -958,7 +958,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/NoteDigitalDocument.php b/src/NoteDigitalDocument.php index 007da9376..71af2c70d 100644 --- a/src/NoteDigitalDocument.php +++ b/src/NoteDigitalDocument.php @@ -914,7 +914,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Occupation.php b/src/Occupation.php index 2fa08e17c..732f388e3 100644 --- a/src/Occupation.php +++ b/src/Occupation.php @@ -11,6 +11,7 @@ * * @see http://schema.org/Occupation * + * @method static skills($skills) The value should be instance of pending types DefinedTerm|DefinedTerm[]|string|string[] */ class Occupation extends BaseType implements OccupationContract, IntangibleContract, ThingContract { @@ -285,20 +286,6 @@ public function sameAs($sameAs) return $this->setProperty('sameAs', $sameAs); } - /** - * Skills required to fulfill this role or in this Occupation. - * - * @param string|string[] $skills - * - * @return static - * - * @see http://schema.org/skills - */ - public function skills($skills) - { - return $this->setProperty('skills', $skills); - } - /** * A CreativeWork or Event about this Thing. * diff --git a/src/Offer.php b/src/Offer.php index afe4e78b7..fbad52205 100644 --- a/src/Offer.php +++ b/src/Offer.php @@ -12,6 +12,11 @@ * stream a TV show over the internet, to repair a motorcycle, or to loan a * book. * + * Note: As the [[businessFunction]] property, which identifies the form of + * offer (e.g. sell, lease, repair, dispose), defaults to + * http://purl.org/goodrelations/v1#Sell; an Offer without a defined + * businessFunction value can be assumed to be an offer to sell. + * * For [GTIN](http://www.gs1.org/barcodes/technical/idkeys/gtin)-related fields, * see [Check Digit * calculator](http://www.gs1.org/barcodes/support/check_digit_calculator) and diff --git a/src/Painting.php b/src/Painting.php index 1e6b28cab..b443fffbd 100644 --- a/src/Painting.php +++ b/src/Painting.php @@ -897,7 +897,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/ParcelService.php b/src/ParcelService.php deleted file mode 100644 index 10df06f03..000000000 --- a/src/ParcelService.php +++ /dev/null @@ -1,211 +0,0 @@ -setProperty('additionalType', $additionalType); - } - - /** - * An alias for the item. - * - * @param string|string[] $alternateName - * - * @return static - * - * @see http://schema.org/alternateName - */ - public function alternateName($alternateName) - { - return $this->setProperty('alternateName', $alternateName); - } - - /** - * A description of the item. - * - * @param string|string[] $description - * - * @return static - * - * @see http://schema.org/description - */ - public function description($description) - { - return $this->setProperty('description', $description); - } - - /** - * 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. - * - * @param string|string[] $disambiguatingDescription - * - * @return static - * - * @see http://schema.org/disambiguatingDescription - */ - public function disambiguatingDescription($disambiguatingDescription) - { - return $this->setProperty('disambiguatingDescription', $disambiguatingDescription); - } - - /** - * The identifier property represents any kind of identifier for any kind of - * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides - * dedicated properties for representing many of these, either as textual - * strings or as URL (URI) links. See [background - * notes](/docs/datamodel.html#identifierBg) for more details. - * - * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier - * - * @return static - * - * @see http://schema.org/identifier - */ - public function identifier($identifier) - { - return $this->setProperty('identifier', $identifier); - } - - /** - * An image of the item. This can be a [[URL]] or a fully described - * [[ImageObject]]. - * - * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image - * - * @return static - * - * @see http://schema.org/image - */ - public function image($image) - { - return $this->setProperty('image', $image); - } - - /** - * 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. - * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage - * - * @return static - * - * @see http://schema.org/mainEntityOfPage - */ - public function mainEntityOfPage($mainEntityOfPage) - { - return $this->setProperty('mainEntityOfPage', $mainEntityOfPage); - } - - /** - * The name of the item. - * - * @param string|string[] $name - * - * @return static - * - * @see http://schema.org/name - */ - public function name($name) - { - return $this->setProperty('name', $name); - } - - /** - * Indicates a potential Action, which describes an idealized action in - * which this thing would play an 'object' role. - * - * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction - * - * @return static - * - * @see http://schema.org/potentialAction - */ - public function potentialAction($potentialAction) - { - return $this->setProperty('potentialAction', $potentialAction); - } - - /** - * 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. - * - * @param string|string[] $sameAs - * - * @return static - * - * @see http://schema.org/sameAs - */ - public function sameAs($sameAs) - { - return $this->setProperty('sameAs', $sameAs); - } - - /** - * A CreativeWork or Event about this Thing. - * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf - * - * @return static - * - * @see http://schema.org/subjectOf - */ - public function subjectOf($subjectOf) - { - return $this->setProperty('subjectOf', $subjectOf); - } - - /** - * URL of the item. - * - * @param string|string[] $url - * - * @return static - * - * @see http://schema.org/url - */ - public function url($url) - { - return $this->setProperty('url', $url); - } - -} diff --git a/src/PaymentCard.php b/src/PaymentCard.php deleted file mode 100644 index 2ac472bb4..000000000 --- a/src/PaymentCard.php +++ /dev/null @@ -1,598 +0,0 @@ -setProperty('additionalType', $additionalType); - } - - /** - * The overall rating, based on a collection of reviews or ratings, of the - * item. - * - * @param \Spatie\SchemaOrg\Contracts\AggregateRatingContract|\Spatie\SchemaOrg\Contracts\AggregateRatingContract[] $aggregateRating - * - * @return static - * - * @see http://schema.org/aggregateRating - */ - public function aggregateRating($aggregateRating) - { - return $this->setProperty('aggregateRating', $aggregateRating); - } - - /** - * An alias for the item. - * - * @param string|string[] $alternateName - * - * @return static - * - * @see http://schema.org/alternateName - */ - public function alternateName($alternateName) - { - return $this->setProperty('alternateName', $alternateName); - } - - /** - * 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. - * - * @param \Spatie\SchemaOrg\Contracts\QuantitativeValueContract|\Spatie\SchemaOrg\Contracts\QuantitativeValueContract[]|float|float[]|int|int[] $annualPercentageRate - * - * @return static - * - * @see http://schema.org/annualPercentageRate - */ - public function annualPercentageRate($annualPercentageRate) - { - return $this->setProperty('annualPercentageRate', $annualPercentageRate); - } - - /** - * The geographic area where a service or offered item is provided. - * - * @param \Spatie\SchemaOrg\Contracts\AdministrativeAreaContract|\Spatie\SchemaOrg\Contracts\AdministrativeAreaContract[]|\Spatie\SchemaOrg\Contracts\GeoShapeContract|\Spatie\SchemaOrg\Contracts\GeoShapeContract[]|\Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[]|string|string[] $areaServed - * - * @return static - * - * @see http://schema.org/areaServed - */ - public function areaServed($areaServed) - { - return $this->setProperty('areaServed', $areaServed); - } - - /** - * An intended audience, i.e. a group for whom something was created. - * - * @param \Spatie\SchemaOrg\Contracts\AudienceContract|\Spatie\SchemaOrg\Contracts\AudienceContract[] $audience - * - * @return static - * - * @see http://schema.org/audience - */ - public function audience($audience) - { - return $this->setProperty('audience', $audience); - } - - /** - * A means of accessing the service (e.g. a phone bank, a web site, a - * location, etc.). - * - * @param \Spatie\SchemaOrg\Contracts\ServiceChannelContract|\Spatie\SchemaOrg\Contracts\ServiceChannelContract[] $availableChannel - * - * @return static - * - * @see http://schema.org/availableChannel - */ - public function availableChannel($availableChannel) - { - return $this->setProperty('availableChannel', $availableChannel); - } - - /** - * An award won by or for this item. - * - * @param string|string[] $award - * - * @return static - * - * @see http://schema.org/award - */ - public function award($award) - { - return $this->setProperty('award', $award); - } - - /** - * The brand(s) associated with a product or service, or the brand(s) - * maintained by an organization or business person. - * - * @param \Spatie\SchemaOrg\Contracts\BrandContract|\Spatie\SchemaOrg\Contracts\BrandContract[]|\Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[] $brand - * - * @return static - * - * @see http://schema.org/brand - */ - public function brand($brand) - { - return $this->setProperty('brand', $brand); - } - - /** - * 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. - * - * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $broker - * - * @return static - * - * @see http://schema.org/broker - */ - public function broker($broker) - { - return $this->setProperty('broker', $broker); - } - - /** - * A category for the item. Greater signs or slashes can be used to - * informally indicate a category hierarchy. - * - * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[]|string|string[] $category - * - * @return static - * - * @see http://schema.org/category - */ - public function category($category) - { - return $this->setProperty('category', $category); - } - - /** - * A description of the item. - * - * @param string|string[] $description - * - * @return static - * - * @see http://schema.org/description - */ - public function description($description) - { - return $this->setProperty('description', $description); - } - - /** - * 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. - * - * @param string|string[] $disambiguatingDescription - * - * @return static - * - * @see http://schema.org/disambiguatingDescription - */ - public function disambiguatingDescription($disambiguatingDescription) - { - return $this->setProperty('disambiguatingDescription', $disambiguatingDescription); - } - - /** - * Description of fees, commissions, and other terms applied either to a - * class of financial product, or by a financial service organization. - * - * @param string|string[] $feesAndCommissionsSpecification - * - * @return static - * - * @see http://schema.org/feesAndCommissionsSpecification - */ - public function feesAndCommissionsSpecification($feesAndCommissionsSpecification) - { - return $this->setProperty('feesAndCommissionsSpecification', $feesAndCommissionsSpecification); - } - - /** - * Indicates an OfferCatalog listing for this Organization, Person, or - * Service. - * - * @param \Spatie\SchemaOrg\Contracts\OfferCatalogContract|\Spatie\SchemaOrg\Contracts\OfferCatalogContract[] $hasOfferCatalog - * - * @return static - * - * @see http://schema.org/hasOfferCatalog - */ - public function hasOfferCatalog($hasOfferCatalog) - { - return $this->setProperty('hasOfferCatalog', $hasOfferCatalog); - } - - /** - * The hours during which this service or contact is available. - * - * @param \Spatie\SchemaOrg\Contracts\OpeningHoursSpecificationContract|\Spatie\SchemaOrg\Contracts\OpeningHoursSpecificationContract[] $hoursAvailable - * - * @return static - * - * @see http://schema.org/hoursAvailable - */ - public function hoursAvailable($hoursAvailable) - { - return $this->setProperty('hoursAvailable', $hoursAvailable); - } - - /** - * The identifier property represents any kind of identifier for any kind of - * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides - * dedicated properties for representing many of these, either as textual - * strings or as URL (URI) links. See [background - * notes](/docs/datamodel.html#identifierBg) for more details. - * - * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier - * - * @return static - * - * @see http://schema.org/identifier - */ - public function identifier($identifier) - { - return $this->setProperty('identifier', $identifier); - } - - /** - * An image of the item. This can be a [[URL]] or a fully described - * [[ImageObject]]. - * - * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image - * - * @return static - * - * @see http://schema.org/image - */ - public function image($image) - { - return $this->setProperty('image', $image); - } - - /** - * The interest rate, charged or paid, applicable to the financial product. - * Note: This is different from the calculated annualPercentageRate. - * - * @param \Spatie\SchemaOrg\Contracts\QuantitativeValueContract|\Spatie\SchemaOrg\Contracts\QuantitativeValueContract[]|float|float[]|int|int[] $interestRate - * - * @return static - * - * @see http://schema.org/interestRate - */ - public function interestRate($interestRate) - { - return $this->setProperty('interestRate', $interestRate); - } - - /** - * A pointer to another, somehow related product (or multiple products). - * - * @param \Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[]|\Spatie\SchemaOrg\Contracts\ServiceContract|\Spatie\SchemaOrg\Contracts\ServiceContract[] $isRelatedTo - * - * @return static - * - * @see http://schema.org/isRelatedTo - */ - public function isRelatedTo($isRelatedTo) - { - return $this->setProperty('isRelatedTo', $isRelatedTo); - } - - /** - * A pointer to another, functionally similar product (or multiple - * products). - * - * @param \Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[]|\Spatie\SchemaOrg\Contracts\ServiceContract|\Spatie\SchemaOrg\Contracts\ServiceContract[] $isSimilarTo - * - * @return static - * - * @see http://schema.org/isSimilarTo - */ - public function isSimilarTo($isSimilarTo) - { - return $this->setProperty('isSimilarTo', $isSimilarTo); - } - - /** - * An associated logo. - * - * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $logo - * - * @return static - * - * @see http://schema.org/logo - */ - public function logo($logo) - { - return $this->setProperty('logo', $logo); - } - - /** - * 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. - * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage - * - * @return static - * - * @see http://schema.org/mainEntityOfPage - */ - public function mainEntityOfPage($mainEntityOfPage) - { - return $this->setProperty('mainEntityOfPage', $mainEntityOfPage); - } - - /** - * The name of the item. - * - * @param string|string[] $name - * - * @return static - * - * @see http://schema.org/name - */ - public function name($name) - { - return $this->setProperty('name', $name); - } - - /** - * 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. - * - * @param \Spatie\SchemaOrg\Contracts\DemandContract|\Spatie\SchemaOrg\Contracts\DemandContract[]|\Spatie\SchemaOrg\Contracts\OfferContract|\Spatie\SchemaOrg\Contracts\OfferContract[] $offers - * - * @return static - * - * @see http://schema.org/offers - */ - public function offers($offers) - { - return $this->setProperty('offers', $offers); - } - - /** - * Indicates a potential Action, which describes an idealized action in - * which this thing would play an 'object' role. - * - * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction - * - * @return static - * - * @see http://schema.org/potentialAction - */ - public function potentialAction($potentialAction) - { - return $this->setProperty('potentialAction', $potentialAction); - } - - /** - * The tangible thing generated by the service, e.g. a passport, permit, - * etc. - * - * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $produces - * - * @return static - * - * @see http://schema.org/produces - */ - public function produces($produces) - { - return $this->setProperty('produces', $produces); - } - - /** - * 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. - * - * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $provider - * - * @return static - * - * @see http://schema.org/provider - */ - public function provider($provider) - { - return $this->setProperty('provider', $provider); - } - - /** - * Indicates the mobility of a provided service (e.g. 'static', 'dynamic'). - * - * @param string|string[] $providerMobility - * - * @return static - * - * @see http://schema.org/providerMobility - */ - public function providerMobility($providerMobility) - { - return $this->setProperty('providerMobility', $providerMobility); - } - - /** - * A review of the item. - * - * @param \Spatie\SchemaOrg\Contracts\ReviewContract|\Spatie\SchemaOrg\Contracts\ReviewContract[] $review - * - * @return static - * - * @see http://schema.org/review - */ - public function review($review) - { - return $this->setProperty('review', $review); - } - - /** - * 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. - * - * @param string|string[] $sameAs - * - * @return static - * - * @see http://schema.org/sameAs - */ - public function sameAs($sameAs) - { - return $this->setProperty('sameAs', $sameAs); - } - - /** - * The geographic area where the service is provided. - * - * @param \Spatie\SchemaOrg\Contracts\AdministrativeAreaContract|\Spatie\SchemaOrg\Contracts\AdministrativeAreaContract[]|\Spatie\SchemaOrg\Contracts\GeoShapeContract|\Spatie\SchemaOrg\Contracts\GeoShapeContract[]|\Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $serviceArea - * - * @return static - * - * @see http://schema.org/serviceArea - */ - public function serviceArea($serviceArea) - { - return $this->setProperty('serviceArea', $serviceArea); - } - - /** - * The audience eligible for this service. - * - * @param \Spatie\SchemaOrg\Contracts\AudienceContract|\Spatie\SchemaOrg\Contracts\AudienceContract[] $serviceAudience - * - * @return static - * - * @see http://schema.org/serviceAudience - */ - public function serviceAudience($serviceAudience) - { - return $this->setProperty('serviceAudience', $serviceAudience); - } - - /** - * The tangible thing generated by the service, e.g. a passport, permit, - * etc. - * - * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $serviceOutput - * - * @return static - * - * @see http://schema.org/serviceOutput - */ - public function serviceOutput($serviceOutput) - { - return $this->setProperty('serviceOutput', $serviceOutput); - } - - /** - * The type of service being offered, e.g. veterans' benefits, emergency - * relief, etc. - * - * @param string|string[] $serviceType - * - * @return static - * - * @see http://schema.org/serviceType - */ - public function serviceType($serviceType) - { - return $this->setProperty('serviceType', $serviceType); - } - - /** - * A slogan or motto associated with the item. - * - * @param string|string[] $slogan - * - * @return static - * - * @see http://schema.org/slogan - */ - public function slogan($slogan) - { - return $this->setProperty('slogan', $slogan); - } - - /** - * A CreativeWork or Event about this Thing. - * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf - * - * @return static - * - * @see http://schema.org/subjectOf - */ - public function subjectOf($subjectOf) - { - return $this->setProperty('subjectOf', $subjectOf); - } - - /** - * URL of the item. - * - * @param string|string[] $url - * - * @return static - * - * @see http://schema.org/url - */ - public function url($url) - { - return $this->setProperty('url', $url); - } - -} diff --git a/src/PaymentMethod.php b/src/PaymentMethod.php index 74a052eed..b17242780 100644 --- a/src/PaymentMethod.php +++ b/src/PaymentMethod.php @@ -30,6 +30,14 @@ */ class PaymentMethod extends BaseType implements PaymentMethodContract, EnumerationContract, IntangibleContract, ThingContract { + /** + * A payment method using a credit, debit, store or other card to associate + * the payment with an account. + * + * @see http://schema.org/PaymentCard + */ + const PaymentCard = 'http://schema.org/PaymentCard'; + /** * An additional type for the item, typically used for adding more specific * types from external vocabularies in microdata syntax. This is a diff --git a/src/Periodical.php b/src/Periodical.php index 36b439882..98b132161 100644 --- a/src/Periodical.php +++ b/src/Periodical.php @@ -936,7 +936,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Photograph.php b/src/Photograph.php index f6d3b1c65..1a2a671aa 100644 --- a/src/Photograph.php +++ b/src/Photograph.php @@ -897,7 +897,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/PresentationDigitalDocument.php b/src/PresentationDigitalDocument.php index ca86f5f1d..6e79d8b96 100644 --- a/src/PresentationDigitalDocument.php +++ b/src/PresentationDigitalDocument.php @@ -914,7 +914,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/ProfilePage.php b/src/ProfilePage.php index 1534e1751..275931a22 100644 --- a/src/ProfilePage.php +++ b/src/ProfilePage.php @@ -913,7 +913,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/PublicationIssue.php b/src/PublicationIssue.php index 7ca0b84b4..51fa41019 100644 --- a/src/PublicationIssue.php +++ b/src/PublicationIssue.php @@ -902,7 +902,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/PublicationVolume.php b/src/PublicationVolume.php index bf0268ca1..4c0780fd2 100644 --- a/src/PublicationVolume.php +++ b/src/PublicationVolume.php @@ -902,7 +902,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/QAPage.php b/src/QAPage.php index 076f077bb..2fdf5a85e 100644 --- a/src/QAPage.php +++ b/src/QAPage.php @@ -915,7 +915,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Question.php b/src/Question.php index 3588d50f6..f205281f8 100644 --- a/src/Question.php +++ b/src/Question.php @@ -943,7 +943,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/RadioClip.php b/src/RadioClip.php index ff4f61711..75e112a70 100644 --- a/src/RadioClip.php +++ b/src/RadioClip.php @@ -974,7 +974,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/RadioEpisode.php b/src/RadioEpisode.php index ded123dea..045bb53eb 100644 --- a/src/RadioEpisode.php +++ b/src/RadioEpisode.php @@ -974,7 +974,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/RadioSeason.php b/src/RadioSeason.php index f6d0a0d37..3a148cd4c 100644 --- a/src/RadioSeason.php +++ b/src/RadioSeason.php @@ -973,7 +973,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/RadioSeries.php b/src/RadioSeries.php index 626fde219..286e19042 100644 --- a/src/RadioSeries.php +++ b/src/RadioSeries.php @@ -1020,7 +1020,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * @@ -1466,7 +1466,7 @@ public function schemaVersion($schemaVersion) /** * A season in a media series. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkSeasonContract|\Spatie\SchemaOrg\Contracts\CreativeWorkSeasonContract[] $season + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkSeasonContract|\Spatie\SchemaOrg\Contracts\CreativeWorkSeasonContract[]|string|string[] $season * * @return static * diff --git a/src/Recipe.php b/src/Recipe.php index 1a5bc699f..12dbcaaab 100644 --- a/src/Recipe.php +++ b/src/Recipe.php @@ -958,7 +958,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Report.php b/src/Report.php index 8eb0355cd..f5deead2f 100644 --- a/src/Report.php +++ b/src/Report.php @@ -927,7 +927,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Review.php b/src/Review.php index 6648f01be..ae69daf58 100644 --- a/src/Review.php +++ b/src/Review.php @@ -897,7 +897,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Schema.php b/src/Schema.php index bdef3df52..a87e83f7d 100644 --- a/src/Schema.php +++ b/src/Schema.php @@ -717,11 +717,6 @@ public static function creativeWorkSeries(): CreativeWorkSeries return new CreativeWorkSeries(); } - public static function creditCard(): CreditCard - { - return new CreditCard(); - } - public static function crematorium(): Crematorium { return new Crematorium(); @@ -1572,11 +1567,6 @@ public static function locationFeatureSpecification(): LocationFeatureSpecificat return new LocationFeatureSpecification(); } - public static function lockerDelivery(): LockerDelivery - { - return new LockerDelivery(); - } - public static function locksmith(): Locksmith { return new Locksmith(); @@ -1617,6 +1607,11 @@ public static function mass(): Mass return new Mass(); } + public static function mediaGallery(): MediaGallery + { + return new MediaGallery(); + } + public static function mediaObject(): MediaObject { return new MediaObject(); @@ -1952,11 +1947,6 @@ public static function parcelDelivery(): ParcelDelivery return new ParcelDelivery(); } - public static function parcelService(): ParcelService - { - return new ParcelService(); - } - public static function parentAudience(): ParentAudience { return new ParentAudience(); @@ -1982,11 +1972,6 @@ public static function payAction(): PayAction return new PayAction(); } - public static function paymentCard(): PaymentCard - { - return new PaymentCard(); - } - public static function paymentChargeSpecification(): PaymentChargeSpecification { return new PaymentChargeSpecification(); diff --git a/src/ScholarlyArticle.php b/src/ScholarlyArticle.php index 2a597b6b3..41c1c980f 100644 --- a/src/ScholarlyArticle.php +++ b/src/ScholarlyArticle.php @@ -927,7 +927,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Sculpture.php b/src/Sculpture.php index ff6fba72d..7c82ca18c 100644 --- a/src/Sculpture.php +++ b/src/Sculpture.php @@ -897,7 +897,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/SearchResultsPage.php b/src/SearchResultsPage.php index 71ae4219f..271438ec3 100644 --- a/src/SearchResultsPage.php +++ b/src/SearchResultsPage.php @@ -913,7 +913,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/Season.php b/src/Season.php index 0e335190b..2d2c9ad9b 100644 --- a/src/Season.php +++ b/src/Season.php @@ -897,7 +897,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/SiteNavigationElement.php b/src/SiteNavigationElement.php index 176d70800..3147b7965 100644 --- a/src/SiteNavigationElement.php +++ b/src/SiteNavigationElement.php @@ -900,7 +900,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/SocialMediaPosting.php b/src/SocialMediaPosting.php index 8f97575a2..e2a799f63 100644 --- a/src/SocialMediaPosting.php +++ b/src/SocialMediaPosting.php @@ -928,7 +928,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/SoftwareApplication.php b/src/SoftwareApplication.php index 913398f36..4545d43cd 100644 --- a/src/SoftwareApplication.php +++ b/src/SoftwareApplication.php @@ -1059,7 +1059,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/SoftwareSourceCode.php b/src/SoftwareSourceCode.php index bd57db544..58c764c1d 100644 --- a/src/SoftwareSourceCode.php +++ b/src/SoftwareSourceCode.php @@ -928,7 +928,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/SpreadsheetDigitalDocument.php b/src/SpreadsheetDigitalDocument.php index 15ba54d6e..2d02505e7 100644 --- a/src/SpreadsheetDigitalDocument.php +++ b/src/SpreadsheetDigitalDocument.php @@ -914,7 +914,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/TVClip.php b/src/TVClip.php index 8175192dc..f30858f6b 100644 --- a/src/TVClip.php +++ b/src/TVClip.php @@ -974,7 +974,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/TVEpisode.php b/src/TVEpisode.php index 3ff2ca07f..0a485a098 100644 --- a/src/TVEpisode.php +++ b/src/TVEpisode.php @@ -989,7 +989,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/TVSeason.php b/src/TVSeason.php index 84641036d..f9c860c5b 100644 --- a/src/TVSeason.php +++ b/src/TVSeason.php @@ -988,7 +988,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/TVSeries.php b/src/TVSeries.php index 70b4c5e00..a0667c63c 100644 --- a/src/TVSeries.php +++ b/src/TVSeries.php @@ -1034,7 +1034,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * @@ -1480,7 +1480,7 @@ public function schemaVersion($schemaVersion) /** * A season in a media series. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkSeasonContract|\Spatie\SchemaOrg\Contracts\CreativeWorkSeasonContract[] $season + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkSeasonContract|\Spatie\SchemaOrg\Contracts\CreativeWorkSeasonContract[]|string|string[] $season * * @return static * diff --git a/src/Table.php b/src/Table.php index b733c4518..5a7c38d22 100644 --- a/src/Table.php +++ b/src/Table.php @@ -900,7 +900,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/TechArticle.php b/src/TechArticle.php index 909313b87..85e465d47 100644 --- a/src/TechArticle.php +++ b/src/TechArticle.php @@ -942,7 +942,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/TextDigitalDocument.php b/src/TextDigitalDocument.php index 32a260b10..ac99479d0 100644 --- a/src/TextDigitalDocument.php +++ b/src/TextDigitalDocument.php @@ -914,7 +914,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/VideoGallery.php b/src/VideoGallery.php index e9cfc5c4d..942deddc2 100644 --- a/src/VideoGallery.php +++ b/src/VideoGallery.php @@ -5,6 +5,7 @@ use \Spatie\SchemaOrg\Contracts\VideoGalleryContract; use \Spatie\SchemaOrg\Contracts\CollectionPageContract; use \Spatie\SchemaOrg\Contracts\CreativeWorkContract; +use \Spatie\SchemaOrg\Contracts\MediaGalleryContract; use \Spatie\SchemaOrg\Contracts\ThingContract; use \Spatie\SchemaOrg\Contracts\WebPageContract; @@ -14,7 +15,7 @@ * @see http://schema.org/VideoGallery * */ -class VideoGallery extends BaseType implements VideoGalleryContract, CollectionPageContract, CreativeWorkContract, ThingContract, WebPageContract +class VideoGallery extends BaseType implements VideoGalleryContract, CollectionPageContract, CreativeWorkContract, MediaGalleryContract, ThingContract, WebPageContract { /** * The subject matter of the content. @@ -914,7 +915,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/VideoGame.php b/src/VideoGame.php index cddeab737..67e3f79b7 100644 --- a/src/VideoGame.php +++ b/src/VideoGame.php @@ -1226,7 +1226,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/VideoGameClip.php b/src/VideoGameClip.php index 704d758a8..e7af9e78b 100644 --- a/src/VideoGameClip.php +++ b/src/VideoGameClip.php @@ -974,7 +974,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/VideoGameSeries.php b/src/VideoGameSeries.php index 93957f75d..90501f7d7 100644 --- a/src/VideoGameSeries.php +++ b/src/VideoGameSeries.php @@ -1093,7 +1093,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * @@ -1584,7 +1584,7 @@ public function schemaVersion($schemaVersion) /** * A season in a media series. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkSeasonContract|\Spatie\SchemaOrg\Contracts\CreativeWorkSeasonContract[] $season + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkSeasonContract|\Spatie\SchemaOrg\Contracts\CreativeWorkSeasonContract[]|string|string[] $season * * @return static * diff --git a/src/VideoObject.php b/src/VideoObject.php index c1bbbaff2..3c1b9230e 100644 --- a/src/VideoObject.php +++ b/src/VideoObject.php @@ -1115,7 +1115,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/VisualArtwork.php b/src/VisualArtwork.php index 5204dfdc8..9826f716c 100644 --- a/src/VisualArtwork.php +++ b/src/VisualArtwork.php @@ -959,7 +959,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/WPAdBlock.php b/src/WPAdBlock.php index e564e6d50..8a3c8668d 100644 --- a/src/WPAdBlock.php +++ b/src/WPAdBlock.php @@ -900,7 +900,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/WPFooter.php b/src/WPFooter.php index 2527936ee..4c26e4939 100644 --- a/src/WPFooter.php +++ b/src/WPFooter.php @@ -900,7 +900,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/WPHeader.php b/src/WPHeader.php index 52335b77b..659a450a3 100644 --- a/src/WPHeader.php +++ b/src/WPHeader.php @@ -900,7 +900,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/WPSideBar.php b/src/WPSideBar.php index df9acf9f3..a935a0080 100644 --- a/src/WPSideBar.php +++ b/src/WPSideBar.php @@ -900,7 +900,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/WebApplication.php b/src/WebApplication.php index 9e2d7d491..543e50cb9 100644 --- a/src/WebApplication.php +++ b/src/WebApplication.php @@ -1075,7 +1075,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/WebPage.php b/src/WebPage.php index ab220c9ba..3dee682d5 100644 --- a/src/WebPage.php +++ b/src/WebPage.php @@ -916,7 +916,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/WebPageElement.php b/src/WebPageElement.php index 53aaddd21..ebd7cfdf1 100644 --- a/src/WebPageElement.php +++ b/src/WebPageElement.php @@ -899,7 +899,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * diff --git a/src/WebSite.php b/src/WebSite.php index f681a2c7b..cd806d294 100644 --- a/src/WebSite.php +++ b/src/WebSite.php @@ -898,7 +898,7 @@ public function isFamilyFriendly($isFamilyFriendly) * Indicates an item or CreativeWork that this item, or CreativeWork (in * some sense), is part of. * - * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $isPartOf + * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf * * @return static * From 946d2a432a9b873d573e6e0ea3727a597e4a0e2f Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Mon, 20 Jan 2020 10:49:58 +0100 Subject: [PATCH 2/2] fix php cs --- tests/BaseTypeTest.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/BaseTypeTest.php b/tests/BaseTypeTest.php index c2a54771f..eed3fac30 100644 --- a/tests/BaseTypeTest.php +++ b/tests/BaseTypeTest.php @@ -251,8 +251,8 @@ public function it_can_be_json_serialized() $type->setProperty('foo', 'bar'); $type->setProperty('child', $child); $type->setProperty('array', [ - 'child' => $child, - 'hello' => 'world', + 'child' => $child, + 'hello' => 'world', ]); $type->setProperty('string', new class() { public function __toString() @@ -270,11 +270,11 @@ public function __toString() 'bar' => 'baz', ], 'array' => [ - 'child' => [ - '@type' => 'DummyType', - 'bar' => 'baz', - ], - 'hello' => 'world', + 'child' => [ + '@type' => 'DummyType', + 'bar' => 'baz', + ], + 'hello' => 'world', ], 'string' => 'lorem ipsum', ];