private function getRegionAbbreviation($shipping)
    {
        if (strlen($shipping->getRegionCode()) == 2) {
            return $shipping->getRegionCode();
        }

        $regionAbbreviation = new \PagSeguro\Enum\Address();

        return (is_string($regionAbbreviation->getType($shipping->getRegion()))) ?
            $regionAbbreviation->getType($shipping->getRegion()) :
            $shipping->getRegion();
    }
private function getRegionAbbreviation($shipping)
    {
        if (strlen($shipping->getRegionCode()) == 2) {
            return $shipping->getRegionCode();
        }

        $regionAbbreviation = new \PagSeguro\Enum\Address();

        return (is_string($regionAbbreviation->getType($shipping->getRegion()))) ?
            $regionAbbreviation->getType($shipping->getRegion()) :
            $shipping->getRegion();
    }
private function getRegionAbbreviation ( $ shipping ) { if ( strlen ( $ shipping -> getRegionCode ( ) ) == 2 ) { return $ shipping -> getRegionCode ( ) ; } $ regionAbbreviation = new \ PagSeguro \ Enum \ Address ( ) ; return ( is_string ( $ regionAbbreviation -> getType ( $ shipping -> getRegion ( ) ) ) ) ? $ regionAbbreviation -> getType ( $ shipping -> getRegion ( ) ) : $ shipping -> getRegion ( ) ; }
Get a brazilian region name and return the abbreviation if it exists

@param shipping $shipping
@return string
Get a brazilian region name and return the abbreviation if it exists