<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetEventiOperatoreResponse StructType
 * @subpackage Structs
 */
class GetEventiOperatoreResponse extends AbstractStructBase
{
    /**
     * The GetEventiOperatoreResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var GetEventiOperatore_Result
     */
    public $GetEventiOperatoreResult;
    /**
     * Constructor method for GetEventiOperatoreResponse
     * @uses GetEventiOperatoreResponse::setGetEventiOperatoreResult()
     * @param GetEventiOperatore_Result $getEventiOperatoreResult
     */
    public function __construct(GetEventiOperatore_Result $getEventiOperatoreResult = null)
    {
        $this
            ->setGetEventiOperatoreResult($getEventiOperatoreResult);
    }
    /**
     * Get GetEventiOperatoreResult 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 GetEventiOperatore_Result|null
     */
    public function getGetEventiOperatoreResult()
    {
        return isset($this->GetEventiOperatoreResult) ? $this->GetEventiOperatoreResult : null;
    }
    /**
     * Set GetEventiOperatoreResult 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 GetEventiOperatore_Result $getEventiOperatoreResult
     * @return GetEventiOperatoreResponse
     */
    public function setGetEventiOperatoreResult(GetEventiOperatore_Result $getEventiOperatoreResult = null)
    {
        if (is_null($getEventiOperatoreResult) || (is_array($getEventiOperatoreResult) && empty($getEventiOperatoreResult))) {
            unset($this->GetEventiOperatoreResult);
        } else {
            $this->GetEventiOperatoreResult = $getEventiOperatoreResult;
        }
        return $this;
    }
}
