luyadev/luya

View on GitHub
core/web/jsonld/SocialMediaPostingTrait.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace luya\web\jsonld;

/**
 * JsonLd - Social Media Posting trait
 *
 * @see https://schema.org/SocialMediaPosting
 *
 * @author Alex Schmid <alex.schmid@stud.unibas.ch>
 * @since 1.0.1
 */
trait SocialMediaPostingTrait
{
    use ArticleTrait;

    private $_sharedContent;

    /**
     * @return CreativeWork
     */
    public function getSharedContent()
    {
        return $this->_sharedContent;
    }

    /**
     * A CreativeWork such as an image, video, or audio clip shared as part of this posting.
     *
     * @param CreativeWork $sharedContent
     * @return static
     */
    public function setSharedContent(CreativeWork $sharedContent)
    {
        $this->_sharedContent = $sharedContent;
        return $this;
    }
}