3
3
namespace Laminas \Cache \Storage ;
4
4
5
5
use ArrayObject ;
6
+ use Laminas \Cache \Storage \Adapter \AdapterOptions ;
6
7
use Laminas \EventManager \Event as BaseEvent ;
7
8
8
9
/** @extends BaseEvent<StorageInterface, ArrayObject> */
@@ -12,6 +13,7 @@ class Event extends BaseEvent
12
13
* Accept a storage adapter and its parameters.
13
14
*
14
15
* @param non-empty-string $name Event name
16
+ * @param StorageInterface<AdapterOptions> $storage
15
17
* @param ArrayObject<string,mixed> $params
16
18
*/
17
19
public function __construct (string $ name , StorageInterface $ storage , ArrayObject $ params )
@@ -24,7 +26,7 @@ public function __construct(string $name, StorageInterface $storage, ArrayObject
24
26
*
25
27
* @see \Laminas\EventManager\Event::setTarget()
26
28
*
27
- * @param StorageInterface $target
29
+ * @param StorageInterface<AdapterOptions> $target
28
30
*/
29
31
public function setTarget ($ target ): void
30
32
{
@@ -36,6 +38,8 @@ public function setTarget($target): void
36
38
* Alias of setTarget
37
39
*
38
40
* @see \Laminas\EventManager\Event::setTarget()
41
+ *
42
+ * @param StorageInterface<AdapterOptions> $storage
39
43
*/
40
44
public function setStorage (StorageInterface $ storage ): self
41
45
{
@@ -45,6 +49,8 @@ public function setStorage(StorageInterface $storage): self
45
49
46
50
/**
47
51
* Alias of getTarget
52
+ *
53
+ * @return StorageInterface<AdapterOptions>
48
54
*/
49
55
public function getStorage (): StorageInterface
50
56
{
0 commit comments