Oihana PHP System

Demand extends Intangible

An event happening at a certain time and location, such as a concert, lecture, or festival.

Repeated events may be structured as separate Event objects. see https://schema.org/Demand

Table of Contents

Constants

CONTEXT  = 'https://schema.org'
JSON-LD @context declaration for Schema.org.

Properties

$_from  : string|null
The metadata to indicates the edge 'from' identifier.
$_id  : null|string
The metadata identifier of the item.
$_key  : null|string
The metadata unique key identifier of the thing.
$_rev  : null|string
The metadata revision value of the thing.
$_to  : string|null
The metadata to indicates the edge 'to' identifier.
$acceptedPaymentMethod  : null|string|array<string|int, mixed>|PaymentMethod|LoanOrCredit
The payment method(s) that are accepted in general by an organization, or for some specific demand or offer.
$active  : bool|null
The active flag.
$additionalType  : array<string|int, mixed>|string|null|object
An additionalType for the item.
$advanceBookingRequirement  : QuantitativeValue|null
The amount of time that is required between accepting the offer and the actual usage of the resource or service.
$alternateName  : string|object|null
An alias for the item.
$areaServed  : null|string|Place|GeoShape|AdministrativeArea
The geographic area where a service or offered item is provided.
$asin  : null|string
An Amazon Standard Identification Number (ASIN) is a 10-character alphanumeric unique identifier assigned by Amazon.com and its partners for product identification within the Amazon organization.
$availability  : string|object|null
The availability of this item—for example In stock, Out of stock, Pre-order, etc.
$availabilityEnds  : string|null
The end of the availability of the product or service included in the offer.
$availabilityStarts  : string|null
The beginning of the availability of the product or service included in the offer.
$availableAtOrFrom  : null|array<string|int, mixed>|Place
The place(s) from which the offer can be obtained (e.g. store locations).
$availableDeliveryMethod  : null|array<string|int, mixed>|DeliveryMethod
The delivery method(s) available for this offer.
$businessFunction  : null|array<string|int, mixed>|BusinessFunction|DefinedTerm
The business function (e.g. sell, lease, repair, dispose) of the offer or component of a bundle (TypeAndQuantityNode).
$created  : null|string|DateTime
Date of creation of the resource.
$deliveryLeadTime  : QuantitativeValue|null
The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup.
$description  : string|null
A short description of the item.
$disambiguatingDescription  : string|null
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.
$eligibleCustomerType  : null|array<string|int, mixed>|BusinessEntityType|DefinedTerm
The type(s) of customers for which the given offer is valid.
$eligibleDuration  : QuantitativeValue|null
The duration for which the given offer is valid.
$eligibleQuantity  : QuantitativeValue|null
The interval and unit of measurement of ordering quantities for which the offer or price specification is valid.
$eligibleRegion  : null|string|Place|GeoShape
The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.
$eligibleTransactionVolume  : PriceSpecification|null
The transaction volume, in a monetary unit, for which the offer or price specification is valid, e.g. for indicating a minimal purchasing volume, to express free shipping above a certain order volume, or to limit the acceptance of credit cards to purchases to a certain minimal amount.
$gtin  : string|null
A correct gtin value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a "GS1 Digital Link" URL based on such a string.
$gtin12  : string|null
The GTIN-12 code of the product, or the product to which the offer refers.
$gtin13  : string|null
The GTIN-13 code of the product, or the product to which the offer refers.
$gtin14  : string|null
The GTIN-14 code of the product, or the product to which the offer refers.
$gtin8  : string|null
The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN.
$hasPart  : string|Thing|array<string|int, mixed>|null
Indicates an item that this part of this item.
$id  : null|int|string
The unique identifier of the item.
$identifier  : string|null
The identifier of the item.
$image  : string|object|null
The image reference of this resource.
$includesObject  : array<string|int, mixed>|TypeAndQuantityNode|null
This links to a node or nodes indicating the exact quantity of the products included in an Offer or ProductCollection.
$ineligibleRegion  : null|string|Place|GeoShape
The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.
$inventoryLevel  : QuantitativeValue|null
The current approximate inventory level for the item or items.
$isPartOf  : string|Thing|array<string|int, mixed>|null
Indicates an item that this item is part of.
$itemCondition  : OfferItemCondition|DefinedTerm|null
A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer.
$itemOffered  : array<string|int, mixed>|CreativeWork|Event|Product|Service|null
An item being offered (or demanded). The transactional nature of the offer or demand is documented using businessFunction, e.g. sell, lease etc.
$license  : string|object|null
A legal document giving official permission to do something with the resource.
$modified  : null|string|DateTime
Date on which the resource was changed.
$mpn  : string|null
The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.
$name  : int|string|null
The name of the item.
$priceSpecification  : null|array<string|int, mixed>|PriceSpecification
One or more detailed price specifications, indicating the unit price and delivery or payment charges.
$publisher  : string|array<string|int, mixed>|Person|Organization|null
The publisher of the resource.
$seller  : null|Organization|Person
An entity which offers (sells / leases / lends / loans) the services / goods.
$serialNumber  : string|null
The serial number or any alphanumeric identifier of a particular product.
$sku  : string|null
The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers.
$url  : int|string|null
URL of the item.
$validFrom  : null|string|int|DateTime
The date when the item becomes valid (DateTime).
$validThrough  : null|string|int|DateTime
The end of the validity of offer, price specification, or opening hours data (DateTime).
$warranty  : null|string|DefinedTerm|WarrantyPromise
The end of the validity of offer, price specification, or opening hours data (DateTime).

