src/DivisionCode/DivisionCode.php
public function get($code = null): string
    {
        if (!$this->validate($code)) {
            throw new \InvalidArgumentException('Invalid code');
        }

        return isset(self::$codes[$code]) ? self::$codes[$code] : '';
    }
public function get($code = null): string
    {
        if (!$this->validate($code)) {
            throw new \InvalidArgumentException('Invalid code');
        }

        return isset(self::$codes[$code]) ? self::$codes[$code] : '';
    }
public function get ( $ code = null ) : string { if ( ! $ this -> validate ( $ code ) ) { throw new \ InvalidArgumentException ( 'Invalid code' ) ; } return isset ( self :: $ codes [ $ code ] ) ? self :: $ codes [ $ code ] : '' ; }
Get local name by code

@param  string|int                  $code
@throws \InvalidArgumentException
@return string
Get local name by code