summaryrefslogtreecommitdiff
path: root/tests/plugins/grpc/php_server/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/grpc/php_server/src')
-rw-r--r--tests/plugins/grpc/php_server/src/EchoService.php17
-rw-r--r--tests/plugins/grpc/php_server/src/GPBMetadata/Service.php27
-rw-r--r--tests/plugins/grpc/php_server/src/Service/EchoInterface.php22
-rw-r--r--tests/plugins/grpc/php_server/src/Service/Message.php58
4 files changed, 0 insertions, 124 deletions
diff --git a/tests/plugins/grpc/php_server/src/EchoService.php b/tests/plugins/grpc/php_server/src/EchoService.php
deleted file mode 100644
index c2707811..00000000
--- a/tests/plugins/grpc/php_server/src/EchoService.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/**
- * Sample GRPC PHP server.
- */
-
-use Spiral\GRPC\ContextInterface;
-use Service\EchoInterface;
-use Service\Message;
-
-class EchoService implements EchoInterface
-{
- public function Ping(ContextInterface $ctx, Message $in): Message
- {
- $out = new Message();
- return $out->setMsg(strtoupper($in->getMsg()));
- }
-} \ No newline at end of file
diff --git a/tests/plugins/grpc/php_server/src/GPBMetadata/Service.php b/tests/plugins/grpc/php_server/src/GPBMetadata/Service.php
deleted file mode 100644
index c1b65b21..00000000
--- a/tests/plugins/grpc/php_server/src/GPBMetadata/Service.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-# Generated by the protocol buffer compiler. DO NOT EDIT!
-# source: service.proto
-
-namespace GPBMetadata;
-
-class Service
-{
- public static $is_initialized = false;
-
- public static function initOnce() {
- $pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
-
- if (static::$is_initialized == true) {
- return;
- }
- $pool->internalAddGeneratedFile(hex2bin(
- "0a6e0a0d736572766963652e70726f746f12077365727669636522160a07" .
- "4d657373616765120b0a036d736718012001280932340a044563686f122c" .
- "0a0450696e6712102e736572766963652e4d6573736167651a102e736572" .
- "766963652e4d6573736167652200620670726f746f33"
- ));
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/tests/plugins/grpc/php_server/src/Service/EchoInterface.php b/tests/plugins/grpc/php_server/src/Service/EchoInterface.php
deleted file mode 100644
index 5f336ace..00000000
--- a/tests/plugins/grpc/php_server/src/Service/EchoInterface.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-# Generated by the protocol buffer compiler (spiral/grpc). DO NOT EDIT!
-# source: service.proto
-
-namespace Service;
-
-use Spiral\GRPC;
-
-interface EchoInterface extends GRPC\ServiceInterface
-{
- // GRPC specific service name.
- public const NAME = "service.Echo";
-
- /**
- * @param GRPC\ContextInterface $ctx
- * @param Message $in
- * @return Message
- *
- * @throws GRPC\Exception\InvokeException
- */
- public function Ping(GRPC\ContextInterface $ctx, Message $in): Message;
-}
diff --git a/tests/plugins/grpc/php_server/src/Service/Message.php b/tests/plugins/grpc/php_server/src/Service/Message.php
deleted file mode 100644
index 6c40c879..00000000
--- a/tests/plugins/grpc/php_server/src/Service/Message.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-# Generated by the protocol buffer compiler. DO NOT EDIT!
-# source: service.proto
-
-namespace Service;
-
-use Google\Protobuf\Internal\GPBType;
-use Google\Protobuf\Internal\RepeatedField;
-use Google\Protobuf\Internal\GPBUtil;
-
-/**
- * Generated from protobuf message <code>service.Message</code>
- */
-class Message extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field <code>string msg = 1;</code>
- */
- private $msg = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $msg
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field <code>string msg = 1;</code>
- * @return string
- */
- public function getMsg()
- {
- return $this->msg;
- }
-
- /**
- * Generated from protobuf field <code>string msg = 1;</code>
- * @param string $var
- * @return $this
- */
- public function setMsg($var)
- {
- GPBUtil::checkString($var, True);
- $this->msg = $var;
-
- return $this;
- }
-
-}
-