mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
API: Add typehints
This commit is contained in:
parent
9bf6862c6d
commit
f0186d7674
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user