-
-
Notifications
You must be signed in to change notification settings - Fork 456
/
Copy pathItemBatch.php
49 lines (42 loc) · 962 Bytes
/
ItemBatch.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
*
* This file is part of Phpfastcache.
*
* @license MIT License (MIT)
*
* For full copyright and license information, please see the docs/CREDITS.txt and LICENCE files.
*
* @author Georges.L (Geolim4) <[email protected]>
* @author Contributors https://github.com/PHPSocialNetwork/phpfastcache/graphs/contributors
*/
declare(strict_types=1);
namespace Phpfastcache\Entities;
use DateTimeInterface;
class ItemBatch
{
/**
* ItemBatch constructor.
* @param string $itemKey
* @param DateTimeInterface $itemDate
*/
public function __construct(
protected string $itemKey,
protected DateTimeInterface $itemDate
) {
}
/**
* @return string
*/
public function getItemKey(): string
{
return $this->itemKey;
}
/**
* @return DateTimeInterface
*/
public function getItemDate(): DateTimeInterface
{
return $this->itemDate;
}
}