protected function dieOnNoMethod($method, $task) { if ($this->is_strict && !method_exists($this, $method)) { $errormsg = sprintf('Cannot %s. Method %s() not in class %s.', $task, $method, get_class($this)); trigger_error($errormsg, E_USER_ERROR); } }