Skip to content

Commit d00f7cb

Browse files
committed
Using timestamp instead of DateTime
1 parent e5b68f6 commit d00f7cb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

EncryptedItemDecorator.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
* with this source code in the file LICENSE.
1010
*/
1111

12-
1312
namespace Cache\Encryption;
1413

15-
use Cache\Adapter\Common\HasExpirationDateInterface;
14+
use Cache\Adapter\Common\PhpCacheItem;
1615
use Cache\Taggable\TaggableItemInterface;
1716
use Defuse\Crypto\Crypto;
1817
use Defuse\Crypto\Key;
@@ -23,7 +22,7 @@
2322
*
2423
* @author Daniel Bannert <[email protected]>
2524
*/
26-
class EncryptedItemDecorator implements CacheItemInterface, HasExpirationDateInterface, TaggableItemInterface
25+
class EncryptedItemDecorator implements PhpCacheItem, TaggableItemInterface
2726
{
2827
/**
2928
* @type CacheItemInterface
@@ -96,9 +95,9 @@ public function isHit()
9695
/**
9796
* {@inheritdoc}
9897
*/
99-
public function getExpirationDate()
98+
public function getExpirationTimestamp()
10099
{
101-
return $this->cacheItem->getExpirationDate();
100+
return $this->cacheItem->getExpirationTimestamp();
102101
}
103102

104103
/**

0 commit comments

Comments
 (0)