Interface Yiisoft\Db\Connection\ServerInfoInterface
| Implemented by | Yiisoft\Db\Driver\Pdo\PdoServerInfo |
|---|
Should be implemented by a class that provides information about the database server.
Public 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 {@see version_compare()}. | Yiisoft\Db\Connection\ServerInfoInterface |
Method Details
Returns the server's session timezone.
| public abstract string getTimezone ( boolean $refresh = false ) | ||
| $refresh | boolean |
Whether to reload the server's session timezone. If |
public function getTimezone(bool $refresh = false): string;
Returns a server version as a string comparable by {@see version_compare()}.
| public abstract string getVersion ( ) |
public function getVersion(): string;
Signup or Login in order to comment.