public function __construct($name, Credential $remote) { parent::__construct($name, $remote->host(), $remote->user(), ['key' => $remote->secret()]); $this->remote = $remote; }