| 1 | <?php |
||
| 26 | class Writer |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * Data |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | private $data; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Map |
||
| 36 | * @var array |
||
| 37 | */ |
||
| 38 | private $map = array(); |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Constructor |
||
| 42 | * |
||
| 43 | * @param array $data |
||
| 44 | * @param array $map |
||
| 45 | * @throws \Exception |
||
| 46 | */ |
||
| 47 | public function __construct($data, $map) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Write |
||
| 63 | * |
||
| 64 | * @param $file |
||
| 65 | * @return true |
||
| 66 | * @throws \Exception |
||
| 67 | */ |
||
| 68 | public function write($file) |
||
| 89 | } |
||
| 90 |