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