Commit 099cb812 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-230 Fixed @throws of GetState() and CleanStates() so it's the same as

in the interface.

Released under the Affero GNU General Public License (AGPL) version 3.
parent cf00677d
...@@ -176,7 +176,7 @@ class SqlStateMachine implements IStateMachine { ...@@ -176,7 +176,7 @@ class SqlStateMachine implements IStateMachine {
* *
* @access public * @access public
* @return mixed * @return mixed
* @throws StateNotFoundException, StateInvalidException * @throws StateNotFoundException, StateInvalidException, UnavailableException
*/ */
public function GetState($devid, $type, $key = null, $counter = false, $cleanstates = true) { public function GetState($devid, $type, $key = null, $counter = false, $cleanstates = true) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("SqlStateMachine->GetState(): devid:'%s' type:'%s' key:'%s' counter:'%s'", $devid, $type, ($key == null ? 'null' : $key), Utils::PrintAsString($counter), Utils::PrintAsString($cleanstates))); ZLog::Write(LOGLEVEL_DEBUG, sprintf("SqlStateMachine->GetState(): devid:'%s' type:'%s' key:'%s' counter:'%s'", $devid, $type, ($key == null ? 'null' : $key), Utils::PrintAsString($counter), Utils::PrintAsString($cleanstates)));
...@@ -297,6 +297,7 @@ class SqlStateMachine implements IStateMachine { ...@@ -297,6 +297,7 @@ class SqlStateMachine implements IStateMachine {
* *
* @access public * @access public
* @return * @return
* @throws StateInvalidException
*/ */
public function CleanStates($devid, $type, $key = null, $counter = false) { public function CleanStates($devid, $type, $key = null, $counter = false) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("SqlStateMachine->CleanStates(): devid:'%s' type:'%s' key:'%s' counter:'%s'", $devid, $type, ($key == null ? 'null' : $key), Utils::PrintAsString($counter))); ZLog::Write(LOGLEVEL_DEBUG, sprintf("SqlStateMachine->CleanStates(): devid:'%s' type:'%s' key:'%s' counter:'%s'", $devid, $type, ($key == null ? 'null' : $key), Utils::PrintAsString($counter)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment