Skip to content

Commit

Permalink
update types by current rdfa - 2019-05-28 09:20 UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed May 28, 2019
1 parent fd06355 commit f2796c1
Show file tree
Hide file tree
Showing 57 changed files with 1,267 additions and 73 deletions.
14 changes: 14 additions & 0 deletions src/AMRadioChannel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace Spatie\SchemaOrg;

/**
* A radio channel that uses AM.
*
* @see http://schema.org/AMRadioChannel
*
* @mixin \Spatie\SchemaOrg\RadioChannel
*/
class AMRadioChannel extends BaseType
{
}
98 changes: 98 additions & 0 deletions src/ActionAccessSpecification.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?php

namespace Spatie\SchemaOrg;

/**
* A set of requirements that a must be fulfilled in order to perform an Action.
*
* @see http://schema.org/ActionAccessSpecification
*
* @mixin \Spatie\SchemaOrg\Intangible
*/
class ActionAccessSpecification extends BaseType
{
/**
*
*
* @param $availabilityEnds
*
* @return static
*
* @see http://schema.org/availabilityEnds
*/
public function availabilityEnds($availabilityEnds)
{
return $this->setProperty('availabilityEnds', $availabilityEnds);
}

/**
*
*
* @param $availabilityStarts
*
* @return static
*
* @see http://schema.org/availabilityStarts
*/
public function availabilityStarts($availabilityStarts)
{
return $this->setProperty('availabilityStarts', $availabilityStarts);
}

/**
*
*
* @param $category
*
* @return static
*
* @see http://schema.org/category
*/
public function category($category)
{
return $this->setProperty('category', $category);
}

/**
*
*
* @param $eligibleRegion
*
* @return static
*
* @see http://schema.org/eligibleRegion
*/
public function eligibleRegion($eligibleRegion)
{
return $this->setProperty('eligibleRegion', $eligibleRegion);
}

/**
*
*
* @param $expectsAcceptanceOf
*
* @return static
*
* @see http://schema.org/expectsAcceptanceOf
*/
public function expectsAcceptanceOf($expectsAcceptanceOf)
{
return $this->setProperty('expectsAcceptanceOf', $expectsAcceptanceOf);
}

/**
*
*
* @param MediaSubscription|MediaSubscription[] $requiresSubscription
*
* @return static
*
* @see http://schema.org/requiresSubscription
*/
public function requiresSubscription($requiresSubscription)
{
return $this->setProperty('requiresSubscription', $requiresSubscription);
}

}
14 changes: 14 additions & 0 deletions src/AggregateOffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ class AggregateOffer extends BaseType
{
/**
* The highest price of all offers available.
*
* Usage guidelines:
*
* * Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT
* NINE' (U+0039)) rather than superficially similiar Unicode symbols.
* * Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a
* decimal point. Avoid using these symbols as a readability separator.
*
* @param float|float[]|int|int[]|string|string[] $highPrice
*
Expand All @@ -29,6 +36,13 @@ public function highPrice($highPrice)

/**
* The lowest price of all offers available.
*
* Usage guidelines:
*
* * Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT
* NINE' (U+0039)) rather than superficially similiar Unicode symbols.
* * Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a
* decimal point. Avoid using these symbols as a readability separator.
*
* @param float|float[]|int|int[]|string|string[] $lowPrice
*
Expand Down
39 changes: 39 additions & 0 deletions src/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,45 @@ public function pagination($pagination)
return $this->setProperty('pagination', $pagination);
}

/**
* 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 SpeakableSpecification|SpeakableSpecification[]|string|string[] $speakable
*
* @return static
*
* @see http://schema.org/speakable
*/
public function speakable($speakable)
{
return $this->setProperty('speakable', $speakable);
}

/**
* The number of words in the text of the Article.
*
Expand Down
16 changes: 16 additions & 0 deletions src/AudioObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,22 @@
*/
class AudioObject extends BaseType
{
/**
* The caption for this object. For downloadable machine formats (closed
* caption, subtitles etc.) use MediaObject and indicate the
* [[encodingFormat]].
*
* @param MediaObject|MediaObject[]|string|string[] $caption
*
* @return static
*
* @see http://schema.org/caption
*/
public function caption($caption)
{
return $this->setProperty('caption', $caption);
}

/**
* If this MediaObject is an AudioObject or VideoObject, the transcript of
* that object.
Expand Down
15 changes: 15 additions & 0 deletions src/BedType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Spatie\SchemaOrg;

/**
* A type of bed. This is used for indicating the bed or beds available in an
* accommodation.
*
* @see http://schema.org/BedType
*
* @mixin \Spatie\SchemaOrg\QualitativeValue
*/
class BedType extends BaseType
{
}
14 changes: 14 additions & 0 deletions src/Brand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,18 @@ public function review($review)
return $this->setProperty('review', $review);
}

/**
* 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);
}

}
16 changes: 16 additions & 0 deletions src/BroadcastChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@ public function broadcastChannelId($broadcastChannelId)
return $this->setProperty('broadcastChannelId', $broadcastChannelId);
}

/**
* The frequency used for over-the-air broadcasts. Numeric values or simple
* ranges e.g. 87-99. In addition a shortcut idiom is supported for
* frequences of AM and FM radio channels, e.g. "87 FM".
*
* @param BroadcastFrequencySpecification|BroadcastFrequencySpecification[]|string|string[] $broadcastFrequency
*
* @return static
*
* @see http://schema.org/broadcastFrequency
*/
public function broadcastFrequency($broadcastFrequency)
{
return $this->setProperty('broadcastFrequency', $broadcastFrequency);
}

/**
* The type of service required to have access to the channel (e.g. Standard
* or Premium).
Expand Down
29 changes: 29 additions & 0 deletions src/BroadcastFrequencySpecification.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace Spatie\SchemaOrg;

/**
* The frequency in MHz and the modulation used for a particular
* BroadcastService.
*
* @see http://schema.org/BroadcastFrequencySpecification
*
* @mixin \Spatie\SchemaOrg\Intangible
*/
class BroadcastFrequencySpecification extends BaseType
{
/**
* The frequency in MHz for a particular broadcast.
*
* @param QuantitativeValue|QuantitativeValue[]|float|float[]|int|int[] $broadcastFrequencyValue
*
* @return static
*
* @see http://schema.org/broadcastFrequencyValue
*/
public function broadcastFrequencyValue($broadcastFrequencyValue)
{
return $this->setProperty('broadcastFrequencyValue', $broadcastFrequencyValue);
}

}
30 changes: 30 additions & 0 deletions src/BroadcastService.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,22 @@ public function broadcastDisplayName($broadcastDisplayName)
return $this->setProperty('broadcastDisplayName', $broadcastDisplayName);
}

