N98\Magento\Command\Developer\Ide\PhpStorm\MetaCommand::getRealClassname PHP Метод

getRealClassname() защищенный Метод

protected getRealClassname ( Symfony\Component\Finder\SplFileInfo $file, string $classPrefix ) : string
$file Symfony\Component\Finder\SplFileInfo
$classPrefix string
Результат string
    protected function getRealClassname(SplFileInfo $file, $classPrefix)
    {
        $path = $file->getRelativePathname();
        if (substr($path, -4) !== '.php') {
            throw new UnexpectedValueException(sprintf('Expected that relative file %s ends with ".php"', var_export($path, true)));
        }
        $path = substr($path, 0, -4);
        $path = strtr($path, '\\', '/');
        return trim($classPrefix . '_' . strtr($path, '/', '_'), '_');
    }