<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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