PHP Class PayPal\Api\Patch

A JSON patch object that you can use to apply partial updates to resources.
Inheritance: extends PayPal\Common\PayPalModel
ファイルを表示 Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
getFrom ( ) : string A string containing a JSON Pointer value that references the location in the target document to move the value from.
getOp ( ) : string The operation to perform.
getPath ( ) : string A JSON pointer that references a location in the target document where the operation is performed. A string value.
getValue ( ) : mixed New value to apply based on the operation.
setFrom ( string $from ) A string containing a JSON Pointer value that references the location in the target document to move the value from.
setOp ( string $op ) The operation to perform.
setPath ( string $path ) A JSON pointer that references a location in the target document where the operation is performed. A string value.
setValue ( mixed $value ) New value to apply based on the operation.

Method Details

getFrom() public method

A string containing a JSON Pointer value that references the location in the target document to move the value from.
public getFrom ( ) : string
return string

getOp() public method

The operation to perform.
public getOp ( ) : string
return string

getPath() public method

A JSON pointer that references a location in the target document where the operation is performed. A string value.
public getPath ( ) : string
return string

getValue() public method

New value to apply based on the operation.
public getValue ( ) : mixed
return mixed

setFrom() public method

A string containing a JSON Pointer value that references the location in the target document to move the value from.
public setFrom ( string $from )
$from string

setOp() public method

Valid Values: ["add", "remove", "replace", "move", "copy", "test"]
public setOp ( string $op )
$op string

setPath() public method

A JSON pointer that references a location in the target document where the operation is performed. A string value.
public setPath ( string $path )
$path string

setValue() public method

New value to apply based on the operation.
public setValue ( mixed $value )
$value mixed