for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Wszetko\Sitemap\Items;
/**
* Class Image
*
* @package Wszetko\Sitemap\Items
* @method setLoc($vloc)
* @method getLoc()
* @method setCaption($caption)
* @method getCaption()
* @method setGeoLocation($geoLocation)
* @method getGeoLocation()
* @method setTitle($title)
* @method getTitle()
* @method setLicense($licence)
* @method getLicense()
*/
class Image extends Extension
{
* Name of Namescapce
const NAMESPACE_NAME = 'image';
* Namespace URL
const NAMESPACE_URL = 'http://www.google.com/schemas/sitemap-image/1.1';
* Element name
const ELEMENT_NAME = 'image';
* Location
* @var \Wszetko\Sitemap\Items\DataTypes\URLType
protected $loc;
* The caption of the image.
* @var \Wszetko\Sitemap\Items\DataTypes\StringType
protected $caption;
* The geographic location of the image.
protected $geoLocation;
* The title of the image.
protected $title;
* A URL to the license of the image.
* @var \Wszetko\Sitemap\Items\DataTypes\ExternalURLType
protected $license;
* Image constructor
* @param string $loc
* @throws \ReflectionException
public function __construct(string $loc)
parent::__construct();
$this->loc->setRequired(true);
$this->setLoc($loc);
}