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

        return $this->servers['write']['link'];
    }
public function getMasterLink()
    {
        if ($this->isConnected() === false) {
            $this->connect();
        }
        if (isset($this->servers['all']) === true) {
            return $this->servers['all']['link'];
        }

        return $this->servers['write']['link'];
    }
public function getMasterLink ( ) { if ( $ this -> isConnected ( ) === false ) { $ this -> connect ( ) ; } if ( isset ( $ this -> servers [ 'all' ] ) === true ) { return $ this -> servers [ 'all' ] [ 'link' ] ; } return $ this -> servers [ 'write' ] [ 'link' ] ; }
Get master server link.

@return mixed link info
Get master server link .