| 1 | <?php |
||
| 22 | class MethodNotAllowedException extends Exception |
||
| 23 | { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * MethodNotAllowedException constructor. |
||
| 27 | * |
||
| 28 | * @param string $message the string of the error message |
||
| 29 | * @param int $code The code of the error |
||
| 30 | * @param \Exception|null $previous the previous exception. |
||
| 31 | */ |
||
| 32 | public function __construct($message = null, $code = 405, $previous = null) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * File setter |
||
| 42 | * |
||
| 43 | * @param string $file file name |
||
| 44 | * @return void |
||
| 45 | */ |
||
| 46 | public function setFile($file = '') |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Line setter |
||
| 53 | * |
||
| 54 | * @param int $line set the line of the code |
||
| 55 | * @return void |
||
| 56 | */ |
||
| 57 | public function setLine($line = 0) |
||
| 61 | } |
||
| 62 |