AccessUseCase.php 442 Bytes
Newer Older
1
2
3
4
5
<?php


namespace Source\UseCases\Door\Access;

6
7
use Carbon\Carbon;

8
9
10
interface AccessUseCase
{
    /**
11
12
13
     * @param string|null    $doorId
     * @param string|null    $doorcode
     * @param \Carbon\Carbon $date
14
15
16
     * @throws \Source\Exceptions\AuthenticationException
     * @throws \Source\Exceptions\AuthorizationException
     */
17
    public function protectUserDoorAccessAtTime(?string $doorId, string $doorcode, Carbon $date): void;
18
}