aboutsummaryrefslogtreecommitdiffstats
path: root/src/Cache/Base.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Cache/Base.php')
-rw-r--r--src/Cache/Base.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Cache/Base.php b/src/Cache/Base.php
index 0830464..134d097 100644
--- a/src/Cache/Base.php
+++ b/src/Cache/Base.php
@@ -1,4 +1,6 @@
<?php
+
+declare(strict_types=1);
/**
* SimplePie
*
@@ -51,6 +53,7 @@ namespace SimplePie\Cache;
*
* @package SimplePie
* @subpackage Caching
+ * @deprecated since SimplePie 1.8.0, use "Psr\SimpleCache\CacheInterface" instead
*/
interface Base
{
@@ -59,28 +62,28 @@ interface Base
*
* @var string
*/
- const TYPE_FEED = 'spc';
+ public const TYPE_FEED = 'spc';
/**
* Image cache type
*
* @var string
*/
- const TYPE_IMAGE = 'spi';
+ public const TYPE_IMAGE = 'spi';
/**
* Create a new cache object
*
* @param string $location Location string (from SimplePie::$cache_location)
* @param string $name Unique ID for the cache
- * @param string $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data
+ * @param Base::TYPE_FEED|Base::TYPE_IMAGE $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data
*/
public function __construct($location, $name, $type);
/**
* Save data to the cache
*
- * @param array|SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property
+ * @param array|\SimplePie\SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property
* @return bool Successfulness
*/
public function save($data);