60 lines
1.7 KiB
PHP
60 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
|
|
*
|
|
* ActionResultPart File
|
|
* PHP version 7
|
|
*
|
|
* @category Library
|
|
* @package Microsoft.Graph
|
|
* @copyright (c) Microsoft Corporation. All rights reserved.
|
|
* @license https://opensource.org/licenses/MIT MIT License
|
|
* @link https://graph.microsoft.com
|
|
*/
|
|
namespace Beta\Microsoft\Graph\Model;
|
|
/**
|
|
* ActionResultPart class
|
|
*
|
|
* @category Model
|
|
* @package Microsoft.Graph
|
|
* @copyright (c) Microsoft Corporation. All rights reserved.
|
|
* @license https://opensource.org/licenses/MIT MIT License
|
|
* @link https://graph.microsoft.com
|
|
*/
|
|
class ActionResultPart extends Entity
|
|
{
|
|
|
|
/**
|
|
* Gets the error
|
|
* The error that occurred, if any, during the course of the bulk operation.
|
|
*
|
|
* @return PublicError|null The error
|
|
*/
|
|
public function getError()
|
|
{
|
|
if (array_key_exists("error", $this->_propDict)) {
|
|
if (is_a($this->_propDict["error"], "\Beta\Microsoft\Graph\Model\PublicError") || is_null($this->_propDict["error"])) {
|
|
return $this->_propDict["error"];
|
|
} else {
|
|
$this->_propDict["error"] = new PublicError($this->_propDict["error"]);
|
|
return $this->_propDict["error"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the error
|
|
* The error that occurred, if any, during the course of the bulk operation.
|
|
*
|
|
* @param PublicError $val The value to assign to the error
|
|
*
|
|
* @return ActionResultPart The ActionResultPart
|
|
*/
|
|
public function setError($val)
|
|
{
|
|
$this->_propDict["error"] = $val;
|
|
return $this;
|
|
}
|
|
}
|