関数
AmazonGenericError::jsonSerialize()
JSON serializes AmazonGenericError
object for consumption by front-end
戻り値 戻り値
ファイル: src/Errors/AmazonGenericError.php
public function jsonSerialize() { return [ 'errorcode' => $this->errorcode, 'errorname' => $this->errorname, 'debug' => is_callable($this->debugmsg) ? '' : $this->debugmsg, 'message' => is_callable($this->message) ? '' : $this->message, 'adminmsg' => is_callable($this->adminmsg) ? '' : $this->adminmsg, 'apiresult' => $this->apiresult, ]; }