<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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