public function __construct($class) { parent::__construct(); $this->class = $class; }
/** * Initiates model * @param string $className texted model class name * @param array options options */ public function __construct($className, $options = []) { parent::__construct($className); $this->reflection = new \ReflectionClass($className); $this->className = $className; foreach ($options as $attribute => $value) { $this->{$attribute} = $value; } $this->parseMethodDocs(); }