1 | <?php |
||
12 | class TypeContext |
||
13 | { |
||
14 | private $type; |
||
15 | private $documentProvider; |
||
16 | private $mapping; |
||
17 | |||
18 | /** |
||
19 | * @param Type $type |
||
20 | * @param DocumentProvider $documentProvider |
||
21 | * @param MappingProvider|array $mapping |
||
22 | */ |
||
23 | 12 | public function __construct(Type $type, DocumentProvider $documentProvider, $mapping) |
|
33 | |||
34 | /** |
||
35 | * @return Type |
||
36 | */ |
||
37 | 5 | public function getType() |
|
41 | |||
42 | /** |
||
43 | * @return array|Mapping |
||
44 | */ |
||
45 | 7 | public function getMapping() |
|
53 | |||
54 | /** |
||
55 | * @return Document[] |
||
56 | */ |
||
57 | 5 | public function getDocuments() |
|
61 | } |
||
62 |