src/Common/Factory/Locale.php
public function getAsString(): string
    {
        return implode(
            '_',
            array_filter([
                (string) $this->getLanguage(),
                (string) $this->getRegion(),
                (string) $this->getScript(),
            ])
        );
    }
public function getAsString(): string
    {
        return implode(
            '_',
            array_filter([
                (string) $this->getLanguage(),
                (string) $this->getRegion(),
                (string) $this->getScript(),
            ])
        );
    }
public function getAsString ( ) : string { return implode ( '_' , array_filter ( [ ( string ) $ this -> getLanguage ( ) , ( string ) $ this -> getRegion ( ) , ( string ) $ this -> getScript ( ) , ] ) ) ; }
Compute the string representation of the locale

@return string
Compute the string representation of the locale