Trait luya\web\jsonld\PersonTrait
Implemented by | luya\web\jsonld\Person |
---|---|
Available since version | 1.0.0 |
Source Code | https://github.com/luyadev/luya/blob/master/core/web/jsonld/PersonTrait.php |
JsonLd - Person trait
See also http://schema.org/Person.
Public Methods
Method Details
public string getAdditionalName ( ) |
public function getAdditionalName()
{
return $this->_additionalName;
}
public luya\web\jsonld\PostalAddress|string getAddress ( ) |
public function getAddress()
{
return $this->_address;
}
public luya\web\jsonld\Organization getAffiliation ( ) |
public function getAffiliation()
{
return $this->_affiliation;
}
public luya\web\jsonld\Place getBirthPlace ( ) |
public function getBirthPlace()
{
return $this->_birthPlace;
}
public \luya\web\jsonld\Brand|luya\web\jsonld\Organization getBrand ( ) |
public function getBrand()
{
return $this->_brand;
}
public luya\web\jsonld\Person getChildren ( ) |
public function getChildren()
{
return $this->_children;
}
public luya\web\jsonld\Person getColleague ( ) |
public function getColleague()
{
return $this->_colleague;
}
public luya\web\jsonld\ContactPoint getContactPoint ( ) |
public function getContactPoint()
{
return $this->_contactPoint;
}
public luya\web\jsonld\Place getDeathPlace ( ) |
public function getDeathPlace()
{
return $this->_deathPlace;
}
public luya\web\jsonld\Person getFollows ( ) |
public function getFollows()
{
return $this->_follows;
}
public luya\web\jsonld\Organization|luya\web\jsonld\Person getFunder ( ) |
public function getFunder()
{
return $this->_funder;
}
public \luya\web\jsonld\GenderType|string getGender ( ) |
public function getGender()
{
return $this->_gender;
}
public string getGlobalLocationNumber ( ) |
public function getGlobalLocationNumber()
{
return $this->_globalLocationNumber;
}
public \luya\web\jsonld\Distance|\luya\web\jsonld\QuantitativeValue getHeight ( ) |
public function getHeight()
{
return $this->_height;
}
public luya\web\jsonld\ContactPoint|luya\web\jsonld\Place getHomeLocation ( ) |
public function getHomeLocation()
{
return $this->_homeLocation;
}
public string getHonorificPrefix ( ) |
public function getHonorificPrefix()
{
return $this->_honorificPrefix;
}
public string getHonorificSuffix ( ) |
public function getHonorificSuffix()
{
return $this->_honorificSuffix;
}
public luya\web\jsonld\Offer getMakesOffer ( ) |
public function getMakesOffer()
{
return $this->_makesOffer;
}
public luya\web\jsonld\Organization|\luya\web\jsonld\ProgramMembership getMemberOf ( ) |
public function getMemberOf()
{
return $this->_memberOf;
}
public luya\web\jsonld\Country getNationality ( ) |
public function getNationality()
{
return $this->_nationality;
}
public luya\web\jsonld\Event getPerformerIn ( ) |
public function getPerformerIn()
{
return $this->_performerIn;
}
public luya\web\jsonld\CreativeWork|\luya\web\jsonld\URL getPublishingPrinciples ( ) |
public function getPublishingPrinciples()
{
return $this->_publishingPrinciples;
}
public luya\web\jsonld\Person getRelatedTo ( ) |
public function getRelatedTo()
{
return $this->_relatedTo;
}
public luya\web\jsonld\Person getSibling ( ) |
public function getSibling()
{
return $this->_sibling;
}
public luya\web\jsonld\Organization|luya\web\jsonld\Person getSponsor ( ) |
public function getSponsor()
{
return $this->_sponsor;
}
public luya\web\jsonld\ContactPoint|luya\web\jsonld\Place getWorkLocation ( ) |
public function getWorkLocation()
{
return $this->_workLocation;
}
public luya\web\jsonld\Organization getWorksFor ( ) |
public function getWorksFor()
{
return $this->_worksFor;
}
An additional name for a Person, can be used for a middle name.
public static setAdditionalName ( $additionalName ) | ||
$additionalName | string |
public function setAdditionalName($additionalName)
{
$this->_additionalName = $additionalName;
return $this;
}
Physical address of the item.
public static setAddress ( luya\web\jsonld\PostalAddress $address ) | ||
$address | luya\web\jsonld\PostalAddress|string |
public function setAddress(PostalAddress $address)
{
$this->_address = $address;
return $this;
}
An organization that this person is affiliated with. For example, a school/university, a club, or a team.
public static setAffiliation ( luya\web\jsonld\Organization $affiliation ) | ||
$affiliation | luya\web\jsonld\Organization |
public function setAffiliation(Organization $affiliation)
{
$this->_affiliation = $affiliation;
return $this;
}
An award won by or for this item.
Supersedes awards.
public static setAward ( $award ) | ||
$award | string |
public function setAward($award)
{
$this->_award = $award;
return $this;
}
Date of birth.
public static setBirthDate ( luya\web\jsonld\DateValue $birthDate ) | ||
$birthDate | luya\web\jsonld\DateValue |
public function setBirthDate(DateValue $birthDate)
{
$this->_birthDate = $birthDate->getValue();
return $this;
}
The place where the person was born.
public static setBirthPlace ( $birthPlace ) | ||
$birthPlace | luya\web\jsonld\Place |
public function setBirthPlace($birthPlace)
{
$this->_birthPlace = $birthPlace;
return $this;
}
The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.
public static setBrand ( $brand ) | ||
$brand | \luya\web\jsonld\Brand|luya\web\jsonld\Organization |
public function setBrand($brand)
{
$this->_brand = $brand;
return $this;
}
A child of the person.
public static setChildren ( luya\web\jsonld\Person $children ) | ||
$children | luya\web\jsonld\Person |
public function setChildren(Person $children)
{
$this->_children = $children;
return $this;
}
A colleague of the person.
Supersedes colleagues.
public static setColleague ( luya\web\jsonld\Person $colleague ) | ||
$colleague | luya\web\jsonld\Person |
public function setColleague(Person $colleague)
{
$this->_colleague = $colleague;
return $this;
}
A contact point for a person or organization.
Supersedes contactPoints.
public static setContactPoint ( luya\web\jsonld\ContactPoint $contactPoint ) | ||
$contactPoint | luya\web\jsonld\ContactPoint |
public function setContactPoint(ContactPoint $contactPoint)
{
$this->_contactPoint = $contactPoint;
return $this;
}
Date of death.
public static setDeathDate ( luya\web\jsonld\DateValue $deathDate ) | ||
$deathDate | luya\web\jsonld\DateValue |
public function setDeathDate(DateValue $deathDate)
{
$this->_deathDate = $deathDate->getValue();
return $this;
}
The place where the person died.
public static setDeathPlace ( luya\web\jsonld\Place $deathPlace ) | ||
$deathPlace | luya\web\jsonld\Place |
public function setDeathPlace(Place $deathPlace)
{
$this->_deathPlace = $deathPlace;
return $this;
}
The Dun & Bradstreet DUNS number for identifying an organization or business person.
public static setDuns ( luya\web\jsonld\Person $duns ) | ||
$duns | string |
public function setDuns(Person $duns)
{
$this->_duns = $duns;
return $this;
}
Email address.
public static setEmail ( $email ) | ||
string |
public function setEmail($email)
{
$this->_email = $email;
return $this;
}
Family name. In the U.S., the last name of an Person.
This can be used along with givenName instead of the name property.
public static setFamilyName ( $familyName ) | ||
$familyName | string |
public function setFamilyName($familyName)
{
$this->_familyName = $familyName;
return $this;
}
The fax number.
public static setFaxNumber ( $faxNumber ) | ||
$faxNumber | string |
public function setFaxNumber($faxNumber)
{
$this->_faxNumber = $faxNumber;
return $this;
}
The most generic uni-directional social relation.
public static setFollows ( luya\web\jsonld\Person $follows ) | ||
$follows | luya\web\jsonld\Person |
public function setFollows(Person $follows)
{
$this->_follows = $follows;
return $this;
}
A person or organization that supports (sponsors) something through some kind of financial contribution.
public static setFunder ( $funder ) | ||
$funder | luya\web\jsonld\Organization|luya\web\jsonld\Person |
public function setFunder($funder)
{
ObjectHelper::isInstanceOf($funder, [Organization::class, PersonInterface::class]);
$this->_funder = $funder;
return $this;
}
Gender of the person. While http://schema.org/Male and http://schema.org/Female may be used, text strings are also acceptable for people who do not identify as a binary gender.
public static setGender ( $gender ) | ||
$gender | \luya\web\jsonld\GenderType|string |
public function setGender($gender)
{
$this->_gender = $gender;
return $this;
}
Given name. In the U.S., the first name of a Person.
This can be used along with familyName instead of the name property.
public static setGivenName ( $givenName ) | ||
$givenName | string |
public function setGivenName($givenName)
{
$this->_givenName = $givenName;
return $this;
}
The Global Location Number (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place.
The GLN is a 13-digit number used to identify parties and physical locations.
public static setGlobalLocationNumber ( $globalLocationNumber ) | ||
$globalLocationNumber | string |
public function setGlobalLocationNumber($globalLocationNumber)
{
$this->_globalLocationNumber = $globalLocationNumber;
return $this;
}
Points-of-Sales operated by the organization or person.
public static setHasPOS ( $hasPOS ) | ||
$hasPOS | luya\web\jsonld\Place |
public function setHasPOS($hasPOS)
{
$this->_hasPOS = $hasPOS;
return $this;
}
The height of the item.
public static setHeight ( $height ) | ||
$height | \luya\web\jsonld\Distance|\luya\web\jsonld\QuantitativeValue |
public function setHeight($height)
{
$this->_height = $height;
return $this;
}
A contact location for a person's residence.
public static setHomeLocation ( $homeLocation ) | ||
$homeLocation | luya\web\jsonld\ContactPoint|luya\web\jsonld\Place |
public function setHomeLocation($homeLocation)
{
$this->_homeLocation = $homeLocation;
return $this;
}
An honorific prefix preceding a Person's name such as Dr/Mrs/Mr.
public static setHonorificPrefix ( $honorificPrefix ) | ||
$honorificPrefix | string |
public function setHonorificPrefix($honorificPrefix)
{
$this->_honorificPrefix = $honorificPrefix;
return $this;
}
An honorific suffix preceding a Person's name such as M.D. /PhD/MSCSW.
public static setHonorificSuffix ( $honorificSuffix ) | ||
$honorificSuffix | string |
public function setHonorificSuffix($honorificSuffix)
{
$this->_honorificSuffix = $honorificSuffix;
return $this;
}
The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.
public static setIsicV4 ( $isicV4 ) | ||
$isicV4 | string |
public function setIsicV4($isicV4)
{
$this->_isicV4 = $isicV4;
return $this;
}
The job title of the person (for example, Financial Manager).
public static setJobTitle ( $jobTitle ) | ||
$jobTitle | string |
public function setJobTitle($jobTitle)
{
$this->_jobTitle = $jobTitle;
return $this;
}
The most generic bi-directional social/work relation.
public static setKnows ( luya\web\jsonld\Person $knows ) | ||
$knows | luya\web\jsonld\Person |
public function setKnows(Person $knows)
{
$this->_knows = $knows;
return $this;
}
A pointer to products or services offered by the organization or person.
Inverse property: offeredBy.
public static setMakesOffer ( luya\web\jsonld\Offer $makesOffer ) | ||
$makesOffer | luya\web\jsonld\Offer |
public function setMakesOffer(Offer $makesOffer)
{
$this->_makesOffer = $makesOffer;
return $this;
}
An Organization (or ProgramMembership) to which this Person or Organization belongs.
Inverse property: member.
public static setMemberOf ( $memberOf ) | ||
$memberOf | luya\web\jsonld\Organization|\luya\web\jsonld\ProgramMembership |
public function setMemberOf($memberOf)
{
$this->_memberOf = $memberOf;
return $this;
}
The North American Industry Classification System (NAICS) code for a particular organization or business person.
public static setNaics ( $naics ) | ||
$naics | string |
public function setNaics($naics)
{
$this->_naics = $naics;
return $this;
}
Nationality of the person.
public static setNationality ( luya\web\jsonld\Country $nationality ) | ||
$nationality | luya\web\jsonld\Country |
public function setNationality(Country $nationality)
{
$this->_nationality = $nationality;
return $this;
}
A parent of this person. Supersedes parents.
public static setParent ( luya\web\jsonld\Person $parent ) | ||
$parent | luya\web\jsonld\Person |
public function setParent(Person $parent)
{
$this->_parent = $parent;
return $this;
}
Event that this person is a performer or participant in.
public static setPerformerIn ( luya\web\jsonld\Event $performerIn ) | ||
$performerIn | luya\web\jsonld\Event |
public function setPerformerIn(Event $performerIn)
{
$this->_performerIn = $performerIn;
return $this;
}
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.
public static setPublishingPrinciples ( $publishingPrinciples ) | ||
$publishingPrinciples | luya\web\jsonld\CreativeWork|\luya\web\jsonld\URL |
public function setPublishingPrinciples($publishingPrinciples)
{
$this->_publishingPrinciples = $publishingPrinciples;
return $this;
}
The most generic familial relation.
public static setRelatedTo ( luya\web\jsonld\Person $relatedTo ) | ||
$relatedTo | luya\web\jsonld\Person |
public function setRelatedTo(Person $relatedTo)
{
$this->_relatedTo = $relatedTo;
return $this;
}
A sibling of the person. Supersedes siblings.
public static setSibling ( luya\web\jsonld\Person $sibling ) | ||
$sibling | luya\web\jsonld\Person |
public function setSibling(Person $sibling)
{
$this->_sibling = $sibling;
return $this;
}
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.
public static setSponsor ( $sponsor ) | ||
$sponsor | luya\web\jsonld\Organization|luya\web\jsonld\Person |
public function setSponsor($sponsor)
{
ObjectHelper::isInstanceOf($sponsor, [Organization::class, PersonInterface::class]);
$this->_sponsor = $sponsor;
return $this;
}
The person's spouse.
public static setSpouse ( luya\web\jsonld\Person $spouse ) | ||
$spouse | luya\web\jsonld\Person |
public function setSpouse(Person $spouse)
{
$this->_spouse = $spouse;
return $this;
}
The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.
public static setTaxID ( $taxID ) | ||
$taxID | string |
public function setTaxID($taxID)
{
$this->_taxID = $taxID;
return $this;
}
The telephone number.
public static setTelephone ( $telephone ) | ||
$telephone | string |
public function setTelephone($telephone)
{
$this->_telephone = $telephone;
return $this;
}
The Value-added Tax ID of the organization or person.
public static setVatID ( $vatID ) | ||
$vatID | string |
public function setVatID($vatID)
{
$this->_vatID = $vatID;
return $this;
}
A contact location for a person's place of work.
public static setWorkLocation ( $workLocation ) | ||
$workLocation | luya\web\jsonld\ContactPoint|luya\web\jsonld\Place |
public function setWorkLocation($workLocation)
{
$this->_workLocation = $workLocation;
return $this;
}
Organizations that the person works for.
public static setWorksFor ( luya\web\jsonld\Organization $worksFor ) | ||
$worksFor | luya\web\jsonld\Organization |
public function setWorksFor(Organization $worksFor)
{
$this->_worksFor = $worksFor;
return $this;
}