Get a string with short ISO name, region in parentheses if applicable, variant in parentheses if applicable.

@return string
355521
public function getIsoDescription()
    {
        $region = $this->getRegionName();
        $variant = $this->getVariantName();

        return $this->getIsoName().($region ? ' ('.$region.')' : '').($variant ? ' ('.$variant.')' : '');
    }
1054194
public function getGeocoderQueryString()
    {
        return
            $this->getAddressLine1().', '.
            $this->getAddressLine2().', '.
            $this->getAddressLine3().', '.
            $this->getTown().', '.
            $this->getStateCode().' '.
            $this->getPostalCode().', '.
            $this->getCountryCode()
        ;
    }
1125371
public function toString()
    {
        $arguments = $this->getIterator();
        $params = array();
        $optionals = array();
        foreach ($arguments as $argument) {
            if ($argument->isOptional()) {
                $optionals[] = $argument->toString();
            } else {
                $params[] = $argument->toString();
            }
        }

        return implode(', ', array_merge($params, $optionals));
    }
515569
public function toFullyQualifiedString() : string
   {

      if ( empty( $this->_subDomainName ) )
      {

         if ( null === $this->_sld )
         {
            return '';
         }

         return $this->_sld->toFullyQualifiedString();

      }

      if ( null === $this->_sld )
      {
         return $this->_subDomainName;
      }

      return $this->_subDomainName . '.' . $this->_sld->toFullyQualifiedString();

   }
1107888
public function toString() {

		$country	= isset( $this->countryName ) ? $this->countryName : $this->country->name;
		$province	= isset( $this->provinceName ) ? $this->provinceName : $this->province->name;
		$region		= isset( $this->regionName ) ? $this->regionName : ( isset( $this->region ) ? $this->region->name : null );
		$address	= $this->line1;

		if( !empty( $this->line2 ) ) {

			$address .= ", $this->line2";
		}

		if( !empty( $this->line3 ) ) {

			$address .= ", $this->line3";
		}

		if( !empty( $this->cityName ) ) {

			$address .= ", $this->cityName";
		}

		if( !empty( $this->zip ) ) {

			$address .= ", $this->zip";
		}

		if( !empty( $region ) ) {

			$address .= ", $region";
		}

		$address .= ", $province, $country";
		//$address .= ", $this->zip";

		return $address;
	}
37065
public final function getShortName(): ?string
    {
        return ($this->name != null) ? substr($this->name, 0, -strlen(self::SERVICE_NAME_SUFFIX)) : null;
    }
241453
public function getShortName(): string
    {
        if (empty($this->shortName)) {
            $name = strtolower($this->getName());
            $replaced = preg_replace('|bundle$|', '', $name);

            $this->shortName = trim($replaced);
        }

        return $this->shortName;
    }
261224
public static function getSupportedEncodings()
    {
        if (static::$encodings === null) {
            static::$encodings = array_map('strtoupper', mb_list_encodings());

            // FIXME: Converting € (UTF-8) to ISO-8859-16 gives a wrong result
            $indexIso885916 = array_search('ISO-8859-16', static::$encodings, true);
            if ($indexIso885916 !== false) {
                unset(static::$encodings[$indexIso885916]);
            }
        }

        return static::$encodings;
    }
365353
public function getShortName()
    {
        $value = $this->getValue();
        if (empty($value) || !ClassInfo::exists($value)) {
            return null;
        }
        return ClassInfo::shortName($value);
    }
78915
public function ToString()
	{
		$sb = array();
		if ( $this->Prefix != "" )
		{
			$sb[] = $this->Prefix;
			$sb[] = ':';
		}
		$sb[] = $this->LocalName;
		return implode( "", $sb );
	}
703008
protected function _getFullName()
    {
        if (empty($this->_properties['first_name']) || empty($this->_properties['last_name'])) {
            return null;
        }

        return sprintf('%s %s', $this->_properties['first_name'], $this->_properties['last_name']);
    }
902189
protected function getSeverityString()
    {
        static $error_types = array(
            E_WARNING => 'Warning',
            E_NOTICE => 'Notice',
            E_USER_ERROR => 'User Fatal Error',
            E_USER_WARNING => 'User Warning',
            E_USER_NOTICE => 'User Notice',
            E_STRICT => 'Forward Compatibility Notice'
        );

        $out = null;
        if (isset($error_types[$this->severity])) {
            $out = $error_types[$this->severity];
        }

        return $out;
    }
1225321
public function getFullName()
    {
        // TODO make it better
        if (is_null($this->parent)) {
            return $this->getName();
        }

        return (!is_null($this->parent->getFullName()) ? ($this->parent->getFullName() . ':') : '') . $this->getName();
    }
561053
private function getPrecedence()
    {
        $precedence = Preference::ABSENT;

        // A variant is present
        $variantParts = explode('/', $this->variant);
        if (2 === count($variantParts)) {
            list($mimeType, $subType) = $variantParts;

            $precedence = Preference::COMPLETE;

            if ('*' === $mimeType) {
                $precedence = Preference::WILDCARD;

            } elseif ('*' === $subType) {
                $precedence = Preference::PARTIAL_WILDCARD;
            }
        }

        return $precedence;
    }
511280
public function getFullIsoName(): string
    {
        if (!$this->isoName) {
            $this->isoName = $this->getNames()['isoName'];
        }

        return $this->isoName;
    }
1316022
public function asString()
    {
        return sprintf(
            '%s%s%s',
            $this->isObjectType ? '\\' : '',
            $this->propType !== null ? $this->propType : 'mixed',
            str_repeat('[]', $this->arrayDepth)
        );
    }
744656
public function getPathExtension()
    {
        $segments = $this->getPathSegments();
        $filename = array_pop($segments);
        $extension = strrchr($filename, '.');

        if ($extension === false) {
            return '';
        }

        return substr($extension, 1);
    }