Neos\Flow\I18n\Locale::__toString PHP 메소드

__toString() 공개 메소드

Returns the string identifier of this locale
public __toString ( ) : string
리턴 string The locale identifier (tag)
    public function __toString()
    {
        $localeIdentifier = $this->language;
        if ($this->script !== null) {
            $localeIdentifier .= '_' . $this->script;
        }
        if ($this->region !== null) {
            $localeIdentifier .= '_' . $this->region;
        }
        if ($this->variant !== null) {
            $localeIdentifier .= '_' . $this->variant;
        }
        return $localeIdentifier;
    }