Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?php |
2 | |||||
3 | namespace Tests\Providers\Time; | ||||
4 | |||||
5 | use RobThree\Auth\Providers\Time\ITimeProvider; | ||||
6 | |||||
7 | class TestTimeProvider implements ITimeProvider | ||||
8 | { | ||||
9 | /** @var int */ | ||||
10 | private $time; | ||||
11 | |||||
12 | /** | ||||
13 | * @param int $time | ||||
14 | */ | ||||
15 | function __construct($time) | ||||
16 | { | ||||
17 | $this->time = $time; | ||||
18 | } | ||||
19 | |||||
20 | /** | ||||
21 | * {@inheritdoc} | ||||
22 | */ | ||||
23 | public function getTime() | ||||
24 | { | ||||
25 | return $this->time; | ||||
26 | } | ||||
27 | } |