0 follower

Class Yiisoft\Db\Driver\Pdo\PdoServerInfo

InheritanceYiisoft\Db\Driver\Pdo\PdoServerInfo
ImplementsYiisoft\Db\Connection\ServerInfoInterface

Property Details

Hide inherited properties

$db protected property
$version protected property
protected string|null $version null

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( Yiisoft\Db\Driver\Pdo\PdoConnectionInterface $db )
$db Yiisoft\Db\Driver\Pdo\PdoConnectionInterface

                public function __construct(protected PdoConnectionInterface $db) {}

            
getTimezone() public method

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

                public function getTimezone(bool $refresh = false): string
{
    throw new NotSupportedException(__METHOD__ . ' is not supported by this DBMS.');
}

            
getVersion() public method

public string getVersion ( )

                public function getVersion(): string
{
    if ($this->version === null) {
        /** @var string */
        $this->version = $this->db->getActivePdo()->getAttribute(PDO::ATTR_SERVER_VERSION) ?? '';
    }
    return $this->version;
}