1 | <?php |
||
19 | trait Rsync |
||
20 | { |
||
21 | /** |
||
22 | * Tar Executable |
||
23 | * |
||
24 | * @var \phpbu\App\Cli\Executable\Tar |
||
25 | */ |
||
26 | protected $executable; |
||
27 | |||
28 | /** |
||
29 | * Path to executable. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | private $pathToRsync; |
||
34 | |||
35 | /** |
||
36 | * Raw args |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $args; |
||
41 | |||
42 | /** |
||
43 | * Remote username |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $user; |
||
48 | |||
49 | /** |
||
50 | * Target host |
||
51 | * |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $host; |
||
55 | |||
56 | /** |
||
57 | * Target path |
||
58 | * |
||
59 | * @var string |
||
60 | */ |
||
61 | protected $path; |
||
62 | |||
63 | /** |
||
64 | * Files to ignore, extracted from config string separated by ":" |
||
65 | * |
||
66 | * @var array |
||
67 | */ |
||
68 | protected $excludes; |
||
69 | |||
70 | /** |
||
71 | * Should only the created backup be synced or the complete directory |
||
72 | * |
||
73 | * @var boolean |
||
74 | */ |
||
75 | protected $isDirSync; |
||
76 | |||
77 | /** |
||
78 | * Remove deleted files. |
||
79 | * |
||
80 | * @var bool |
||
81 | */ |
||
82 | protected $delete; |
||
83 | |||
84 | protected function setupRsync(array $conf) |
||
102 | |||
103 | /** |
||
104 | * Setup the Executable to run the 'rsync' command. |
||
105 | * |
||
106 | * @param \phpbu\App\Backup\Target |
||
107 | * @return \phpbu\App\Cli\Executable |
||
108 | */ |
||
109 | public function getExecutable(Target $target) |
||
126 | |||
127 | /** |
||
128 | * Configure the executable if no costim args are used. |
||
129 | * |
||
130 | * @param \phpbu\App\Cli\Executable\Rsync $exec |
||
131 | * @param \phpbu\App\Backup\Target $target |
||
132 | */ |
||
133 | abstract protected function configureExecutable(Executable\Rsync $exec, Target $target); |
||
134 | |||
135 | /** |
||
136 | * Return rsync location. |
||
137 | * |
||
138 | * @param \phpbu\App\Backup\Target |
||
139 | * @return string |
||
140 | */ |
||
141 | protected function getRsyncLocation(Target $target) |
||
145 | } |
||
146 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..