<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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