rosavox/source/entities/doc.php

43 lines
497 B
PHP

<?php
namespace rosavox\entities\doc;
/**
*/
class entity
{
public string $title;
public array $authors;
public string $content;
public ?string $reasoning;
public function __construct(
string $title,
array $authors,
string $content,
?string $reasoning
)
{
$this->title = $title;
$this->authors = $authors;
$this->content = $content;
$this->reasoning = $reasoning;
}
}
/**
*/
function empty_() : entity
{
return (new entity(
'',
[],
'',
null,
));
}