public function fee($fee = null)
    {
        $amount = $fee ?: $this->getAttribute("fee");
        if (!$amount)
            $amount = (int) Fee::calculateForTransaction($this);

        return new Fee(["amount" => $amount]);
    }
public function fee($fee = null)
    {
        $amount = $fee ?: $this->getAttribute("fee");
        if (!$amount)
            $amount = (int) Fee::calculateForTransaction($this);

        return new Fee(["amount" => $amount]);
    }
public function fee ( $ fee = null ) { $ amount = $ fee ? : $ this -> getAttribute ( "fee" ) ; if ( ! $ amount ) $ amount = ( int ) Fee :: calculateForTransaction ( $ this ) ; return new Fee ( [ "amount" => $ amount ] ) ; }
Mutator for the fee amount object.

@return \NEM\Models\Fee
Mutator for the fee amount object .