Neos\Flow\Persistence\Doctrine\Service::getMigrationDescription PHP Метод

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

If available it is fetched from the getDescription() method, if that returns an empty value the class docblock is used instead.
protected getMigrationDescription ( Version $version, DocCommentParser $parser ) : string
$version Doctrine\DBAL\Migrations\Version
$parser Neos\Flow\Reflection\DocCommentParser
Результат string
    protected function getMigrationDescription(Version $version, DocCommentParser $parser)
    {
        if ($version->getMigration()->getDescription()) {
            return $version->getMigration()->getDescription();
        } else {
            $reflectedClass = new \ReflectionClass($version->getMigration());
            $parser->parseDocComment($reflectedClass->getDocComment());
            return str_replace([chr(10), chr(13)], ' ', $parser->getDescription());
        }
    }