| Total Complexity | 1 |
| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | class Image extends Extension |
||
| 33 | { |
||
| 34 | /** |
||
| 35 | * Name of Namescapce. |
||
| 36 | */ |
||
| 37 | public const NAMESPACE_NAME = 'image'; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Namespace URL. |
||
| 41 | */ |
||
| 42 | public const NAMESPACE_URL = 'http://www.google.com/schemas/sitemap-image/1.1'; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Element name. |
||
| 46 | */ |
||
| 47 | public const ELEMENT_NAME = 'image'; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Location. |
||
| 51 | * |
||
| 52 | * @var \Wszetko\Sitemap\Items\DataTypes\URLType |
||
| 53 | */ |
||
| 54 | protected $loc; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * The caption of the image. |
||
| 58 | * |
||
| 59 | * @var \Wszetko\Sitemap\Items\DataTypes\StringType |
||
| 60 | */ |
||
| 61 | protected $caption; |
||
| 62 | |||
| 63 | /** |
||
| 64 | * The geographic location of the image. |
||
| 65 | * |
||
| 66 | * @var \Wszetko\Sitemap\Items\DataTypes\StringType |
||
| 67 | */ |
||
| 68 | protected $geoLocation; |
||
| 69 | |||
| 70 | /** |
||
| 71 | * The title of the image. |
||
| 72 | * |
||
| 73 | * @var \Wszetko\Sitemap\Items\DataTypes\StringType |
||
| 74 | */ |
||
| 75 | protected $title; |
||
| 76 | |||
| 77 | /** |
||
| 78 | * A URL to the license of the image. |
||
| 79 | * |
||
| 80 | * @var \Wszetko\Sitemap\Items\DataTypes\ExternalURLType |
||
| 81 | */ |
||
| 82 | protected $license; |
||
| 83 | |||
| 84 | /** |
||
| 85 | * Image constructor. |
||
| 86 | * |
||
| 87 | * @param string $loc |
||
| 88 | * |
||
| 89 | * @throws \ReflectionException |
||
| 90 | * @throws \Error |
||
| 91 | */ |
||
| 92 | 30 | public function __construct(string $loc) |
|
| 100 |