getJson() public static method

Gets Json String of Object ErrorDetails
public static getJson ( ) : string
return string
Example #1
0
 /**
  * Gets Json String of Object Error
  * @return string
  */
 public static function getJson()
 {
     return '{"name":"TestSample","debug_id":"TestSample","message":"TestSample","information_link":"TestSample","details":' . ErrorDetailsTest::getJson() . ',"links":' . LinksTest::getJson() . '}';
 }
Example #2
0
 /**
  * Gets Json String of Object Error
  *
  * @return string
  */
 public static function getJson()
 {
     return '{"name":"TestSample","purchase_unit_reference_id":"TestSample","message":"TestSample","code":"TestSample","details":' . ErrorDetailsTest::getJson() . ',"processor_response":' . ProcessorResponseTest::getJson() . ',"fmf_details":' . FmfDetailsTest::getJson() . ',"information_link":"TestSample","debug_id":"TestSample","links":' . LinksTest::getJson() . '}';
 }