| 1 | <?php |
||
| 13 | class MappingContext |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Object mapper |
||
| 17 | * |
||
| 18 | * @var ObjectMapper |
||
| 19 | */ |
||
| 20 | protected $mapper; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Mapping definition |
||
| 24 | * |
||
| 25 | * @var DefinitionInterface |
||
| 26 | */ |
||
| 27 | protected $definition; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * MappingContext constructor. |
||
| 31 | * |
||
| 32 | * @param ObjectMapper $mapper |
||
| 33 | * @param DefinitionInterface $definition |
||
| 34 | */ |
||
| 35 | 3 | public function __construct(ObjectMapper $mapper, DefinitionInterface $definition) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Get object mapper |
||
| 43 | * |
||
| 44 | * @return ObjectMapper |
||
| 45 | */ |
||
| 46 | 1 | public function getMapper(): ObjectMapper |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Get mapping configuration |
||
| 53 | * |
||
| 54 | * @return DefinitionInterface |
||
| 55 | */ |
||
| 56 | 1 | public function getDefinition(): DefinitionInterface |
|
| 60 | } |