protected function generatePattern()
{
if (is_null($this->generator)) {
$pattern = $this->patterns[$this->hexVal(20, 1)];
} else {
$pattern = $this->generator;
}
$function = 'geo' . str_replace(' ', '', ucwords(str_replace('_', ' ', $pattern)));
if (method_exists($this, $function)) {
$this->{$function}();
}
}