1 | <?php namespace App\Modules\OauthClients\Repositories; |
||
6 | class OauthClientRepository extends BaseRepository |
||
7 | { |
||
8 | /** |
||
9 | * Init new object. |
||
10 | * |
||
11 | * @param OauthClient $model |
||
12 | * @return void |
||
|
|||
13 | */ |
||
14 | public function __construct(OauthClient $model) |
||
18 | |||
19 | /** |
||
20 | * Revoke the given client. |
||
21 | * |
||
22 | * @param integer $clientId |
||
23 | * @return void |
||
24 | */ |
||
25 | public function revoke($clientId) |
||
31 | |||
32 | /** |
||
33 | * Un revoke the given client. |
||
34 | * |
||
35 | * @param integer $clientId |
||
36 | * @return void |
||
37 | */ |
||
38 | public function unRevoke($clientId) |
||
42 | } |
||
43 |
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.