<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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