1 | <?php |
||
10 | class ConcreteType implements TypeInterface |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * Process a value to be a concrete annotation |
||
15 | * |
||
16 | * @param string $value json string |
||
17 | * @param string $class name of concrete annotation type (class) |
||
18 | * @throws \Minime\Annotations\ParserException |
||
19 | * @return object |
||
20 | */ |
||
21 | public function parse($value, $class = null) |
||
43 | |||
44 | protected function makeConstructSugarInjectionInstance($class, array $prototype) { |
||
50 | |||
51 | /** |
||
52 | * Creates and hydrates a concrete annotation class |
||
53 | * |
||
54 | * @param string $class full qualified class name |
||
55 | * @param stdClass $prototype object prototype |
||
56 | * @return object hydrated concrete annotation class |
||
57 | */ |
||
58 | protected function makeInstance($class, stdClass $prototype) |
||
70 | |||
71 | /** |
||
72 | * Do configuration injection through method calls |
||
73 | * |
||
74 | * @param object $instance concrete annotation instance |
||
75 | * @param stdClass $prototype object prototype |
||
76 | * @return object hydrated concrete annotation class |
||
77 | */ |
||
78 | protected function doMethodConfiguration($instance, stdClass $prototype) |
||
86 | |||
87 | /** |
||
88 | * Validates a prototype object |
||
89 | * |
||
90 | * @param stdClass $prototype object prototype |
||
91 | * @return boolean true if prototype is valid |
||
92 | */ |
||
93 | protected function isPrototypeSchemaValid(stdclass $prototype) |
||
103 | |||
104 | } |
||
105 |