File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 */
1010interface TypeInterface
1111{
12+ /**
13+ * @return TypeInterface
14+ */
15+ public static function getType ();
16+
1217 /**
1318 * Parses a type
1419 * @param string $value value to be processed
Load diff This file was deleted.
Original file line number Diff line number Diff line change 44
55use stdClass ;
66use ReflectionClass ;
7+ use Minime \Annotations \Interfaces \TypeInterface ;
78use Minime \Annotations \ParserException ;
89
9- class ConcreteType extends AbstractType
10+ class ConcreteType implements TypeInterface
1011{
1112 /**
1213 * @var TypeInterface
Original file line number Diff line number Diff line change 22
33namespace Minime \Annotations \Types ;
44
5- class DynamicType extends AbstractType
5+ use Minime \Annotations \Interfaces \TypeInterface ;
6+
7+ class DynamicType implements TypeInterface
68{
79 /**
810 * @var TypeInterface
Original file line number Diff line number Diff line change 22
33namespace Minime \Annotations \Types ;
44
5+ use Minime \Annotations \Interfaces \TypeInterface ;
56use Minime \Annotations \ParserException ;
67
7- class FloatType extends AbstractType
8+ class FloatType implements TypeInterface
89{
910 /**
1011 * @var TypeInterface
Original file line number Diff line number Diff line change 22
33namespace Minime \Annotations \Types ;
44
5+ use Minime \Annotations \Interfaces \TypeInterface ;
56use Minime \Annotations \ParserException ;
67
7- class IntegerType extends AbstractType
8+ class IntegerType implements TypeInterface
89{
910 /**
1011 * @var TypeInterface
Original file line number Diff line number Diff line change 22
33namespace Minime \Annotations \Types ;
44
5+ use Minime \Annotations \Interfaces \TypeInterface ;
56use Minime \Annotations \ParserException ;
67
7- class JsonType extends AbstractType
8+ class JsonType implements TypeInterface
89{
910 /**
1011 * @var TypeInterface
Original file line number Diff line number Diff line change 22
33namespace Minime \Annotations \Types ;
44
5- class StringType extends AbstractType
5+ use Minime \Annotations \Interfaces \TypeInterface ;
6+
7+ class StringType implements TypeInterface
68{
79 /**
810 * @var TypeInterface
Original file line number Diff line number Diff line change 66
77class FooType implements TypeInterface
88{
9+ public static function getType ()
10+ {
11+ return new FooType ();
12+ }
13+
914 public function parse ($ value , $ annotation = null )
1015 {
1116 return 'this foo is ' . $ value ;
You can’t perform that action at this time.
0 commit comments