Moinax\TvDb\Client::getLanguages PHP Method

getLanguages() protected method

Get a list of languages available for the content of the api
protected getLanguages ( ) : SimpleXMLElement
return SimpleXMLElement
    protected function getLanguages()
    {
        $languages = $this->fetchXml('languages.xml');
        foreach ($languages->Language as $language) {
            $this->languages[(string) $language->abbreviation] = array('name' => (string) $language->name, 'abbreviation' => (string) $language->abbreviation, 'id' => (int) $language->id);
        }
    }