<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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