public __construct ( string | array $options = [] ) | ||
$options | string | array |
public function __construct($options = [])
{
if (is_object($options)) {
$options = (array) $options;
} elseif (is_string($options)) {
$options = ['model' => $options];
}
if (isset($options['model'])) {
$this->_model = $options['model'];
}
}