1 | <?php |
||
25 | class Datamatrix implements TransformatorInterface |
||
26 | { |
||
27 | |||
28 | /** |
||
29 | * Returns the given object as an associative array |
||
30 | * @param AnnotatedInterface|object $model |
||
31 | * @param string[] $fields Fields to transform |
||
32 | * @return array an associative array of the contents of this object |
||
33 | */ |
||
34 | 2 | public static function fromModel(AnnotatedInterface $model, $fields = []) |
|
39 | |||
40 | /** |
||
41 | * Create document from array |
||
42 | * |
||
43 | * @param mixed[] $data |
||
44 | * @param string|object $className |
||
45 | * @param AnnotatedInterface $instance |
||
46 | * @return AnnotatedInterface |
||
47 | * @throws TransformatorException |
||
48 | */ |
||
49 | public static function toModel($data, $className = null, AnnotatedInterface $instance = null) |
||
54 | |||
55 | } |
||
56 |