1 | <?php |
||
12 | class OauthClientController extends BaseApiController |
||
13 | { |
||
14 | /** |
||
15 | * Init new object. |
||
16 | * |
||
17 | * @param OauthClientRepository $repo |
||
18 | * @param CoreConfig $config |
||
19 | * @return void |
||
|
|||
20 | */ |
||
21 | public function __construct(OauthClientRepository $repo, CoreConfig $config) |
||
25 | |||
26 | /** |
||
27 | * Insert the given model to storage. |
||
28 | * |
||
29 | * @param InsertOauthClient $request |
||
30 | * @return \Illuminate\Http\Response |
||
31 | */ |
||
32 | public function insert(InsertOauthClient $request) |
||
36 | |||
37 | /** |
||
38 | * Update the given model to storage. |
||
39 | * |
||
40 | * @param UpdateOauthClient $request |
||
41 | * @return \Illuminate\Http\Response |
||
42 | */ |
||
43 | public function update(UpdateOauthClient $request) |
||
47 | |||
48 | /** |
||
49 | * Revoke the given client. |
||
50 | * |
||
51 | * @param integer $clientId Id of the client |
||
52 | * @return \Illuminate\Http\Response |
||
53 | */ |
||
54 | public function revoke($clientId) |
||
58 | |||
59 | /** |
||
60 | * Un revoke the given client. |
||
61 | * |
||
62 | * @param integer $clientId Id of the client |
||
63 | * @return \Illuminate\Http\Response |
||
64 | */ |
||
65 | public function unRevoke($clientId) |
||
69 | } |
||
70 |
Adding a
@return
annotation 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.