<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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