* @copyright Copyright (c) 2013 - 2019, TechFuze. (http://techfuze.net) */ class ViewGetEvent extends Event { /** * The directories the view can get loaded from. * * @var array */ public $viewPaths = []; /** * The name of the view to be loaded. * * @var string|null */ public $viewName = null; /** * The type of view to be loaded. Eg: html, json, cli. * * @var string|null */ public $viewType = null; /** * The namespace of the View to be loaded. Defaults to Application\View * * @var string */ public $namespace = '\Application\View\\'; /** * Arguments provided to the constructor * * @var array */ public $arguments = []; /** * @var Controller */ public $controller; public function init($viewName, $viewType, $viewPaths, $namespace, $controller, $arguments) { $this->viewName = $viewName; $this->viewType = $viewType; $this->viewPaths = $viewPaths; $this->namespace = $namespace; $this->controller = $controller; $this->arguments = $arguments; } }