add text to node

This commit is contained in:
Yisroel Baum 2026-02-20 11:58:13 +02:00
parent e55133ceac
commit c0994d806e
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
5 changed files with 17 additions and 0 deletions

View file

@ -2,14 +2,22 @@
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;
}
}