private function doDetectByInterfaces($className)
    {
        $interfaces = $this->getOrderedInterfaces($className);
        foreach ($interfaces as $interface) {
            $candidate = $this->doDetectByRoutes($interface);
            if ($candidate) {
                return $candidate;
            }
        }

        return;
    }
private function doDetectByInterfaces($className)
    {
        $interfaces = $this->getOrderedInterfaces($className);
        foreach ($interfaces as $interface) {
            $candidate = $this->doDetectByRoutes($interface);
            if ($candidate) {
                return $candidate;
            }
        }

        return;
    }
private function doDetectByInterfaces ( $ className ) { $ interfaces = $ this -> getOrderedInterfaces ( $ className ) ; foreach ( $ interfaces as $ interface ) { $ candidate = $ this -> doDetectByRoutes ( $ interface ) ; if ( $ candidate ) { return $ candidate ; } } return ; }
Perform detection based on class interfaces.

@param string $className

@return DetectionInterface|null
Perform detection based on class interfaces .