public function __construct($options = []) { if (is_object($options)) { $options = (array) $options; } elseif (is_string($options)) { $options = ['prefix' => $options]; } if (isset($options['prefix'])) { $this->_prefix = $options['prefix']; } }