1 | <?php |
||
34 | class StateToProcess implements StateKeyInterface |
||
35 | { |
||
36 | |||
37 | /** |
||
38 | * Holds the key for messages with an in progress state. |
||
39 | * |
||
40 | * @var integer |
||
41 | */ |
||
42 | const KEY = 3; |
||
43 | |||
44 | /** |
||
45 | * The string value for the 'toProcess' state key. |
||
46 | * |
||
47 | * @var string |
||
48 | */ |
||
49 | protected $state = "toProcess"; |
||
50 | |||
51 | /** |
||
52 | * Private constructor for marking the class as utility. |
||
53 | */ |
||
54 | final protected function __construct() |
||
58 | |||
59 | /** |
||
60 | * Returns a new instance of the state key. |
||
61 | * |
||
62 | * @return \AppserverIo\Messaging\Utils\StateToProcess The instance |
||
63 | */ |
||
64 | public static function get() |
||
68 | |||
69 | /** |
||
70 | * Returns the key value of the state key instance. |
||
71 | * |
||
72 | * @return integer The key value |
||
73 | */ |
||
74 | public function getState() |
||
78 | |||
79 | /** |
||
80 | * Returns the string value for the high state key. |
||
81 | * |
||
82 | * @return string The string value |
||
83 | */ |
||
84 | public function __toString() |
||
88 | } |
||
89 |