| Conditions | 2 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 38 | public function __construct($path, array $options = array()) |
|
| 23 | { |
||
| 24 | 38 | $path = rtrim($path, DIRECTORY_SEPARATOR); |
|
| 25 | |||
| 26 | // Merge supplied options with the defaults |
||
| 27 | 38 | $options = array_merge(array( |
|
| 28 | 38 | 'formatter' => new Formatter\JSON, |
|
| 29 | 38 | 'query_class' => $this->hasAPC() ? '\\JamesMoss\\Flywheel\\CachedQuery' : '\\JamesMoss\\Flywheel\\Query', |
|
| 30 | 38 | 'document_class' => '\\JamesMoss\\Flywheel\\Document', |
|
| 31 | 38 | ), $options); |
|
| 32 | |||
| 33 | 38 | $this->path = $path; |
|
| 34 | 38 | $this->options = $options; |
|
| 35 | 38 | } |
|
| 36 | |||
| 64 |