blob: 5ca06a21d038cde24f1695f7557a5d5284fbea39 [file] [log] [blame]
Volodymyr Panivko68139d12024-03-19 23:14:07 +01001<?php
2
3class Handler implements \ThriftTest\ThriftTestIf
4{
5 public function testVoid()
6 {
7 return;
8 }
9
10 public function testString($thing)
11 {
12 return $thing;
13 }
14
15 public function testBool($thing)
16 {
17 return $thing;
18 }
19
20 public function testByte($thing)
21 {
22 return $thing;
23 }
24
25 public function testI32($thing)
26 {
27 return $thing;
28 }
29
30 public function testI64($thing)
31 {
32 return $thing;
33 }
34
35 public function testDouble($thing)
36 {
37 return $thing;
38 }
39
40 public function testBinary($thing)
41 {
42 return $thing;
43 }
44
45 public function testStruct(\ThriftTest\Xtruct $thing)
46 {
47 return $thing;
48 }
49
50 public function testNest(\ThriftTest\Xtruct2 $thing)
51 {
52 return $thing;
53 }
54
55 public function testMap(array $thing)
56 {
57 return $thing;
58 }
59
60 public function testStringMap(array $thing)
61 {
62 return $thing;
63 }
64
65 public function testSet(array $thing)
66 {
67 return $thing;
68 }
69
70 public function testList(array $thing)
71 {
72 return $thing;
73 }
74
75 public function testEnum($thing)
76 {
77 return $thing;
78 }
79
80 public function testTypedef($thing)
81 {
82 return $thing;
83 }
84
85 public function testMapMap($hello)
86 {
87 return $hello;
88 }
89
90 public function testInsanity(\ThriftTest\Insanity $argument)
91 {
92 return $argument;
93 }
94
95 public function testMulti($arg0, $arg1, $arg2, array $arg3, $arg4, $arg5)
96 {
97 // TODO: Implement testMulti() method.
98 }
99
100 public function testException($arg)
101 {
102 throw new \Exception($arg);
103 }
104
105 public function testMultiException($arg0, $arg1)
106 {
107 throw new \Exception($arg0, $arg1);
108 }
109
110 public function testOneway($secondsToSleep)
111 {
112 sleep($secondsToSleep);
113 }
114}