1 | <?php |
||
24 | class ManganelMeta extends Meta |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * Create instance of Metadata specifically designed for Manganel |
||
29 | * @param string|object|AnnotatedInterface $model |
||
30 | * @param MetaOptions $options |
||
31 | * @return ManganelMeta |
||
32 | */ |
||
33 | 26 | public static function create($model, MetaOptions $options = null) |
|
34 | { |
||
35 | 26 | if (null === $options) |
|
36 | 26 | { |
|
37 | 26 | $options = new ManganelMetaOptions(); |
|
38 | 26 | } |
|
39 | 26 | return parent::create($model, $options); |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * Get field by name |
||
44 | * @param string $name |
||
45 | * @return DocumentPropertyMeta |
||
46 | */ |
||
47 | 24 | public function field($name) |
|
51 | |||
52 | /** |
||
53 | * Get document type meta |
||
54 | * @return DocumentTypeMeta |
||
55 | */ |
||
56 | 25 | public function type() |
|
57 | { |
||
58 | 25 | return parent::type(); |
|
59 | 1 | } |
|
60 | |||
61 | /** |
||
62 | * Get method meta data |
||
63 | * @param type $name |
||
64 | * @return DocumentMethodMeta |
||
65 | */ |
||
66 | public function method($name) |
||
70 | |||
71 | } |
||
72 |