<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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