Skip to content

Commit e3f76da

Browse files
committed
add isConnected and connect methods to interface
1 parent cf6b22e commit e3f76da

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/IConnection.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,19 @@ public function __construct(IConfig $config);
3636
*/
3737
public function getId();
3838

39+
/**
40+
* Is connection established?
41+
* @return bool
42+
*/
43+
public function isConnected();
44+
45+
/**
46+
* Establish a connection to the configured system.
47+
* In case the connection is already open, close it first.
48+
* @throws \phpsap\interfaces\exceptions\IConnectionFailedException
49+
*/
50+
public function connect();
51+
3952
/**
4053
* Send a ping request via an established connection to verify that the
4154
* connection works.

0 commit comments

Comments
 (0)