<?php

namespace Google\AdsApi\AdManager\v202311;


/**
 * This file was generated from WSDL. DO NOT EDIT.
 */
class LongCreativeTemplateVariable extends \Google\AdsApi\AdManager\v202311\CreativeTemplateVariable
{

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

    /**
     * @param string $label
     * @param string $uniqueName
     * @param string $description
     * @param boolean $isRequired
     * @param int $defaultValue
     */
    public function __construct($label = null, $uniqueName = null, $description = null, $isRequired = null, $defaultValue = null)
    {
      parent::__construct($label, $uniqueName, $description, $isRequired);
      $this->defaultValue = $defaultValue;
    }

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

    /**
     * @param int $defaultValue
     * @return \Google\AdsApi\AdManager\v202311\LongCreativeTemplateVariable
     */
    public function setDefaultValue($defaultValue)
    {
      $this->defaultValue = (!is_null($defaultValue) && PHP_INT_SIZE === 4)
          ? floatval($defaultValue) : $defaultValue;
      return $this;
    }

}
