<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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