Rocketeer\Services\Connections\ConnectionsHandler::getServerCredentials PHP Method

getServerCredentials() public method

Get thecredentials for as server.
public getServerCredentials ( string | null $connection = null, integer | null $server = null ) : mixed
$connection string | null
$server integer | null
return mixed
    public function getServerCredentials($connection = null, $server = null)
    {
        $connection = $this->getConnectionCredentials($connection);
        $server = !is_null($server) ? $server : $this->currentServer;
        return Arr::get($connection, $server, []);
    }