| 1 | <?php |
||
| 11 | class OAuthServerException extends Exception |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * The response to render. |
||
| 15 | * |
||
| 16 | * @var \Illuminate\Http\Response |
||
| 17 | */ |
||
| 18 | protected $response; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Create a new OAuthServerException. |
||
| 22 | * |
||
| 23 | * @param \League\OAuth2\Server\Exception\OAuthServerException $e |
||
| 24 | * @param \Illuminate\Http\Response $response |
||
| 25 | * |
||
| 26 | * @return void |
||
|
|
|||
| 27 | */ |
||
| 28 | public function __construct(LeagueException $e, Response $response) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Render the exception into an HTTP response. |
||
| 37 | * |
||
| 38 | * @param \Illuminate\Http\Request $request |
||
| 39 | * |
||
| 40 | * @return \Illuminate\Http\Response |
||
| 41 | */ |
||
| 42 | public function render($request) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Get the HTTP response status code. |
||
| 49 | * |
||
| 50 | * @return int |
||
| 51 | */ |
||
| 52 | public function statusCode() |
||
| 56 | } |
||
| 57 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.