public static function createFinalFromGross(Amount $gross): Amount
    {
        $final = new Amount(
            $gross->getCurrency(),
            $gross->getBase(),
            $gross->getBase(),
            0,
            $gross->getBase(),
            $gross->getTax(),
            $gross->getTotal()
        );
        foreach ($gross->getTaxAdjustments() as $t) {
            $final->addTaxAdjustment($t);
        }

        return $final;
    }
public static function createFinalFromGross(Amount $gross): Amount
    {
        $final = new Amount(
            $gross->getCurrency(),
            $gross->getBase(),
            $gross->getBase(),
            0,
            $gross->getBase(),
            $gross->getTax(),
            $gross->getTotal()
        );
        foreach ($gross->getTaxAdjustments() as $t) {
            $final->addTaxAdjustment($t);
        }

        return $final;
    }
public static function createFinalFromGross ( Amount $ gross ) : Amount { $ final = new Amount ( $ gross -> getCurrency ( ) , $ gross -> getBase ( ) , $ gross -> getBase ( ) , 0 , $ gross -> getBase ( ) , $ gross -> getTax ( ) , $ gross -> getTotal ( ) ) ; foreach ( $ gross -> getTaxAdjustments ( ) as $ t ) { $ final -> addTaxAdjustment ( $ t ) ; } return $ final ; }
Creates the final result from the given gross result.

@param Amount $gross

@return Amount
Creates the final result from the given gross result .