src/RocknRoot/StrayFw/Database/Database.php
public function isConnected() : bool
    {
        if (isset($this->servers['all']) === true) {
            return isset($this->servers['all']['link']);
        }

        return isset($this->servers['read']['link']) && isset($this->servers['write']['link']);
    }
public function isConnected() : bool
    {
        if (isset($this->servers['all']) === true) {
            return isset($this->servers['all']['link']);
        }

        return isset($this->servers['read']['link']) && isset($this->servers['write']['link']);
    }
public function isConnected ( ) : bool { if ( isset ( $ this -> servers [ 'all' ] ) === true ) { return isset ( $ this -> servers [ 'all' ] [ 'link' ] ) ; } return isset ( $ this -> servers [ 'read' ] [ 'link' ] ) && isset ( $ this -> servers [ 'write' ] [ 'link' ] ) ; }
Check if connected to database.

@return bool true if connected
Check if connected to database .