20 private $label =
null;
27 private $endpoint =
null;
34 private $custom =
null;
43 public function __construct($label =
null, $endpoint =
null, $custom =
null)
45 $this->label = $label;
46 $this->endpoint = $endpoint;
47 $this->custom = $custom;
59 if (!empty($json->label)) {
60 $label = $json->label;
64 if (!empty($json->url)) {
65 $endpoint = $json->url;
69 if (!empty($json->custom)) {
70 $custom = $json->custom;
85 $obj = new \stdClass();
86 if (!empty($this->label)) {
87 $obj->label = $this->label;
89 if (!empty($this->endpoint)) {
90 $obj->url = $this->endpoint;
92 if (!empty($this->custom)) {
93 $obj->custom = $this->custom;
Class to represent a submission review.
toJsonObject()
Generate the JSON object representation of the submission review.
__construct($label=null, $endpoint=null, $custom=null)
Class constructor.
static fromJsonObject($json)
Generate a SubmissionReview object from its JSON representation.