<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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