<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for PriceModifierActivation StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:PriceModifierActivation
 * @subpackage Structs
 */
class PriceModifierActivation extends AbstractStructBase
{
    /**
     * The Activate
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var bool
     */
    public $Activate;
    /**
     * The PriceModifierId
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $PriceModifierId;
    /**
     * Constructor method for PriceModifierActivation
     * @uses PriceModifierActivation::setActivate()
     * @uses PriceModifierActivation::setPriceModifierId()
     * @param bool $activate
     * @param int $priceModifierId
     */
    public function __construct($activate = null, $priceModifierId = null)
    {
        $this
            ->setActivate($activate)
            ->setPriceModifierId($priceModifierId);
    }
    /**
     * Get Activate value
     * @return bool|null
     */
    public function getActivate()
    {
        return $this->Activate;
    }
    /**
     * Set Activate value
     * @param bool $activate
     * @return \patest\StructType\PriceModifierActivation
     */
    public function setActivate($activate = null)
    {
        // validation for constraint: boolean
        if (!is_null($activate) && !is_bool($activate)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($activate, true), gettype($activate)), __LINE__);
        }
        $this->Activate = $activate;
        return $this;
    }
    /**
     * Get PriceModifierId value
     * @return int|null
     */
    public function getPriceModifierId()
    {
        return $this->PriceModifierId;
    }
    /**
     * Set PriceModifierId value
     * @param int $priceModifierId
     * @return \patest\StructType\PriceModifierActivation
     */
    public function setPriceModifierId($priceModifierId = null)
    {
        // validation for constraint: int
        if (!is_null($priceModifierId) && !(is_int($priceModifierId) || ctype_digit($priceModifierId))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($priceModifierId, true), gettype($priceModifierId)), __LINE__);
        }
        $this->PriceModifierId = $priceModifierId;
        return $this;
    }
}
