name = $name; $this->parameters = $parameters; $this->options = $options; } public function build(): string { $name = $this->lowercase ? strtolower($this->name) : $this->name; $parameters = ''; if ($this->parameters !== []) { $parameters = '(' . implode(',', $this->parameters) . ')'; } return trim($name . $parameters . ' ' . $this->options); } public function __toString(): string { return $this->build(); } }