0 follower

Interface Yiisoft\Db\Connection\ServerInfoInterface

Implemented byYiisoft\Db\Driver\Pdo\PdoServerInfo

Should be implemented by a class that provides information about the database server.

Public Methods

Hide inherited methods

Method Description Defined By
getTimezone() Returns the server's session timezone. Yiisoft\Db\Connection\ServerInfoInterface
getVersion() Returns a server version as a string comparable by version_compare(). Yiisoft\Db\Connection\ServerInfoInterface

Method Details

Hide inherited methods

getTimezone() public abstract method

Returns the server's session timezone.

public abstract getTimezone( boolean $refresh false ): string
$refresh boolean

Whether to reload the server's session timezone. If false, the timezone fetched before will be returned if available.

                public function getTimezone(bool $refresh = false): string;

            
getVersion() public abstract method

Returns a server version as a string comparable by version_compare().

public abstract getVersion( ): string

                public function getVersion(): string;