Skip to content

Commit 68ba18b

Browse files
committed
Add method to retrieve connected state
1 parent 9956819 commit 68ba18b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/SSHConnection.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,9 @@ public function download(string $remotePath, string $localPath): bool
130130

131131
return ssh2_scp_recv($this->resource, $remotePath, $localPath);
132132
}
133+
134+
public function isConnected(): bool
135+
{
136+
return $this->connected;
137+
}
133138
}

0 commit comments

Comments
 (0)