<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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