Methods

__construct()  : mixed
Constructor to hydrate public properties from an array or stdClass.
jsonSerialize()  : array<string|int, mixed>
Serializes the current object into a JSON-LD array.

Constants

CONTEXT

JSON-LD @context declaration for Schema.org.

public mixed CONTEXT = 'https://schema.org'

Properties

$_from

The metadata to indicates the edge 'from' identifier.

public string|null $_from

$_id

The metadata identifier of the item.

public null|string $_id

$_key

The metadata unique key identifier of the thing.

public null|string $_key

$_rev

The metadata revision value of the thing.

public null|string $_rev

$_to

The metadata to indicates the edge 'to' identifier.

public string|null $_to

$acceptedPaymentMethod

The payment method(s) that are accepted in general by an organization, or for some specific demand or offer.

public null|string|array<string|int, mixed>|PaymentMethod|LoanOrCredit $acceptedPaymentMethod

$active

The active flag.

public bool|null $active

$additionalType

An additionalType for the item.

public array<string|int, mixed>|string|null|object $additionalType

$advanceBookingRequirement

The amount of time that is required between accepting the offer and the actual usage of the resource or service.

public QuantitativeValue|null $advanceBookingRequirement

$alternateName

An alias for the item.

public string|object|null $alternateName

$asin

An Amazon Standard Identification Number (ASIN) is a 10-character alphanumeric unique identifier assigned by Amazon.com and its partners for product identification within the Amazon organization.

public null|string $asin

$availability

The availability of this item—for example In stock, Out of stock, Pre-order, etc.

public string|object|null $availability

$availabilityEnds

The end of the availability of the product or service included in the offer.

public string|null $availabilityEnds

$availabilityStarts

The beginning of the availability of the product or service included in the offer.

public string|null $availabilityStarts

$availableAtOrFrom

The place(s) from which the offer can be obtained (e.g. store locations).

public null|array<string|int, mixed>|Place $availableAtOrFrom

$availableDeliveryMethod

The delivery method(s) available for this offer.

public null|array<string|int, mixed>|DeliveryMethod $availableDeliveryMethod

$businessFunction

The business function (e.g. sell, lease, repair, dispose) of the offer or component of a bundle (TypeAndQuantityNode).

public null|array<string|int, mixed>|BusinessFunction|DefinedTerm $businessFunction

The default is http://purl.org/goodrelations/v1#Sell. Commonly used values:

  • http://purl.org/goodrelations/v1#ConstructionInstallation
  • http://purl.org/goodrelations/v1#Dispose
  • http://purl.org/goodrelations/v1#LeaseOut
  • http://purl.org/goodrelations/v1#Maintain
  • http://purl.org/goodrelations/v1#ProvideService
  • http://purl.org/goodrelations/v1#Repair
  • http://purl.org/goodrelations/v1#Sell
  • http://purl.org/goodrelations/v1#Buy

$created

Date of creation of the resource.

public null|string|DateTime $created

$deliveryLeadTime

The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup.

public QuantitativeValue|null $deliveryLeadTime

$description

A short description of the item.

public string|null $description

$disambiguatingDescription

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.

public string|null $disambiguatingDescription

$eligibleQuantity

The interval and unit of measurement of ordering quantities for which the offer or price specification is valid.

public QuantitativeValue|null $eligibleQuantity

This allows e.g. specifying that a certain freight charge is valid only for a certain quantity.

$eligibleRegion

The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.

public null|string|Place|GeoShape $eligibleRegion

$eligibleTransactionVolume

