Moinax\TvDb\Client::getMirror PHP Method

getMirror() public method

Get a random mirror from the list of available mirrors
public getMirror ( integer $typeMask = self::MIRROR_TYPE_XML ) : string
$typeMask integer
return string
    public function getMirror($typeMask = self::MIRROR_TYPE_XML)
    {
        if (empty($this->mirrors)) {
            $this->getMirrors();
        }
        return $this->mirrors[$typeMask][array_rand($this->mirrors[$typeMask], 1)];
    }