public static function parse(string $amount)
    {
        $parser = new DecimalMoneyParser(new ISOCurrencies());

        return static::given(
            $parser->parse($amount, new Currency('MYR'))->getAmount()
        );
    }
public static function parse(string $amount)
    {
        $parser = new DecimalMoneyParser(new ISOCurrencies());

        return static::given(
            $parser->parse($amount, new Currency('MYR'))->getAmount()
        );
    }
public static function parse ( string $ amount ) { $ parser = new DecimalMoneyParser ( new ISOCurrencies ( ) ) ; return static :: given ( $ parser -> parse ( $ amount , new Currency ( 'MYR' ) ) -> getAmount ( ) ) ; }
Parse value as ringgit.

@param  string  $amount

@return static
Parse value as ringgit .