Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
11 | public function __construct($filename = null, array $keySchema, array $valueSchema, array $options = []) { |
||
12 | if($filename === null) { |
||
13 | $filename = tempnam(sys_get_temp_dir(), 'data-diff-'); |
||
14 | } |
||
15 | $this->createFile($filename); |
||
16 | $options['dsn'] = sprintf('sqlite:%s', $filename); |
||
17 | parent::__construct($keySchema, $valueSchema, $options); |
||
18 | } |
||
19 | |||
34 |