1 | <?php |
||
12 | abstract class File_Backup_Engine extends Backup_Engine { |
||
13 | |||
14 | /** |
||
15 | * The array of excludes rules |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $excludes; |
||
20 | |||
21 | /** |
||
22 | * Set the default backup filename. |
||
23 | */ |
||
24 | public function __construct() { |
||
37 | |||
38 | /** |
||
39 | * Set the excludes rules for the backup. |
||
40 | * |
||
41 | * @param array $excludes The exclude rules. |
||
42 | */ |
||
43 | public function set_excludes( Excludes $excludes ) { |
||
46 | |||
47 | /** |
||
48 | * Returns a Finder instance for the files that will be included in the |
||
49 | * backup. |
||
50 | * |
||
51 | * By default we ignore unreadable files and directories as well as, common |
||
52 | * version control folders / files, "Dot" files and anything matching the |
||
53 | * exclude rules. |
||
54 | * |
||
55 | * @uses Finder |
||
56 | * @return Finder The Finder iterator of all files to be included |
||
57 | */ |
||
58 | public function get_files() { |
||
87 | |||
88 | /** |
||
89 | * Verify that the file backup completed successfully. |
||
90 | * |
||
91 | * This should be called from backup method of any final file backup engine |
||
92 | * implementations. |
||
93 | * |
||
94 | * @return bool Whether the backup completed successfully. |
||
95 | */ |
||
96 | public function verify_backup() { |
||
111 | |||
112 | } |
||
113 |
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..