PHP Class PayPal\Api\Patch

A JSON patch object that you can use to apply partial updates to resources.
Inheritance: extends PayPal\Common\PayPalModel
Afficher le fichier Open project: paypal/rest-api-sdk-php Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

getOp() public méthode

The operation to perform.
public getOp ( ) : string
Résultat string

getPath() public méthode

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

getValue() public méthode

New value to apply based on the operation.
public getValue ( ) : mixed
Résultat mixed

setFrom() public méthode

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 méthode

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

setPath() public méthode

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 méthode

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