luyadev/luya

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

Summary

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

namespace luya\web\jsonld;

/**
 * JsonLd MediaObject Interface.
 *
 * @see https://schema.org/MediaObject
 * @author Basil Suter <basil@nadar.io>
 * @since 1.0.3
 */
interface MediaObjectInterface extends CreativeWorkInterface
{
    /**
     * Actual bytes of the media object, for example the image file or video file.
     *
     * @param UrlValue $url
     * @return static
     */
    public function setContentUrl(UrlValue $url);

    /**
     * Getter method for contentUrl.
     */
    public function getContentUrl();

    /**
     * A URL pointing to a player for a specific video. In general, this is the information in the src element of an embed tag and should not be the same as the content of the loc tag.
     *
     * @param UrlValue $url
     * @return static
     */
    public function setEmbedUrl(UrlValue $url);

    /**
     * Getter method for embedUrl.
     */
    public function getEmbedUrl();

    /**
     * Date when this media object was uploaded to this site.
     * @param DateValue $date
     * @return static
     */
    public function setUploadDate(DateValue $date);

    /**
     * Getter method for uploadDate.
     */
    public function getUploadDate();
}