public function getPlatform()
    {
        switch ($this->getDriver()) {
            case 'pdo_mysql':
                return new Platform\Mysql();
                break;

            case 'pdo_pgsql':
                return new Platform\Postgresql();
                break;

            case 'pdo_sqlite':
                return new Platform\Sqlite();
                break;

            case 'pdo_sqlsrv':
                return new Platform\SqlServer();
                break;

            default:

                throw new \Exception(sprintf('Unknown platform %s.', $this->getPlatform()));
                break;
        }
    }
public function getPlatform()
    {
        switch ($this->getDriver()) {
            case 'pdo_mysql':
                return new Platform\Mysql();
                break;

            case 'pdo_pgsql':
                return new Platform\Postgresql();
                break;

            case 'pdo_sqlite':
                return new Platform\Sqlite();
                break;

            case 'pdo_sqlsrv':
                return new Platform\SqlServer();
                break;

            default:

                throw new \Exception(sprintf('Unknown platform %s.', $this->getPlatform()));
                break;
        }
    }
public function getPlatform ( ) { switch ( $ this -> getDriver ( ) ) { case 'pdo_mysql' : return new Platform \ Mysql ( ) ; break ; case 'pdo_pgsql' : return new Platform \ Postgresql ( ) ; break ; case 'pdo_sqlite' : return new Platform \ Sqlite ( ) ; break ; case 'pdo_sqlsrv' : return new Platform \ SqlServer ( ) ; break ; default : throw new \ Exception ( sprintf ( 'Unknown platform %s.' , $ this -> getPlatform ( ) ) ) ; break ; } }
Gets platform.

@return \Zend\Db\Adapter\Platform\PlatformInterface
Gets platform .