Files
afup/sources/PlanetePHP/DisplayableFeedArticle.php
2020-05-16 16:59:29 +02:00

89 lines
1.6 KiB
PHP

<?php
namespace PlanetePHP;
class DisplayableFeedArticle
{
/** @var string */
private $title;
/** @var string */
private $url;
/** @var int */
private $update;
/** @var string */
private $author;
/** @var string */
private $content;
/** @var string */
private $feedName;
/** @var string */
private $feedUrl;
/**
* @param string $title
* @param string $url
* @param int $update
* @param string $author
* @param string $content
* @param string $feedName
* @param string $feedUrl
*/
public function __construct(
$title,
$url,
$update,
$author,
$content,
$feedName,
$feedUrl
) {
$this->title = $title;
$this->url = $url;
$this->update = $update;
$this->author = $author;
$this->content = $content;
$this->feedName = $feedName;
$this->feedUrl = $feedUrl;
}
public function getTitle()
{
return $this->title;
}
public function getUrl()
{
return $this->url;
}
public function getUpdate()
{
return $this->update;
}
public function getAuthor()
{
return $this->author;
}
public function getContent()
{
return $this->content;
}
public function getFeedName()
{
return $this->feedName;
}
public function getFeedUrl()
{
return $this->feedUrl;
}
public function setContent($content)
{
$this->content = $content;
}
}