mirror of
https://github.com/igorsimdyanov/php8.git
synced 2025-08-06 11:10:42 +00:00
16 lines
310 B
PHP
16 lines
310 B
PHP
<?php
|
|
require_once 'topic.php';
|
|
class Article extends Topic {
|
|
public $authors;
|
|
|
|
public function __construct(
|
|
$title,
|
|
$content,
|
|
$authors,
|
|
$published_at = null)
|
|
{
|
|
parent::__construct($title, $content, $published_at);
|
|
$this->authors = $authors;
|
|
}
|
|
}
|