Doctrine\DBAL\Migrations\Version::getVersion PHP Method

getVersion() public method

Returns the string version in the format YYYYMMDDHHMMSS
public getVersion ( ) : string
return string $version
    public function getVersion()
    {
        return $this->version;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Create migration with description
  */
 public function testCreateVersionWithCustomName()
 {
     $versionName = '003';
     $versionDescription = 'My super migration';
     $version = new Version(new Configuration($this->getSqliteConnection()), $versionName, 'Doctrine\\DBAL\\Migrations\\Tests\\Stub\\VersionDummyDescription');
     $this->assertEquals($versionName, $version->getVersion());
     $this->assertEquals($versionDescription, $version->getMigration()->getDescription());
 }
All Usage Examples Of Doctrine\DBAL\Migrations\Version::getVersion