- md5
- 1ff4c802c31ca74f83a60527e9e0347e
- sha1
- f8f40a71da1b1ad4206e22f12217549eef8a22ff
- sha256
- 4296a2f8901f1d8c5ea901a57191289a9f5ac7d60c5a85b96ef115e0c459b739
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
<?php
/**
* Joomla! Content Management System
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Feed;
defined('JPATH_PLATFORM') or die;
/**
* Feed Link class.
*
* @since 12.3
*/
class FeedLink
{
/**
* The URI to the linked resource.
*
* @var string
* @since 12.3
*/
public $uri;
/**
* The relationship between the feed and the linked resource.
*
* @var string
* @since 12.3
*/
public $relation;
/**
* The resource type.
*
* @var string
* @since 12.3
*/
public $type;
/**
* The language of the resource found at the given URI.
*
* @var string
* @since 12.3
*/
public $language;
/**
* The title of the resource.
*
* @var string
* @since 12.3
*/
public $title;
/**
* The length of the resource in bytes.
*
* @var integer
* @since 12.3
*/
public $length;
/**
* Constructor.
*
* @param string $uri The URI to the linked resource.
* @param string $relation The relationship between the feed and the linked resource.
* @param string $type The resource type.
* @param string $language The language of the resource found at the given URI.
* @param string $title The title of the resource.
* @param integer $length The length of the resource in bytes.
*
* @since 12.3
* @throws \InvalidArgumentException
*/
public function __construct($uri = null, $relation = null, $type = null, $language = null, $title = null, $length = null)
{
$this->uri = $uri;
$this->relation = $relation;
$this->type = $type;
$this->language = $language;
$this->title = $title;
// Validate the length input.
if (isset($length) && !is_numeric($length))
{
throw new \InvalidArgumentException('Length must be numeric.');
}
$this->length = (int) $length;
}
}
The same content is in 26 releases, Joomla 3.8.4-rc to 4.0.0-alpha3. See them all, or every version of this file.