Trait luya\web\jsonld\SocialMediaPostingTrait

Uses Traitsluya\web\jsonld\ArticleTrait
Implemented byluya\web\jsonld\SocialMediaPosting
Available since version1.0.1

JsonLd - Social Media Posting trait

See also http://schema.org/SocialMediaPosting.

Public Methods

Hide inherited methods

Method Description Defined By
getSharedContent() luya\web\jsonld\SocialMediaPostingTrait
setSharedContent() A CreativeWork such as an image, video, or audio clip shared as part of this posting. luya\web\jsonld\SocialMediaPostingTrait

Method Details

Hide inherited methods

getSharedContent() public method

public luya\web\jsonld\CreativeWork getSharedContent ( )

                public function getSharedContent()
{
    return $this->_sharedContent;
}

            
setSharedContent() public method

A CreativeWork such as an image, video, or audio clip shared as part of this posting.

public static setSharedContent ( luya\web\jsonld\CreativeWork $sharedContent )
$sharedContent luya\web\jsonld\CreativeWork

                public function setSharedContent(CreativeWork $sharedContent)
{
    $this->_sharedContent = $sharedContent;
    return $this;
}