How can I make this work, I dont know why it's not working
public function generateCourse($course, $type) {
$this->runFunction($this->generateHole($hole), $type);
}
public function runFunction($function, $type) {
switch ($type){
case 0:
for ($hole = 0; $hole < 18; $hole++) {
$function;
}
break;