From f0186d7674d8d004a799540cadb7071606c27083 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 4 Sep 2015 12:18:09 +0930 Subject: [PATCH] API: Add typehints --- src/Events/WillSerializeData.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Events/WillSerializeData.php b/src/Events/WillSerializeData.php index 494245541..a0c1bbfa7 100644 --- a/src/Events/WillSerializeData.php +++ b/src/Events/WillSerializeData.php @@ -10,15 +10,27 @@ namespace Flarum\Events; +use Flarum\Api\Actions\Action; +use Flarum\Api\JsonApiRequest; + class WillSerializeData { + /** + * @var Action + */ public $action; + /** + * @var mixed + */ public $data; + /** + * @var JsonApiRequest + */ public $request; - public function __construct($action, &$data, $request) + public function __construct(Action $action, &$data, JsonApiRequest $request) { $this->action = $action; $this->data = &$data;