| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public function setFilePath($path) |
||
| 46 | { |
||
| 47 | if (!is_dir($path)) { |
||
| 48 | throw new InvalidArgumentException( |
||
| 49 | 'provided path "' . $path . '" has to be a directory' |
||
| 50 | ); |
||
| 51 | } |
||
| 52 | |||
| 53 | if (!is_writable($path)) { |
||
| 54 | throw new InvalidArgumentException( |
||
| 55 | 'provided path "' . $path . '" has to be writable' |
||
| 56 | ); |
||
| 57 | } |
||
| 58 | $this->filePath = $path; |
||
| 59 | |||
| 60 | return $this; |
||
| 61 | } |
||
| 62 | |||
| 112 | } |