The transaction volume, in a monetary unit, for which the offer or price specification is valid, e.g. for indicating a minimal purchasing volume, to express free shipping above a certain order volume, or to limit the acceptance of credit cards to purchases to a certain minimal amount.

public PriceSpecification|null $eligibleTransactionVolume

$gtin

A correct gtin value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a "GS1 Digital Link" URL based on such a string.

public string|null $gtin

The numeric component should also have a valid GS1 check digit and meet the other rules for valid GTINs.

$gtin12

The GTIN-12 code of the product, or the product to which the offer refers.

public string|null $gtin12

The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items.

$gtin13

The GTIN-13 code of the product, or the product to which the offer refers.

public string|null $gtin13

This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero.

$gtin14

The GTIN-14 code of the product, or the product to which the offer refers.

public string|null $gtin14

$gtin8

The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN.

public string|null $gtin8

$hasPart

Indicates an item that this part of this item.

public string|Thing|array<string|int, mixed>|null $hasPart

$id

The unique identifier of the item.

public null|int|string $id

$identifier

The identifier of the item.

public string|null $identifier

$image

The image reference of this resource.

public string|object|null $image

$includesObject

This links to a node or nodes indicating the exact quantity of the products included in an Offer or ProductCollection.

public array<string|int, mixed>|TypeAndQuantityNode|null $includesObject

$ineligibleRegion

The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.

public null|string|Place|GeoShape $ineligibleRegion

$inventoryLevel

The current approximate inventory level for the item or items.

public QuantitativeValue|null $inventoryLevel

$isPartOf

Indicates an item that this item is part of.

public string|Thing|array<string|int, mixed>|null $isPartOf

$itemCondition

A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer.

public OfferItemCondition|DefinedTerm|null $itemCondition

Also used for product return policies to specify the condition of products accepted for returns.

$itemOffered

An item being offered (or demanded). The transactional nature of the offer or demand is documented using businessFunction, e.g. sell, lease etc.

public array<string|int, mixed>|CreativeWork|Event|Product|Service|null $itemOffered

While several common expected types are listed explicitly in this definition, others can be used. Using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.

$license

A legal document giving official permission to do something with the resource.

public string|object|null $license

$modified

Date on which the resource was changed.

public null|string|DateTime $modified

$mpn

The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.

public string|null $mpn

$name

The name of the item.

public int|string|null $name

$priceSpecification

One or more detailed price specifications, indicating the unit price and delivery or payment charges.

public null|array<string|int, mixed>|PriceSpecification $priceSpecification

$seller

An entity which offers (sells / leases / lends / loans) the services / goods.

public null|Organization|Person $seller

A seller may also be a provider.

$serialNumber

The serial number or any alphanumeric identifier of a particular product.

public string|null $serialNumber

When attached to an offer, it is a shortcut for the serial number of the product included in the offer.

$sku

The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers.

public string|null $sku

$url

URL of the item.

public int|string|null $url

$validFrom

The date when the item becomes valid (DateTime).

public null|string|int|DateTime $validFrom

$validThrough

The end of the validity of offer, price specification, or opening hours data (DateTime).

public null|string|int|DateTime $validThrough

Methods

__construct()

Constructor to hydrate public properties from an array or stdClass.

public __construct([array<string|int, mixed>|object|null $init = null ]) : mixed

This allows objects to be quickly populated with associative data without manually setting each property.

Parameters
$init : array<string|int, mixed>|object|null = null

A data array or object used to initialize the instance. Keys must match public property names.

Tags
example
use org\schema\Person;
use org\schema\constants\Prop;

$person = new Person
([
    Prop::NAME => 'Jane Doe',
    Prop::URL  => 'https://example.com/janedoe'
]);

echo $person->name; // Outputs: Jane Doe

jsonSerialize()

Serializes the current object into a JSON-LD array.

public jsonSerialize() : array<string|int, mixed>

This method will include all public properties, the schema.org @context, and the inferred @type based on the class name.

Null values will be automatically removed using compress().

Tags
throws
ReflectionException

If reflection fails when accessing properties.

example
use org\schema\Person;
use org\schema\constants\Prop;

$person = new Person([
    Prop::NAME => 'John Smith',
    Prop::ID   => 'jsmith-001'
]);

echo json_encode($person, JSON_PRETTY_PRINT);

Output:

{
  "@type": "Person",
  "@context": "https://schema.org",
  "id": "jsmith-001",
  "name": "John Smith"
}
Return values
array<string|int, mixed>

A JSON-LD array representation of the object.


        
On this page

Search results