private function createMoney(int $amount = 0): ?Money
    {
        if (!$this->currency) {
            return null;
        }

        return DandomainFoundation\createMoney($this->currency->getIsoCodeAlpha(), $amount);
    }
private function createMoney(int $amount = 0): ?Money
    {
        if (!$this->currency) {
            return null;
        }

        return DandomainFoundation\createMoney($this->currency->getIsoCodeAlpha(), $amount);
    }
private function createMoney ( int $ amount = 0 ) : ? Money { if ( ! $ this -> currency ) { return null ; } return DandomainFoundation \ createMoney ( $ this -> currency -> getIsoCodeAlpha ( ) , $ amount ) ; }
A helper method for creating a Money object from a float based on the shared currency.

@param int $amount

@return Money|null
A helper method for creating a Money object from a float based on the shared currency .