preposition = $preposition; parent::__construct($name, $typeNode, $description); } public function __toString() : string { // @see https://github.com/rectorphp/rector/issues/3438 # 'as'/'of' $bound = $this->bound instanceof TypeNode ? ' ' . $this->preposition . ' ' . $this->bound : ''; $content = $this->name . $bound . ' ' . $this->description; return \trim($content); } }