PayPal\Api\Cost::setAmount PHP Method

setAmount() public method

The cost, as an amount. Valid range is from 0 to 1,000,000.
public setAmount ( PayPal\Api\Currency $amount )
$amount PayPal\Api\Currency
    public function setAmount($amount)
    {
        $this->amount = $amount;
        return $this;
    }