AuthenticateUseCase.php 473 Bytes
Newer Older
Jacob Priddy's avatar
Jacob Priddy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php


namespace Source\UseCases\Users\Authenticate;


use Source\Exceptions\AuthorizationException;
use Source\Exceptions\EntityNotFoundException;

interface AuthenticateUseCase {
    /**
     * Attempt an auth with credentials
     *
     * @param Presenter $presenter
     * @param array     $credentials
     * @throws AuthorizationException
     * @throws EntityNotFoundException
     */
    public function attempt(Presenter $presenter, array $credentials): void;
}