MarkdownClient.php 1011 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. // GENERATED CODE -- DO NOT EDIT!
  3. namespace Mint\Morus\V1;
  4. /**
  5. * ----------------------------------------------------------------------------
  6. */
  7. class MarkdownClient extends \Grpc\BaseStub {
  8. /**
  9. * @param string $hostname hostname
  10. * @param array $opts channel options
  11. * @param \Grpc\Channel $channel (optional) re-use channel object
  12. */
  13. public function __construct($hostname, $opts, $channel = null) {
  14. parent::__construct($hostname, $opts, $channel);
  15. }
  16. /**
  17. * @param \Mint\Morus\V1\MarkdownToHtmlRequest $argument input argument
  18. * @param array $metadata metadata
  19. * @param array $options call options
  20. * @return \Grpc\UnaryCall
  21. */
  22. public function ToHtml(\Mint\Morus\V1\MarkdownToHtmlRequest $argument,
  23. $metadata = [], $options = []) {
  24. return $this->_simpleRequest('/mint.morus.v1.Markdown/ToHtml',
  25. $argument,
  26. ['\Mint\Morus\V1\MarkdownToHtmlResponse', 'decode'],
  27. $metadata, $options);
  28. }
  29. }