| Total Complexity | 5 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class MetaDocument extends Document { |
||
| 14 | /** |
||
| 15 | * human api |
||
| 16 | */ |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param array $meta |
||
| 20 | * @return MetaDocument |
||
| 21 | */ |
||
| 22 | 2 | public static function fromArray(array $meta) { |
|
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param object $meta |
||
| 31 | * @return MetaDocument |
||
| 32 | */ |
||
| 33 | 1 | public static function fromObject($meta) { |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * wrapper for Document::addMeta() to the primary data of this document available via `add()` |
||
| 41 | * |
||
| 42 | * @param string $key |
||
| 43 | * @param mixed $value |
||
| 44 | * @param string $level one of the Document::LEVEL_* constants, optional, defaults to Document::LEVEL_ROOT |
||
| 45 | */ |
||
| 46 | 1 | public function add($key, $value, $level=Document::LEVEL_ROOT) { |
|
| 47 | 1 | parent::addMeta($key, $value, $level); |
|
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * spec api |
||
| 52 | */ |
||
| 53 | |||
| 54 | /** |
||
| 55 | * DocumentInterface |
||
| 56 | */ |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @inheritDoc |
||
| 60 | */ |
||
| 61 | 7 | public function toArray() { |
|
| 70 | } |
||
| 71 | } |
||
| 72 |