<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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