| Conditions | 6 |
| Paths | 6 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function __construct($path = null) |
||
| 33 | { |
||
| 34 | $this->path = $path; |
||
| 35 | |||
| 36 | if (! $this->path) { |
||
| 37 | $this->path = sys_get_temp_dir() . '/minime-annotations/'; |
||
| 38 | if (! is_dir($this->path) ) { |
||
| 39 | mkdir($this->path); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 43 | if (! is_dir($this->path) || ! is_writable($this->path) || ! is_readable($this->path)) { |
||
| 44 | throw new \InvalidArgumentException("Cache path is not a writable/readable directory: {$this->path}."); |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 84 |