/**
* The frequency used for over-the-air broadcasts. Numeric values or simple
* ranges e.g. 87-99. In addition a shortcut idiom is supported for
* frequences of AM and FM radio channels, e.g. "87 FM".
*
* @param BroadcastFrequencySpecification|BroadcastFrequencySpecification[]|string|string[] $broadcastFrequency
*
* @return static
*
* @see http://schema.org/broadcastFrequency
*/
public function broadcastFrequency($broadcastFrequency)
{
return $this->setProperty('broadcastFrequency', $broadcastFrequency);
}

/**
* The timezone in [ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601)
* for which the service bases its broadcasts
Expand Down Expand Up @@ -84,6 +100,20 @@ public function broadcaster($broadcaster)
return $this->setProperty('broadcaster', $broadcaster);
}

/**
* A broadcast channel of a broadcast service.
*
* @param BroadcastChannel|BroadcastChannel[] $hasBroadcastChannel
*
* @return static
*
* @see http://schema.org/hasBroadcastChannel
*/
public function hasBroadcastChannel($hasBroadcastChannel)
{
return $this->setProperty('hasBroadcastChannel', $hasBroadcastChannel);
}

/**
* A broadcast service to which the broadcast service may belong to such as
* regional variations of a national channel.
Expand Down
24 changes: 15 additions & 9 deletions src/Campground.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@
namespace Spatie\SchemaOrg;

/**
* A camping site, campsite, or campground is a place used for overnight stay in
* the outdoors. In British English a campsite is an area, usually divided into
* a number of pitches, where people can camp overnight using tents or camper
* vans or caravans; this British English use of the word is synonymous with the
* A camping site, campsite, or [[Campground]] is a place used for overnight
* stay in the outdoors, typically containing individual [[CampingPitch]]
* locations.
*
*
* In British English a campsite is an area, usually divided into a number of
* pitches, where people can camp overnight using tents or camper vans or
* caravans; this British English use of the word is synonymous with the
* American English expression campground. In American English the term campsite
* generally means an area where an individual, family, group, or military unit
* can pitch a tent or parks a camper; a campground may contain many campsites
* (Source: Wikipedia, the free encyclopedia, see <a
* href="http://en.wikipedia.org/wiki/Campsite">http://en.wikipedia.org/wiki/Campsite</a>).
* can pitch a tent or park a camper; a campground may contain many campsites
* (Source: Wikipedia see
* [https://en.wikipedia.org/wiki/Campsite](https://en.wikipedia.org/wiki/Campsite)).
*
*
*
* See also the <a href="/docs/hotels.html">dedicated document on the use of
* schema.org for marking up hotels and other forms of accommodations</a>.
* See also the dedicated [document on the use of schema.org for marking up
* hotels and other forms of accommodations](/docs/hotels.html).
*
* @see http://schema.org/Campground
*
Expand Down
Loading

0 comments on commit f2796c1

Please sign in to comment.