src/ObjectManager.php
private function getClassForInterface(string $interfaceName)
    {
        $implementationName = '';
        if (strtolower(substr($interfaceName, -9)) === 'interface') {
            $implementationName = substr($interfaceName, 0, -9);
        }

        if (!class_exists($implementationName)) {
            throw NoImplementationForInterfaceException::exceptionWithInterfaceName($interfaceName);
        }

        return $implementationName;
    }
private function getClassForInterface(string $interfaceName)
    {
        $implementationName = '';
        if (strtolower(substr($interfaceName, -9)) === 'interface') {
            $implementationName = substr($interfaceName, 0, -9);
        }

        if (!class_exists($implementationName)) {
            throw NoImplementationForInterfaceException::exceptionWithInterfaceName($interfaceName);
        }

        return $implementationName;
    }
private function getClassForInterface ( string $ interfaceName ) { $ implementationName = '' ; if ( strtolower ( substr ( $ interfaceName , - 9 ) ) === 'interface' ) { $ implementationName = substr ( $ interfaceName , 0 , - 9 ) ; } if ( ! class_exists ( $ implementationName ) ) { throw NoImplementationForInterfaceException :: exceptionWithInterfaceName ( $ interfaceName ) ; } return $ implementationName ; }
Try to find the class name for the given interface

@param string $interfaceName
@return string
Try to find the class name for the given interface