/** * @param string $text * @param Path $path */ public function __construct($text, Path $path) { parent::__construct($text); $this->path = $path; }