Skip to content

Commit

Permalink
Add method to retrieve connected state
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineOmega committed Aug 7, 2019
1 parent 9956819 commit 68ba18b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SSHConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,9 @@ public function download(string $remotePath, string $localPath): bool

return ssh2_scp_recv($this->resource, $remotePath, $localPath);
}

public function isConnected(): bool
{
return $this->connected;
}
}

0 comments on commit 68ba18b

Please sign in to comment.