1 | <?php |
||
11 | class TestController |
||
12 | { |
||
13 | /** |
||
14 | * @Query |
||
15 | * @param int $int |
||
16 | * @param null|string $string |
||
17 | * @param TestObject[] $list |
||
18 | * @return TestObject |
||
19 | */ |
||
20 | public function test(int $int, ?string $string, array $list): TestObject |
||
31 | |||
32 | /** |
||
33 | * @Mutation |
||
34 | * @param TestObject $testObject |
||
35 | * @return TestObject |
||
36 | */ |
||
37 | public function mutation(TestObject $testObject): TestObject |
||
41 | |||
42 | /** |
||
43 | * @Query |
||
44 | * @Logged |
||
45 | */ |
||
46 | public function testLogged(): TestObject |
||
50 | |||
51 | /** |
||
52 | * @Query |
||
53 | * @Right(name="CAN_FOO") |
||
54 | */ |
||
55 | public function testRight(): TestObject |
||
59 | } |
||
60 |