add text to node
This commit is contained in:
parent
e55133ceac
commit
c0994d806e
5 changed files with 17 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue