1 | <?php |
||
36 | class StateUnknown implements StateKeyInterface |
||
37 | { |
||
38 | |||
39 | /** |
||
40 | * Holds the state key for failed messages. |
||
41 | * |
||
42 | * @var integer |
||
43 | */ |
||
44 | const KEY = 7; |
||
45 | |||
46 | /** |
||
47 | * The string value for the 'unknown' state key. |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | protected $state = "unknown"; |
||
52 | |||
53 | /** |
||
54 | * Private constructor for marking the class as utility. |
||
55 | */ |
||
56 | final protected function __construct() |
||
60 | |||
61 | /** |
||
62 | * Returns a new instance of the state key. |
||
63 | * |
||
64 | * @return \AppserverIo\Messaging\Utils\StateUnknown The instance |
||
65 | */ |
||
66 | public static function get() |
||
70 | |||
71 | /** |
||
72 | * Returns the key value of the state key instance. |
||
73 | * |
||
74 | * @return integer The key value |
||
75 | */ |
||
76 | public function getState() |
||
80 | |||
81 | /** |
||
82 | * Returns the string value for the state key. |
||
83 | * |
||
84 | * @return string The string value |
||
85 | */ |
||
86 | public function __toString() |
||
90 | } |
||
91 |