level = $level; $this->token = $token; $this->id = Environment::slugify($this->value->getText()); } public function getValue(): SpanNode { return $this->value; } public function getLevel(): int { return $this->level; } public function setTarget(string $target): void { $this->target = $target; } public function getTarget(): string { return $this->target; } public function getId(): string { return $this->id; } }