. * * @author TechFuze * @copyright Copyright (c) 2013 - 2016, Techfuze. (http://techfuze.net) * @copyright Copyright (c) 1996 - 2015, Free Software Foundation, Inc. (http://www.fsf.org/) * @license http://opensource.org/licenses/GPL-3.0 GPLv3 License * * @link http://fuzeworks.techfuze.net * @since Version 0.0.1 * * @version Version 0.0.1 */ namespace FuzeWorks\Event; use FuzeWorks\Event; /** * Event that gets loaded when a model is loaded. * * Use this to cancel the loading of a model, or change the model to be loaded * * @author Abel Hoogeveen * @copyright Copyright (c) 2013 - 2016, Techfuze. (http://techfuze.net) */ class ModelLoadEvent extends Event { /** * The directory the model gets loaded from. * * @var string|null */ public $directory = null; /** * The name of the model to be loaded. * * @var string|null */ public $model = null; public function init($model, $directory) { $this->model = $model; $this->directory = $directory; } }