diff --git a/EventInterface.php b/EventInterface.php index 89e2e60..61d90b6 100644 --- a/EventInterface.php +++ b/EventInterface.php @@ -4,10 +4,11 @@ namespace Kiri\Events; interface EventInterface { + + /** + * @param object $event + * @return void + */ + public function process(object $event): void; - /** - * @return void - */ - public function process(): void; - -} \ No newline at end of file +} diff --git a/TestListener.php b/TestListener.php index 695e6ea..18880b8 100644 --- a/TestListener.php +++ b/TestListener.php @@ -4,14 +4,15 @@ namespace Kiri\Events; class TestListener implements EventInterface { - - - /** - * @return void - */ - public function process(): void + + + /** + * @param object $event + * @return void + */ + public function process(object $event): void { // TODO: Implement process() method. } -} \ No newline at end of file +}