<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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