<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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