PluginProbe
Media Cloud Sync / 1.4.1
Media Cloud Sync v1.4.1
1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 All 35 releases
← All changes | includes/sdk/google/psr/cache/src/CacheItemInterface.php +8 -8 1.0.31.4.1 View file →
@@ -1,7 +1,7 @@
1 1 <?php
2 2
3 -namespace Dudlewebs\WPMCS\Psr\Cache;
3 +namespace Dudlewebs\WPMCS\GCP\Psr\Cache;
4 4
5 5 /**
6 6 * CacheItemInterface defines an interface for interacting with objects inside a cache.
7 7 *
@@ -31,9 +31,9 @@
31 31 *
32 32 * @return string
33 33 * The key string for this cache item.
34 34 */
35 - public function getKey();
35 + public function getKey() : string;
36 36 /**
37 37 * Retrieves the value of the item from the cache associated with this object's key.
38 38 *
39 39 * The value returned must be identical to the value originally stored by set().
@@ -44,9 +44,9 @@
44 44 *
45 45 * @return mixed
46 46 * The value corresponding to this cache item's key, or null if not found.
47 47 */
48 - public function get();
48 + public function get() : mixed;
49 49 /**
50 50 * Confirms if the cache item lookup resulted in a cache hit.
51 51 *
52 52 * Note: This method MUST NOT have a race condition between calling isHit()
@@ -54,9 +54,9 @@
54 54 *
55 55 * @return bool
56 56 * True if the request resulted in a cache hit. False otherwise.
57 57 */
58 - public function isHit();
58 + public function isHit() : bool;
59 59 /**
60 60 * Sets the value represented by this cache item.
61 61 *
62 62 * The $value argument may be any item that can be serialized by PHP,
@@ -68,13 +68,13 @@
68 68 *
69 69 * @return static
70 70 * The invoked object.
71 71 */
72 - public function set($value);
72 + public function set(mixed $value) : static;
73 73 /**
74 74 * Sets the expiration time for this cache item.
75 75 *
76 - * @param \DateTimeInterface|null $expiration
76 + * @param ?\DateTimeInterface $expiration
77 77 * The point in time after which the item MUST be considered expired.
78 78 * If null is passed explicitly, a default value MAY be used. If none is set,
79 79 * the value should be stored permanently or for as long as the
80 80 * implementation allows.
@@ -81,9 +81,9 @@
81 81 *
82 82 * @return static
83 83 * The called object.
84 84 */
85 - public function expiresAt($expiration);
85 + public function expiresAt(?\DateTimeInterface $expiration) : static;
86 86 /**
87 87 * Sets the expiration time for this cache item.
88 88 *
89 89 * @param int|\DateInterval|null $time
@@ -95,6 +95,6 @@
95 95 *
96 96 * @return static
97 97 * The called object.
98 98 */
99 - public function expiresAfter($time);
99 + public function expiresAfter(int|\DateInterval|null $time) : static;
100 100 }