inc/ImageObject.class.php
<?php
/**
* Copyright (C) 2015
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
namespace bmarwell\wp_jsonld;
use bmarwell\wp_jsonld\JsonLD;
/**
* Class: ImageObject.
*
* Represents an ImageObject
*
* @see JsonLD
*/
class ImageObject extends JsonLD {
/**
* url
*
* where to find this image.
*
* @var mixed
*/
public $url;
/**
* width
*
* @var Integer
*/
public $width;
/**
* height
*
* @var Integer
*/
public $height;
/**
* image
*
* An image of this item(?).
*
* @var URL
*/
public $image;
/**
* caption
*
* The caption for this object
*
* @var String
*/
public $caption;
/**
* contentUrl
*
* Actual bytes of the media object, for example the image file or video file.
*
* @var mixed
*/
public $contentUrl;
/**
*/
public function __construct($type = "ImageObject") {
parent::__construct($type);
}
}