eee
This commit is contained in:
+7
-6
@@ -4,10 +4,11 @@ namespace Kiri\Events;
|
|||||||
|
|
||||||
interface EventInterface
|
interface EventInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param object $event
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function process(object $event): void;
|
||||||
|
|
||||||
/**
|
}
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function process(): void;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
+8
-7
@@ -4,14 +4,15 @@ namespace Kiri\Events;
|
|||||||
|
|
||||||
class TestListener implements EventInterface
|
class TestListener implements EventInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return void
|
* @param object $event
|
||||||
*/
|
* @return void
|
||||||
public function process(): void
|
*/
|
||||||
|
public function process(object $event): void
|
||||||
{
|
{
|
||||||
// TODO: Implement process() method.
|
// TODO: Implement process() method.
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user