<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for BizAction.Printing.TicketCollection.Request StructType
 * @subpackage Structs
 */
class BizAction_Printing_TicketCollection_Request extends AnyEntity
{
    /**
     * The CommonCollectionMethods
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $CommonCollectionMethods;
    /**
     * The CommonCollectionTargets
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $CommonCollectionTargets;
    /**
     * The DistinctCollectionMethods
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $DistinctCollectionMethods;
    /**
     * The IsCommonCollectionMethodsView
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var bool
     */
    public $IsCommonCollectionMethodsView;
    /**
     * The Owners
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Owners;
    /**
     * The TicketsData
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\RecordSetOfBizAction_Printing_TicketDataForCollection
     */
    public $TicketsData;
    /**
     * The TransactionGuids
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $TransactionGuids;
    /**
     * Constructor method for BizAction.Printing.TicketCollection.Request
     * @uses BizAction_Printing_TicketCollection_Request::setCommonCollectionMethods()
     * @uses BizAction_Printing_TicketCollection_Request::setCommonCollectionTargets()
     * @uses BizAction_Printing_TicketCollection_Request::setDistinctCollectionMethods()
     * @uses BizAction_Printing_TicketCollection_Request::setIsCommonCollectionMethodsView()
     * @uses BizAction_Printing_TicketCollection_Request::setOwners()
     * @uses BizAction_Printing_TicketCollection_Request::setTicketsData()
     * @uses BizAction_Printing_TicketCollection_Request::setTransactionGuids()
     * @param string $commonCollectionMethods
     * @param string $commonCollectionTargets
     * @param string $distinctCollectionMethods
     * @param bool $isCommonCollectionMethodsView
     * @param string $owners
     * @param \patest\StructType\RecordSetOfBizAction_Printing_TicketDataForCollection $ticketsData
     * @param string $transactionGuids
     */
    public function __construct($commonCollectionMethods = null, $commonCollectionTargets = null, $distinctCollectionMethods = null, $isCommonCollectionMethodsView = null, $owners = null, \patest\StructType\RecordSetOfBizAction_Printing_TicketDataForCollection $ticketsData = null, $transactionGuids = null)
    {
        $this
            ->setCommonCollectionMethods($commonCollectionMethods)
            ->setCommonCollectionTargets($commonCollectionTargets)
            ->setDistinctCollectionMethods($distinctCollectionMethods)
            ->setIsCommonCollectionMethodsView($isCommonCollectionMethodsView)
            ->setOwners($owners)
            ->setTicketsData($ticketsData)
            ->setTransactionGuids($transactionGuids);
    }
    /**
     * Get CommonCollectionMethods 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 getCommonCollectionMethods()
    {
        return isset($this->CommonCollectionMethods) ? $this->CommonCollectionMethods : null;
    }
    /**
     * Set CommonCollectionMethods 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 $commonCollectionMethods
     * @return \patest\StructType\BizAction_Printing_TicketCollection_Request
     */
    public function setCommonCollectionMethods($commonCollectionMethods = null)
    {
        // validation for constraint: string
        if (!is_null($commonCollectionMethods) && !is_string($commonCollectionMethods)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($commonCollectionMethods, true), gettype($commonCollectionMethods)), __LINE__);
        }
        if (is_null($commonCollectionMethods) || (is_array($commonCollectionMethods) && empty($commonCollectionMethods))) {
            unset($this->CommonCollectionMethods);
        } else {
            $this->CommonCollectionMethods = $commonCollectionMethods;
        }
        return $this;
    }
    /**
     * Get CommonCollectionTargets 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 getCommonCollectionTargets()
    {
        return isset($this->CommonCollectionTargets) ? $this->CommonCollectionTargets : null;
    }
    /**
     * Set CommonCollectionTargets 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 $commonCollectionTargets
     * @return \patest\StructType\BizAction_Printing_TicketCollection_Request
     */
    public function setCommonCollectionTargets($commonCollectionTargets = null)
    {
        // validation for constraint: string
        if (!is_null($commonCollectionTargets) && !is_string($commonCollectionTargets)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($commonCollectionTargets, true), gettype($commonCollectionTargets)), __LINE__);
        }
        if (is_null($commonCollectionTargets) || (is_array($commonCollectionTargets) && empty($commonCollectionTargets))) {
            unset($this->CommonCollectionTargets);
        } else {
            $this->CommonCollectionTargets = $commonCollectionTargets;
        }
        return $this;
    }
    /**
     * Get DistinctCollectionMethods 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 getDistinctCollectionMethods()
    {
        return isset($this->DistinctCollectionMethods) ? $this->DistinctCollectionMethods : null;
    }
    /**
     * Set DistinctCollectionMethods 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 $distinctCollectionMethods
     * @return \patest\StructType\BizAction_Printing_TicketCollection_Request
     */
    public function setDistinctCollectionMethods($distinctCollectionMethods = null)
    {
        // validation for constraint: string
        if (!is_null($distinctCollectionMethods) && !is_string($distinctCollectionMethods)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($distinctCollectionMethods, true), gettype($distinctCollectionMethods)), __LINE__);
        }
        if (is_null($distinctCollectionMethods) || (is_array($distinctCollectionMethods) && empty($distinctCollectionMethods))) {
            unset($this->DistinctCollectionMethods);
        } else {
            $this->DistinctCollectionMethods = $distinctCollectionMethods;
        }
        return $this;
    }
    /**
     * Get IsCommonCollectionMethodsView 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 bool|null
     */
    public function getIsCommonCollectionMethodsView()
    {
        return isset($this->IsCommonCollectionMethodsView) ? $this->IsCommonCollectionMethodsView : null;
    }
    /**
     * Set IsCommonCollectionMethodsView 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 bool $isCommonCollectionMethodsView
     * @return \patest\StructType\BizAction_Printing_TicketCollection_Request
     */
    public function setIsCommonCollectionMethodsView($isCommonCollectionMethodsView = null)
    {
        // validation for constraint: boolean
        if (!is_null($isCommonCollectionMethodsView) && !is_bool($isCommonCollectionMethodsView)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isCommonCollectionMethodsView, true), gettype($isCommonCollectionMethodsView)), __LINE__);
        }
        if (is_null($isCommonCollectionMethodsView) || (is_array($isCommonCollectionMethodsView) && empty($isCommonCollectionMethodsView))) {
            unset($this->IsCommonCollectionMethodsView);
        } else {
            $this->IsCommonCollectionMethodsView = $isCommonCollectionMethodsView;
        }
        return $this;
    }
    /**
     * Get Owners 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 getOwners()
    {
        return isset($this->Owners) ? $this->Owners : null;
    }
    /**
     * Set Owners 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 $owners
     * @return \patest\StructType\BizAction_Printing_TicketCollection_Request
     */
    public function setOwners($owners = null)
    {
        // validation for constraint: string
        if (!is_null($owners) && !is_string($owners)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($owners, true), gettype($owners)), __LINE__);
        }
        if (is_null($owners) || (is_array($owners) && empty($owners))) {
            unset($this->Owners);
        } else {
            $this->Owners = $owners;
        }
        return $this;
    }
    /**
     * Get TicketsData 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 \patest\StructType\RecordSetOfBizAction_Printing_TicketDataForCollection|null
     */
    public function getTicketsData()
    {
        return isset($this->TicketsData) ? $this->TicketsData : null;
    }
    /**
     * Set TicketsData 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 \patest\StructType\RecordSetOfBizAction_Printing_TicketDataForCollection $ticketsData
     * @return \patest\StructType\BizAction_Printing_TicketCollection_Request
     */
    public function setTicketsData(\patest\StructType\RecordSetOfBizAction_Printing_TicketDataForCollection $ticketsData = null)
    {
        if (is_null($ticketsData) || (is_array($ticketsData) && empty($ticketsData))) {
            unset($this->TicketsData);
        } else {
            $this->TicketsData = $ticketsData;
        }
        return $this;
    }
    /**
     * Get TransactionGuids 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 getTransactionGuids()
    {
        return isset($this->TransactionGuids) ? $this->TransactionGuids : null;
    }
    /**
     * Set TransactionGuids 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 $transactionGuids
     * @return \patest\StructType\BizAction_Printing_TicketCollection_Request
     */
    public function setTransactionGuids($transactionGuids = null)
    {
        // validation for constraint: string
        if (!is_null($transactionGuids) && !is_string($transactionGuids)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($transactionGuids, true), gettype($transactionGuids)), __LINE__);
        }
        if (is_null($transactionGuids) || (is_array($transactionGuids) && empty($transactionGuids))) {
            unset($this->TransactionGuids);
        } else {
            $this->TransactionGuids = $transactionGuids;
        }
        return $this;
    }
}
