PHP Класс PayPal\Api\PatchRequest

A JSON patch request.
Наследование: extends PayPal\Common\PayPalModel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
addPatch ( Patch $patch ) Append Patches to the list.
getPatches ( ) : Patch[] Placeholder for holding array of patch objects
removePatch ( Patch $patch ) Remove Patches from the list.
setPatches ( Patch[] $patches ) Placeholder for holding array of patch objects
toJSON ( integer $options ) : mixed | string As PatchRequest holds the array of Patch object, we would override the json conversion to return a json representation of array of Patch objects.

Описание методов

addPatch() публичный Метод

Append Patches to the list.
public addPatch ( Patch $patch )
$patch Patch

getPatches() публичный Метод

Placeholder for holding array of patch objects
public getPatches ( ) : Patch[]
Результат Patch[]

removePatch() публичный Метод

Remove Patches from the list.
public removePatch ( Patch $patch )
$patch Patch

setPatches() публичный Метод

Placeholder for holding array of patch objects
public setPatches ( Patch[] $patches )
$patches Patch[]

toJSON() публичный Метод

As PatchRequest holds the array of Patch object, we would override the json conversion to return a json representation of array of Patch objects.
public toJSON ( integer $options ) : mixed | string
$options integer
Результат mixed | string