reflection.php
public function hasFinal()
    {
        $reflection = new ReflectionClass($this->interface);
        $methods = $reflection->getMethods();
        foreach ($methods as $method) {
            if ($method->isFinal()) {
                return true;
            }
        }

        return false;
    }
public function hasFinal()
    {
        $reflection = new ReflectionClass($this->interface);
        $methods = $reflection->getMethods();
        foreach ($methods as $method) {
            if ($method->isFinal()) {
                return true;
            }
        }

        return false;
    }
public function hasFinal ( ) { $ reflection = new ReflectionClass ( $ this -> interface ) ; $ methods = $ reflection -> getMethods ( ) ; foreach ( $ methods as $ method ) { if ( $ method -> isFinal ( ) ) { return true ; } } return false ; }
Scans for final methods, as they screw up inherited mocks
by not allowing you to override them.

@returns boolean   True if the class has a final method.
Scans for final methods as they screw up inherited mocks by not allowing you to override them .