<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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