| 1 | <?php |
||
| 9 | class OauthClientController extends BaseApiController |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Path of the sotre form request. |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $storeFormRequest = 'App\Modules\OauthClients\Http\Requests\StoreOauthClient'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Path of the model resource |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $modelResource = 'App\Modules\OauthClients\Http\Resources\OauthClient'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Init new object. |
||
| 27 | * |
||
| 28 | * @param OauthClientService $service |
||
| 29 | * @return void |
||
|
|
|||
| 30 | */ |
||
| 31 | public function __construct(OauthClientService $service) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Revoke the given client. |
||
| 38 | * |
||
| 39 | * @param integer $clientId Id of the client |
||
| 40 | * @return \Illuminate\Http\Response |
||
| 41 | */ |
||
| 42 | public function revoke($clientId) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Un revoke the given client. |
||
| 49 | * |
||
| 50 | * @param integer $clientId Id of the client |
||
| 51 | * @return \Illuminate\Http\Response |
||
| 52 | */ |
||
| 53 | public function unRevoke($clientId) |
||
| 57 | } |
||
| 58 |
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.