| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Path |
||
| 11 | { |
||
| 12 | |||
| 13 | private string $path = ''; |
||
| 14 | |||
| 15 | public function get(): string |
||
| 16 | { |
||
| 17 | return $this->path; |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Specify the path where the images will be saved. |
||
| 22 | * @param string $path |
||
| 23 | * @example public/images/ |
||
| 24 | */ |
||
| 25 | public function set(string $path) |
||
| 26 | { |
||
| 27 | $this->path = $path; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Verify if path exist. |
||
| 32 | * @return bool |
||
| 33 | */ |
||
| 34 | public function exist(): bool |
||
| 37 | } |
||
| 38 | } |