public function getTitle($code)
    {
        if (!isset($this->titles[$code])) {
            $code = key($this->getTitles());
        }

        return $this->titles[$code];
    }
public function getTitle($code)
    {
        if (!isset($this->titles[$code])) {
            $code = key($this->getTitles());
        }

        return $this->titles[$code];
    }
public function getTitle ( $ code ) { if ( ! isset ( $ this -> titles [ $ code ] ) ) { $ code = key ( $ this -> getTitles ( ) ) ; } return $ this -> titles [ $ code ] ; }
Return localized title.

@param string $code

@return string
Return localized title .