nodes = $nodes; $this->prohibited = $prohibited; } /** * @return Node[] */ public function getNodes(): array { return $this->nodes; } public function __toString(): string { return ($this->prohibited ? '-' : '') . '[' . implode(' ', array_map(fn($node) => (string)$node, $this->nodes)) . ']'; } }