* @copyright Copyright (c) 2013 - 2019, TechFuze. (http://techfuze.net) */ class ModelGetEvent extends Event { /** * The directories the model can get loaded from. * * @var array */ public $modelPaths = array(); /** * The name of the model to be loaded. * * @var string|null */ public $modelName = null; /** * The namespace of the model to be loaded. Defaults to Application\Model * * @var string */ public $namespace = '\Application\Model\\'; /** * Arguments provided to the constructor * * @var array */ public $arguments = []; public function init($modelName, $modelPaths, $namespace, $arguments) { $this->modelName = $modelName; $this->modelPaths = $modelPaths; $this->namespace = $namespace; $this->arguments = $arguments; } }