Kahlan\Jit\Interceptor::patchable PHP Method

patchable() public method

Checks if a class can be patched or not.
public patchable ( string $class ) : boolean
$class string The name of the class to check.
return boolean Returns `true` if the class need to be patched, `false` otherwise.
    public function patchable($class)
    {
        if (!$this->allowed($class)) {
            return false;
        }
        return $this->patchers()->patchable($class);
    }