From 4ca81a37893df5dc6e442d16dc88447a47e2e4e1 Mon Sep 17 00:00:00 2001 From: Basilius Sauter Date: Fri, 5 Apr 2019 13:19:33 +0200 Subject: [PATCH] Fixed some class documentation. --- src/EventHandler.php | 5 ++--- src/Models/CharacterStats/CharacterStatInterface.php | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/EventHandler.php b/src/EventHandler.php index 1feaf6f..b239612 100644 --- a/src/EventHandler.php +++ b/src/EventHandler.php @@ -10,9 +10,8 @@ interface EventHandler * Called when an event is published that is handled by this class. * * @param Game $g The game. - * @param string $event Name of this event. - * @param array $context Arbitrary dictionary representing context around this event. - * @return array|null Return an array if you want to make changes to the $context before + * @param EventContext $context Arbitrary dictionary representing context around this event. + * @return EventContext Return an array if you want to make changes to the $context before * the next handler is called. Otherwise, return null. Any changes made will be propogated * to the event publisher as well. */ diff --git a/src/Models/CharacterStats/CharacterStatInterface.php b/src/Models/CharacterStats/CharacterStatInterface.php index 3a0832d..33943ad 100644 --- a/src/Models/CharacterStats/CharacterStatInterface.php +++ b/src/Models/CharacterStats/CharacterStatInterface.php @@ -48,7 +48,6 @@ public function setValue($value); public function getValueAsString(): string; /** - * @param $weight * @return int */ public function getWeight(): int;