Class Patch
Class Patch
A JSON patch object that you can use to apply partial updates to resources.
-
PayPal\Common\PayPalModel
-
PayPal\Api\Patch
Methods summary
public
|
#
setOp( string $op )
The operation to perform.
Valid Values: ["add", "remove", "replace", "move", "copy", "test"]
The operation to perform.
Valid Values: ["add", "remove", "replace", "move", "copy", "test"]
Parameters
Returns
$this
|
public
string
|
#
getOp( )
The operation to perform.
The operation to perform.
Returns
string
|
public
|
#
setPath( string $path )
A JSON pointer that references a location in the target document where the operation is performed. A string value.
A JSON pointer that references a location in the target document where the operation is performed. A string value.
Parameters
Returns
$this
|
public
string
|
#
getPath( )
A JSON pointer that references a location in the target document where the operation is performed. A string value.
A JSON pointer that references a location in the target document where the operation is performed. A string value.
Returns
string
|
public
|
#
setValue( mixed $value )
New value to apply based on the operation.
New value to apply based on the operation.
Parameters
Returns
$this
|
public
mixed
|
#
getValue( )
New value to apply based on the operation.
New value to apply based on the operation.
Returns
mixed
|
public
|
#
setFrom( string $from )
A string containing a JSON Pointer value that references the location in the target document to move the value from.
A string containing a JSON Pointer value that references the location in the target document to move the value from.
Parameters
Returns
$this
|
public
string
|
#
getFrom( )
A string containing a JSON Pointer value that references the location in the target document to move the value from.
A string containing a JSON Pointer value that references the location in the target document to move the value from.
Returns
string
|
__construct()
,
__get()
,
__isset()
,
__set()
,
__toString()
,
__unset()
,
fromArray()
,
fromJson()
,
getList()
,
setCredential()
,
toArray()
,
toJSON()