| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 17 | 5 | public function __construct($path) |
|
| 18 | { |
||
| 19 | 5 | if (!is_writable($path)) { |
|
| 20 | 1 | throw new \Exception(sprintf('%s is not exist or writable', $path)); |
|
| 21 | } |
||
| 22 | 4 | $options = ['path' => $path]; |
|
| 23 | 4 | $driver = new \Stash\Driver\FileSystem($options); |
|
| 24 | 4 | $this->pool = new \Stash\Pool($driver); |
|
| 25 | 4 | } |
|
| 26 | |||
| 57 |