<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Printing.AuxDataItem.CommercialTheaterCommissions
 * StructType
 * @subpackage Structs
 */
class Printing_AuxDataItem_CommercialTheaterCommissions extends AnyEntity
{
    /**
     * The AgentInternalCommission
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $AgentInternalCommission;
    /**
     * The RestorationLevy
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $RestorationLevy;
    /**
     * Constructor method for Printing.AuxDataItem.CommercialTheaterCommissions
     * @uses Printing_AuxDataItem_CommercialTheaterCommissions::setAgentInternalCommission()
     * @uses Printing_AuxDataItem_CommercialTheaterCommissions::setRestorationLevy()
     * @param string $agentInternalCommission
     * @param string $restorationLevy
     */
    public function __construct($agentInternalCommission = null, $restorationLevy = null)
    {
        $this
            ->setAgentInternalCommission($agentInternalCommission)
            ->setRestorationLevy($restorationLevy);
    }
    /**
     * Get AgentInternalCommission value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getAgentInternalCommission()
    {
        return isset($this->AgentInternalCommission) ? $this->AgentInternalCommission : null;
    }
    /**
     * Set AgentInternalCommission value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $agentInternalCommission
     * @return \patest\StructType\Printing_AuxDataItem_CommercialTheaterCommissions
     */
    public function setAgentInternalCommission($agentInternalCommission = null)
    {
        // validation for constraint: string
        if (!is_null($agentInternalCommission) && !is_string($agentInternalCommission)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($agentInternalCommission, true), gettype($agentInternalCommission)), __LINE__);
        }
        if (is_null($agentInternalCommission) || (is_array($agentInternalCommission) && empty($agentInternalCommission))) {
            unset($this->AgentInternalCommission);
        } else {
            $this->AgentInternalCommission = $agentInternalCommission;
        }
        return $this;
    }
    /**
     * Get RestorationLevy value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getRestorationLevy()
    {
        return isset($this->RestorationLevy) ? $this->RestorationLevy : null;
    }
    /**
     * Set RestorationLevy value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $restorationLevy
     * @return \patest\StructType\Printing_AuxDataItem_CommercialTheaterCommissions
     */
    public function setRestorationLevy($restorationLevy = null)
    {
        // validation for constraint: string
        if (!is_null($restorationLevy) && !is_string($restorationLevy)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($restorationLevy, true), gettype($restorationLevy)), __LINE__);
        }
        if (is_null($restorationLevy) || (is_array($restorationLevy) && empty($restorationLevy))) {
            unset($this->RestorationLevy);
        } else {
            $this->RestorationLevy = $restorationLevy;
        }
        return $this;
    }
}
