@@ 76-78 (lines=3) @@ | ||
73 | throw new BadCommandRequestException(["Required parameter 'command' is not set."]); |
|
74 | } |
|
75 | ||
76 | if (!isset($data['command']['name']) || !is_string($data['command']['name'])) { |
|
77 | throw new BadCommandRequestException(["Required command parameter 'name' is not set or not a string."]); |
|
78 | } |
|
79 | ||
80 | if (!isset($data['command']['uuid']) || !is_string($data['command']['uuid'])) { |
|
81 | throw new BadCommandRequestException(["Required command parameter 'uuid' is not set or not a string."]); |
|
@@ 80-82 (lines=3) @@ | ||
77 | throw new BadCommandRequestException(["Required command parameter 'name' is not set or not a string."]); |
|
78 | } |
|
79 | ||
80 | if (!isset($data['command']['uuid']) || !is_string($data['command']['uuid'])) { |
|
81 | throw new BadCommandRequestException(["Required command parameter 'uuid' is not set or not a string."]); |
|
82 | } |
|
83 | ||
84 | if (!isset($data['command']['payload']) || !is_array($data['command']['payload'])) { |
|
85 | throw new BadCommandRequestException(["Required command parameter 'payload' is not set or not an object."]); |
|
@@ 84-86 (lines=3) @@ | ||
81 | throw new BadCommandRequestException(["Required command parameter 'uuid' is not set or not a string."]); |
|
82 | } |
|
83 | ||
84 | if (!isset($data['command']['payload']) || !is_array($data['command']['payload'])) { |
|
85 | throw new BadCommandRequestException(["Required command parameter 'payload' is not set or not an object."]); |
|
86 | } |
|
87 | } |
|
88 | } |
|
89 |