public function updateInstruction($index, $function, $argument) { if (!empty($argument) && ctype_print($argument)) { $this->instructions[$index]->{$function}($argument); } return $this; }