public function __construct($app, $configs, $name, $path) { $this->name = $name; $this->{$path} = $path; parent::__construct($app, $configs); }