Prado\I18N\core\CultureInfo::getParent PHP 메소드

getParent() 공개 메소드

Gets the CultureInfo that represents the parent culture of the current CultureInfo
public getParent ( ) : CultureInfo
리턴 CultureInfo parent culture information.
    function getParent()
    {
        if (strlen($this->culture) == 2) {
            return $this->getInvariantCulture();
        }
        $lang = substr($this->culture, 0, 2);
        return new CultureInfo($lang);
    }