Determines if a given method can be called on an object/class.
public static isCallable ( string | object $object, string $method, boolean $internal = false ) : boolean | ||
$object | string | object | Class or instance to inspect. |
$method | string | Name of the method. |
$internal | boolean | Should be `true` if you want to check from inside the class/object. When `false` will also check for public visibility, defaults to `false`. |
return | boolean | Returns `true` if the method can be called, `false` otherwise. |