PayPal\Test\Api\PatchTest::getJson PHP Method

getJson() public static method

Gets Json String of Object Patch
public static getJson ( ) : string
return string
    public static function getJson()
    {
        return '{"op":"TestSample","path":"TestSample","value":"TestSample","from":"TestSample"}';
    }

Usage Example

Example #1
0
 /**
  * Gets Json String of Object PatchRequest
  * @return string
  */
 public static function getJson()
 {
     return '{"patches":' . PatchTest::getJson() . '}';
 }