| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- // GENERATED CODE -- DO NOT EDIT!
- namespace Palm\Morus\V1;
- /**
- */
- class MarkdownStub {
- /**
- * @param \Palm\Morus\V1\MarkdownToHtmlRequest $request client request
- * @param \Grpc\ServerContext $context server request context
- * @return \Palm\Morus\V1\MarkdownToHtmlResponse for response data, null if if error occured
- * initial metadata (if any) and status (if not ok) should be set to $context
- */
- public function ToHtml(
- \Palm\Morus\V1\MarkdownToHtmlRequest $request,
- \Grpc\ServerContext $context
- ): ?\Palm\Morus\V1\MarkdownToHtmlResponse {
- $context->setStatus(\Grpc\Status::unimplemented());
- return null;
- }
- /**
- * Get the method descriptors of the service for server registration
- *
- * @return array of \Grpc\MethodDescriptor for the service methods
- */
- public final function getMethodDescriptors(): array
- {
- return [
- '/palm.morus.v1.Markdown/ToHtml' => new \Grpc\MethodDescriptor(
- $this,
- 'ToHtml',
- '\Palm\Morus\V1\MarkdownToHtmlRequest',
- \Grpc\MethodDescriptor::UNARY_CALL
- ),
- ];
- }
- }
|