1 | <?php |
||
13 | class MapperBuilder implements MapperBuilderInterface |
||
14 | { |
||
15 | const MAPPER_NAME = 'mapping.php'; |
||
16 | |||
17 | /** |
||
18 | * Path to save generated maps |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $buildPath; |
||
22 | |||
23 | /** |
||
24 | * @var MapperBuilderConfig |
||
25 | */ |
||
26 | private $config; |
||
27 | |||
28 | /** |
||
29 | * MapperBuilder constructor. |
||
30 | * |
||
31 | * @param MapperBuilderConfig $config |
||
32 | */ |
||
33 | public function __construct(MapperBuilderConfig $config) |
||
37 | |||
38 | /** |
||
39 | * Generate/update mapping |
||
40 | * @param ArrayObject $spec |
||
41 | */ |
||
42 | public function create(ArrayObject $spec) |
||
58 | } |
||
59 |