1 | <?php |
||
14 | class UserRepository implements UserRepositoryInterface |
||
15 | { |
||
16 | /** |
||
17 | * The hasher implementation. |
||
18 | * |
||
19 | * @var \Illuminate\Contracts\Hashing\Hasher |
||
20 | */ |
||
21 | protected $hasher; |
||
22 | |||
23 | /** |
||
24 | * Create a new repository instance. |
||
25 | * |
||
26 | * @param \Illuminate\Contracts\Hashing\Hasher $hasher |
||
27 | * |
||
28 | * @return void |
||
|
|||
29 | */ |
||
30 | public function __construct(Hasher $hasher) |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function getUserEntityByUserCredentials($username, $password, $grantType, ClientEntityInterface $clientEntity) |
||
72 | } |
||
73 |
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.