|
2 | 2 |
|
3 | 3 | import php.runtime.Memory; |
4 | 4 | import php.runtime.annotation.Reflection; |
| 5 | +import php.runtime.common.HintType; |
5 | 6 | import php.runtime.env.Environment; |
6 | 7 |
|
7 | 8 | import static php.runtime.annotation.Reflection.Arg; |
8 | 9 |
|
9 | | - |
10 | 10 | @Reflection.Name("Object") |
11 | 11 | public class MagicSignatureClass { |
12 | | - |
13 | | - @Reflection.Signature({@Arg("property")}) |
| 12 | + @Reflection.Signature({@Arg(value = "property", type = HintType.STRING)}) |
14 | 13 | public Memory __get(Environment env, Memory... args){ |
15 | 14 | return Memory.NULL; |
16 | 15 | } |
17 | 16 |
|
18 | | - @Reflection.Signature({@Arg("property"), @Arg("value")}) |
| 17 | + @Reflection.Signature({@Arg(value = "property", type = HintType.STRING), @Arg("value")}) |
19 | 18 | public Memory __set(Environment env, Memory... args){ |
20 | 19 | return Memory.NULL; |
21 | 20 | } |
22 | 21 |
|
23 | | - @Reflection.Signature({@Arg("name"), @Arg("arguments")}) |
| 22 | + @Reflection.Signature({@Arg(value = "name", type = HintType.STRING), @Arg(value = "arguments", type = HintType.ARRAY)}) |
24 | 23 | public Memory __call(Environment env, Memory... args){ |
25 | 24 | return Memory.NULL; |
26 | 25 | } |
27 | 26 |
|
28 | | - @Reflection.Signature({@Arg("name"), @Arg("arguments")}) |
| 27 | + @Reflection.Signature({@Arg(value = "name", type = HintType.STRING), @Arg(value = "arguments", type = HintType.ARRAY)}) |
29 | 28 | public static Memory __callStatic(Environment env, Memory... args){ |
30 | 29 | return Memory.NULL; |
31 | 30 | } |
|
0 commit comments