<?php

namespace Google\AdsApi\AdManager\v201811;


/**
 * This file was generated from WSDL. DO NOT EDIT.
 */
class Money
{

    /**
     * @var string $currencyCode
     */
    protected $currencyCode = null;

    /**
     * @var int $microAmount
     */
    protected $microAmount = null;

    /**
     * @param string $currencyCode
     * @param int $microAmount
     */
    public function __construct($currencyCode = null, $microAmount = null)
    {
      $this->currencyCode = $currencyCode;
      $this->microAmount = $microAmount;
    }

    /**
     * @return string
     */
    public function getCurrencyCode()
    {
      return $this->currencyCode;
    }

    /**
     * @param string $currencyCode
     * @return \Google\AdsApi\AdManager\v201811\Money
     */
    public function setCurrencyCode($currencyCode)
    {
      $this->currencyCode = $currencyCode;
      return $this;
    }

    /**
     * @return int
     */
    public function getMicroAmount()
    {
      return $this->microAmount;
    }

    /**
     * @param int $microAmount
     * @return \Google\AdsApi\AdManager\v201811\Money
     */
    public function setMicroAmount($microAmount)
    {
      $this->microAmount = (!is_null($microAmount) && PHP_INT_SIZE === 4)
          ? floatval($microAmount) : $microAmount;
      return $this;
    }

}
