<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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