public function getMigrations(): array
    {
        $result = [];
        foreach ($this->repository->getMigrations() as $migration) {
            //Populating migration state and execution time (if any)
            $result[] = $migration->withState($this->resolveState($migration));
        }

        return $result;
    }
public function getMigrations(): array
    {
        $result = [];
        foreach ($this->repository->getMigrations() as $migration) {
            //Populating migration state and execution time (if any)
            $result[] = $migration->withState($this->resolveState($migration));
        }

        return $result;
    }
public function getMigrations ( ) : array { $ result = [ ] ; foreach ( $ this -> repository -> getMigrations ( ) as $ migration ) { //Populating migration state and execution time (if any) $ result [ ] = $ migration -> withState ( $ this -> resolveState ( $ migration ) ) ; } return $ result ; }
Get every available migration with valid meta information.

@return MigrationInterface[]
Get every available migration with valid meta information .