33namespace Laminas \Cache \Storage ;
44
55use ArrayObject ;
6+ use Laminas \Cache \Storage \Adapter \AdapterOptions ;
67use Laminas \EventManager \Event as BaseEvent ;
78
89/** @extends BaseEvent<StorageInterface, ArrayObject> */
@@ -12,6 +13,7 @@ class Event extends BaseEvent
1213 * Accept a storage adapter and its parameters.
1314 *
1415 * @param non-empty-string $name Event name
16+ * @param StorageInterface<AdapterOptions> $storage
1517 * @param ArrayObject<string,mixed> $params
1618 */
1719 public function __construct (string $ name , StorageInterface $ storage , ArrayObject $ params )
@@ -24,7 +26,7 @@ public function __construct(string $name, StorageInterface $storage, ArrayObject
2426 *
2527 * @see \Laminas\EventManager\Event::setTarget()
2628 *
27- * @param StorageInterface $target
29+ * @param StorageInterface<AdapterOptions> $target
2830 */
2931 public function setTarget ($ target ): void
3032 {
@@ -36,6 +38,8 @@ public function setTarget($target): void
3638 * Alias of setTarget
3739 *
3840 * @see \Laminas\EventManager\Event::setTarget()
41+ *
42+ * @param StorageInterface<AdapterOptions> $storage
3943 */
4044 public function setStorage (StorageInterface $ storage ): self
4145 {
@@ -45,6 +49,8 @@ public function setStorage(StorageInterface $storage): self
4549
4650 /**
4751 * Alias of getTarget
52+ *
53+ * @return StorageInterface<AdapterOptions>
4854 */
4955 public function getStorage (): StorageInterface
5056 {
0 commit comments