| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Auth |
||
| 12 | { |
||
| 13 | |||
| 14 | protected $userModel; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * instanciate |
||
| 18 | */ |
||
| 19 | 2 | public function __construct(Container $container) |
|
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * auth from login password and return user as array |
||
| 28 | * |
||
| 29 | * @param string $login |
||
| 30 | * @param string $password |
||
| 31 | * @return array |
||
| 32 | */ |
||
| 33 | 1 | public function auth(string $login, string $password): array |
|
| 38 |