src/DependencyInjection/Compiler/RegisterSchedulesPass.php
private function isTaskImplementation($class)
    {
        if (!isset($this->implementations[$class])) {
            $reflectionClass = new \ReflectionClass($class);
            $this->implementations[$class] = $reflectionClass->implementsInterface(TaskInterface::class);
        }

        return $this->implementations[$class];
    }
private function isTaskImplementation($class)
    {
        if (!isset($this->implementations[$class])) {
            $reflectionClass = new \ReflectionClass($class);
            $this->implementations[$class] = $reflectionClass->implementsInterface(TaskInterface::class);
        }

        return $this->implementations[$class];
    }
private function isTaskImplementation ( $ class ) { if ( ! isset ( $ this -> implementations [ $ class ] ) ) { $ reflectionClass = new \ ReflectionClass ( $ class ) ; $ this -> implementations [ $ class ] = $ reflectionClass -> implementsInterface ( TaskInterface :: class ) ; } return $ this -> implementations [ $ class ] ; }
Returns whether the class implements TaskInterface.

@param string $class

@return bool
Returns whether the class implements TaskInterface .