<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for MoveAudience-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:MoveAudience-Response
 * @subpackage Structs
 */
class MoveAudience_Response extends AbstractStructBase
{
    /**
     * The UnmovedTickets
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfMoveAudienceFailedTicketsInfo
     */
    public $UnmovedTickets;
    /**
     * Constructor method for MoveAudience-Response
     * @uses MoveAudience_Response::setUnmovedTickets()
     * @param \patest\ArrayType\ArrayOfMoveAudienceFailedTicketsInfo $unmovedTickets
     */
    public function __construct(\patest\ArrayType\ArrayOfMoveAudienceFailedTicketsInfo $unmovedTickets = null)
    {
        $this
            ->setUnmovedTickets($unmovedTickets);
    }
    /**
     * Get UnmovedTickets 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\ArrayType\ArrayOfMoveAudienceFailedTicketsInfo|null
     */
    public function getUnmovedTickets()
    {
        return isset($this->UnmovedTickets) ? $this->UnmovedTickets : null;
    }
    /**
     * Set UnmovedTickets 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\ArrayType\ArrayOfMoveAudienceFailedTicketsInfo $unmovedTickets
     * @return \patest\StructType\MoveAudience_Response
     */
    public function setUnmovedTickets(\patest\ArrayType\ArrayOfMoveAudienceFailedTicketsInfo $unmovedTickets = null)
    {
        if (is_null($unmovedTickets) || (is_array($unmovedTickets) && empty($unmovedTickets))) {
            unset($this->UnmovedTickets);
        } else {
            $this->UnmovedTickets = $unmovedTickets;
        }
        return $this;
    }
}
