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