1 | <?php |
||
18 | class NoSuchProcedureException extends \OutOfBoundsException |
||
19 | { |
||
20 | const ERROR_RESPONSE = 'wamp.error.no_such_procedure'; |
||
21 | |||
22 | /** |
||
23 | * @var string name of the procedure |
||
24 | */ |
||
25 | protected $procedureName; |
||
26 | |||
27 | /** |
||
28 | * @param string $procedureName |
||
29 | */ |
||
30 | public function __construct($procedureName) |
||
40 | |||
41 | /** |
||
42 | * @param string $procedureName |
||
43 | */ |
||
44 | protected function setProcedureName($procedureName) |
||
48 | |||
49 | /** |
||
50 | * @return string the procedure name |
||
51 | */ |
||
52 | public function getProcedureName() |
||
56 | |||
57 | /** |
||
58 | * Checks if a router response is a 'no_such_procedure' error. |
||
59 | * |
||
60 | * @param $errorResponse |
||
61 | * |
||
62 | * @return bool |
||
63 | */ |
||
64 | public static function isNoProcedureError($errorResponse) |
||
68 | } |
||
69 |