GetEntriesForUserUseCase.php 643 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
<?php


namespace Source\UseCases\Entries\GetEntriesForUser;

use Source\UseCases\Entries\Presenter;

interface GetEntriesForUserUseCase
{
    /**
     * Begin and end must be parsable by datetime
     *
     * @param string                             $userId
     * @param string                             $begin
     * @param string                             $end
     * @param \Source\UseCases\Entries\Presenter $presenter
17
     * @throws \Source\Exceptions\EntityNotFoundException
Jacob Priddy's avatar
Jacob Priddy committed
18
19
20
21
     * @throws \Exception
     */
    public function getEntriesForUserBetween(string $userId, string $begin, string $end, Presenter $presenter): void;
}