AttemptsRepository.php 577 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
<?php


namespace Source\Gateways\Attempts;

use Carbon\Carbon;
use Source\Entities\Attempt;

interface AttemptsRepository
{
    /**
     * @param \Source\Entities\Attempt $attempt
Jacob Priddy's avatar
Jacob Priddy committed
13
     * @return \Source\Entities\Attempt|null
14
     */
Jacob Priddy's avatar
Jacob Priddy committed
15
    public function add(Attempt $attempt): ?Attempt;
16
17

    /**
Jacob Priddy's avatar
Jacob Priddy committed
18
19
     * @param \Carbon\Carbon|null $begin
     * @param \Carbon\Carbon|null $end
20
     * @param string|null         $doorId
21
22
     * @return \Source\Entities\Attempt[]
     */
23
    public function getBetween(?Carbon $begin = null, ?Carbon $end = null, ?string $doorId = null): array;
24
}