/** * Generates the provided enumeration(s) */ protected function generateEnumeration() { $indicators = func_get_args(); foreach ($indicators as $indicator) { switch ($indicator) { case 'educations': if ($this->enumeration->hasEducations() === false) { $this->enumeration->setEducations($this->getJobCountForEnumeration('EducationLevel')); } break; case 'branches': if ($this->enumeration->hasBranches() === false) { $this->enumeration->setBranches($this->getJobCountForEnumeration('JobBranch')); } break; case 'regions': // if($this->enumeration->hasRegions() === false) // { // $this->enumeration->setBranches($this->getJobCountForEnumeration()); // } break; } } }