Skip to content

Commit 145efa9

Browse files
committed
Added "@return static" to "setEventManager" method interface
1 parent 6bfaa5d commit 145efa9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/phpFastCache/Core/Item/ExtendedCacheItemInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ public function getDataAsJsonString($option = 0, $depth = 512);
197197
* Set the EventManager instance
198198
*
199199
* @param EventManager $em
200+
* @return static
200201
*/
201202
public function setEventManager(EventManager $em);
202203
}

src/phpFastCache/Core/Item/ItemExtendedTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,13 @@ public function jsonSerialize()
368368
* Set the EventManager instance
369369
*
370370
* @param EventManager $em
371+
* @return $this
371372
*/
372373
public function setEventManager(EventManager $em)
373374
{
374375
$this->eventManager = $em;
376+
377+
return $this;
375378
}
376379

377380

0 commit comments

Comments
 (0)