| @@ 119-131 (lines=13) @@ | ||
| 116 | * |
|
| 117 | * @return array |
|
| 118 | */ |
|
| 119 | public static function createStartErrorReply(ContextInterface $context, int $errorCode, $errorContext = null): array |
|
| 120 | { |
|
| 121 | $value = null; |
|
| 122 | ||
| 123 | return [ |
|
| 124 | static::createErrorInfoEntry( |
|
| 125 | $context->getCurrentBlockId(), |
|
| 126 | $value, |
|
| 127 | $errorCode, |
|
| 128 | $errorContext |
|
| 129 | ), |
|
| 130 | ]; |
|
| 131 | } |
|
| 132 | ||
| 133 | /** |
|
| 134 | * @param ContextInterface $context |
|
| @@ 140-152 (lines=13) @@ | ||
| 137 | * |
|
| 138 | * @return array |
|
| 139 | */ |
|
| 140 | public static function createEndErrorReply(ContextInterface $context, int $errorCode, $errorContext = null): array |
|
| 141 | { |
|
| 142 | $value = null; |
|
| 143 | ||
| 144 | return [ |
|
| 145 | static::createErrorInfoEntry( |
|
| 146 | $context->getCurrentBlockId(), |
|
| 147 | $value, |
|
| 148 | $errorCode, |
|
| 149 | $errorContext |
|
| 150 | ), |
|
| 151 | ]; |
|
| 152 | } |
|
| 153 | ||
| 154 | /** |
|
| 155 | * @param int $blockId |
|