* @copyright Copyright (c) 2013 - 2019, TechFuze. (http://techfuze.net) */ class RouterLoadCallableEvent extends Event { /** * The callable to be loaded * * @var callable */ public $callable; /** * The matches with which the callable is loaded * * @var array */ public $matches; /** * The static route configuration * * @var array */ public $routeData; /** * The route which resulted in this callable being loaded * * @var string */ public $route; public function init(callable $callable, array $matches, array $routeData, string $route) { $this->callable = $callable; $this->matches = $matches; $this->routeData = $routeData; $this->route = $route; } }