Neos\Flow\Core\Migrations\Manager::getMigrations PHP Method

getMigrations() protected method

protected getMigrations ( string $versionNumber = null ) : AbstractMigration[]
$versionNumber string if specified only the migration with the specified version is returned
return AbstractMigration[]
    protected function getMigrations($versionNumber = null)
    {
        $this->initialize();
        if ($versionNumber === null) {
            return $this->migrations;
        }
        if (!isset($this->migrations[$versionNumber])) {
            throw new \InvalidArgumentException(sprintf('Migration "%s" was not found', $versionNumber), 1421667040);
        }
        return array($versionNumber => $this->migrations[$versionNumber]);
    }