<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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