| 1 | <?php |
||
| 20 | abstract class Remote extends Abstraction |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Path class. |
||
| 24 | * |
||
| 25 | * @var \phpbu\App\Backup\Path |
||
| 26 | */ |
||
| 27 | protected $path; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Setting up Target and fileRegex. |
||
| 31 | * |
||
| 32 | * @param \phpbu\App\Backup\Target $target |
||
| 33 | * @param \phpbu\App\Backup\Path $path |
||
| 34 | */ |
||
| 35 | protected function setUp(Target $target, Path $path) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Return true if target full path matches file and path regex. |
||
| 44 | * |
||
| 45 | * @param string $targetPath Full path to the remote file to check |
||
| 46 | * @return bool |
||
| 47 | */ |
||
| 48 | protected function isFileMatch(string $targetPath) : bool |
||
| 57 | } |
||
| 58 |