| 1 | <?php |
||
| 13 | abstract class AbstractStrategy implements FileExistsStrategyInterface |
||
| 14 | { |
||
| 15 | /** @var null|string */ |
||
| 16 | private $fileName; |
||
| 17 | |||
| 18 | /** @var null|string */ |
||
| 19 | private $filePath; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $name |
||
| 23 | * @return $this |
||
| 24 | * @throws InvalidArgumentException |
||
| 25 | */ |
||
| 26 | public function setFileName($name) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $path |
||
| 42 | * @return $this |
||
| 43 | * @throws InvalidArgumentException |
||
| 44 | */ |
||
| 45 | public function setFilePath($path) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return null|string |
||
| 65 | * @throws RuntimeException |
||
| 66 | */ |
||
| 67 | protected function getFileName() |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @return null|string |
||
| 80 | * @throws RuntimeException |
||
| 81 | */ |
||
| 82 | protected function getFilePath() |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @return $this |
||
| 95 | */ |
||
| 96 | protected function resetFileName() |
||
| 102 | |||
| 103 | /** |
||
| 104 | * @return $this |
||
| 105 | */ |
||
| 106 | protected function resetFilePath() |
||
| 112 | } |