So, method_exists() requires an object to see if a method exists. But I want to know if a method exists from within the same class.
method_exists()
I have a method that
The best way in my opinion is to use __call magic method.
public function __call($name, $arguments) { throw new Exception("Method {$name} is not supported."); }
Yes, you can use method_exists($this ...) but this is the internal PHP way.