23 lines
322 B
PHP
23 lines
322 B
PHP
<?php
|
|
|
|
namespace App\Node;
|
|
|
|
use App\Text\Text;
|
|
|
|
class Node
|
|
{
|
|
public function __construct(
|
|
private string $title,
|
|
private Text $text,
|
|
) {}
|
|
|
|
public function getTitle(): string
|
|
{
|
|
return $this->title;
|
|
}
|
|
|
|
public function getText(): Text
|
|
{
|
|
return $this->text;
|
|
}
|
|
}
|