You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
697 B

<?php
class News
{
private string $title;
private string $description;
private string $pubdate;
private string $link;
public function __construct(string $title, string $description, string $pubdate, string $link)
{
$this->title = $title;
$this->description = $description;
$this->pubdate = $pubdate;
$this->link = $link;
}
public function getTitle()
{
return $this->title;
}
public function getDescription()
{
return $this->description;
}
public function getPubdate()
{
return $this->pubdate;
}
public function getLink()
{
return $this->link;
}
}
?>