-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
ClientStateEnum
with a native Enum
- Loading branch information
1 parent
eabea9d
commit f827bab
Showing
2 changed files
with
18 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,32 +9,32 @@ | |
* | ||
* @author Jakub Kulhan <[email protected]> | ||
*/ | ||
final class ClientStateEnum | ||
enum ClientState | ||
{ | ||
|
||
/** | ||
* Client is not connected. Method connect() hasn't been called yet. | ||
*/ | ||
const NOT_CONNECTED = 0; | ||
case NotConnected; | ||
|
||
/** | ||
* Client is currently connecting to AMQP server. | ||
*/ | ||
const CONNECTING = 1; | ||
case Connecting; | ||
|
||
/** | ||
* Client is connected and ready to communicate. | ||
*/ | ||
const CONNECTED = 2; | ||
case Connected; | ||
|
||
/** | ||
* Client is currently disconnecting from AMQP server. | ||
*/ | ||
const DISCONNECTING = 3; | ||
case Disconnecting; | ||
|
||
/** | ||
* An error has occurred. | ||
*/ | ||
const ERROR = 4; | ||
case Error; | ||
|
||
} |