src/Parser/Sqlite/Writer.php 1 location
|
@@ 133-142 (lines=10) @@
|
| 130 |
|
* @throws ParserConditionNotSatisfiedException |
| 131 |
|
* @throws UnexpectedValueException |
| 132 |
|
*/ |
| 133 |
|
protected function getAdapter() |
| 134 |
|
{ |
| 135 |
|
if ($this->adapter === null) { |
| 136 |
|
$databaseFile = $this->getTemporaryFileName(); |
| 137 |
|
$adapter = AdapterFactory::getInstance($databaseFile); |
| 138 |
|
$this->setAdapter($adapter); |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
return $this->adapter; |
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
/** |
| 145 |
|
* @param AdapterInterface $adapter |
src/Parser/Sqlite/Reader.php 1 location
|
@@ 86-95 (lines=10) @@
|
| 83 |
|
* @throws ParserRuntimeException |
| 84 |
|
* @throws UnexpectedValueException |
| 85 |
|
*/ |
| 86 |
|
protected function getAdapter() |
| 87 |
|
{ |
| 88 |
|
if ($this->adapter === null) { |
| 89 |
|
$databaseFile = $this->getDatabasePath(); |
| 90 |
|
$adapter = AdapterFactory::getInstance($databaseFile); |
| 91 |
|
$this->setAdapter($adapter); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
return $this->adapter; |
| 95 |
|
} |
| 96 |
|
|
| 97 |
|
/** |
| 98 |
|
* @return string |