1 | <?php |
||
10 | class Configuration implements ArraySerializableInterface |
||
11 | { |
||
12 | public const VAULT_CONFIG_CLASS = VaultConfiguration::class; |
||
13 | |||
14 | |||
15 | /** |
||
16 | * The local base path of the archive. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $path = './'; |
||
21 | |||
22 | /** |
||
23 | * Set of excluded paths. |
||
24 | * |
||
25 | * @var string[] |
||
26 | */ |
||
27 | protected $exclude = []; |
||
28 | |||
29 | /** |
||
30 | * Identity to be visible in synchronization log. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $identity = 'unknown'; |
||
35 | |||
36 | /** |
||
37 | * Identifier of the index builder to use. |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $indexBuilder = 'standard'; |
||
42 | |||
43 | /** |
||
44 | * List of file checksums to be used for integrity checks and modification detection. |
||
45 | * |
||
46 | * @var string[] |
||
47 | */ |
||
48 | protected $fileChecksums = ['sha256', 'sha1', 'md5']; |
||
49 | |||
50 | /** |
||
51 | * Array of vault configurations. |
||
52 | * |
||
53 | * @var VaultConfiguration[] |
||
54 | */ |
||
55 | protected $vaults = []; |
||
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getPath(): string |
||
64 | |||
65 | /** |
||
66 | * @param string $path |
||
67 | * |
||
68 | * @return Configuration |
||
69 | */ |
||
70 | public function setPath(string $path): Configuration |
||
81 | |||
82 | /** |
||
83 | * @return \string[] |
||
84 | */ |
||
85 | public function getExclude(): array |
||
89 | |||
90 | /** |
||
91 | * @param \string[] $paths |
||
92 | * |
||
93 | * @return Configuration |
||
94 | */ |
||
95 | public function setExclude(array $paths): Configuration |
||
101 | |||
102 | /** |
||
103 | * @param string $path |
||
104 | * |
||
105 | * @return Configuration |
||
106 | */ |
||
107 | public function addExclusion(string $path): Configuration |
||
113 | |||
114 | /** |
||
115 | * @return string |
||
116 | */ |
||
117 | public function getIdentity(): string |
||
121 | |||
122 | /** |
||
123 | * @param string $identity |
||
124 | * |
||
125 | * @return Configuration |
||
126 | */ |
||
127 | public function setIdentity(string $identity): Configuration |
||
133 | |||
134 | /** |
||
135 | * @return string |
||
136 | */ |
||
137 | public function getIndexBuilder(): string |
||
141 | |||
142 | /** |
||
143 | * @param string $indexBuilder |
||
144 | * @return $this |
||
145 | */ |
||
146 | public function setIndexBuilder(string $indexBuilder): Configuration |
||
152 | |||
153 | /** |
||
154 | * @return string[] |
||
155 | */ |
||
156 | public function getFileChecksums(): array |
||
160 | |||
161 | /** |
||
162 | * @param string[] $fileChecksums |
||
163 | * @return Configuration |
||
164 | */ |
||
165 | public function setFileChecksums(array $fileChecksums): Configuration |
||
171 | |||
172 | /** |
||
173 | * @return VaultConfiguration[] |
||
174 | */ |
||
175 | public function getVaults(): array |
||
179 | |||
180 | /** |
||
181 | * @param string $title |
||
182 | * @return bool |
||
183 | */ |
||
184 | public function hasVault(string $title): bool |
||
188 | |||
189 | /** |
||
190 | * @param string $title |
||
191 | * |
||
192 | * @return VaultConfiguration |
||
193 | */ |
||
194 | public function getVault(string $title): VaultConfiguration |
||
203 | |||
204 | /** |
||
205 | * @internal Use VaultConfiguration constructor |
||
206 | * @param VaultConfiguration $configuration |
||
207 | * |
||
208 | * @return Configuration |
||
209 | * @throws Exception |
||
210 | */ |
||
211 | public function addVault(VaultConfiguration $configuration): Configuration |
||
225 | |||
226 | /** |
||
227 | * {@inheritdoc} |
||
228 | */ |
||
229 | public function exchangeArray(array $array) |
||
268 | |||
269 | /** |
||
270 | * {@inheritdoc} |
||
271 | */ |
||
272 | public function getArrayCopy() |
||
283 | |||
284 | protected function getVaultConfiguration(string $title): ?VaultConfiguration |
||
296 | |||
297 | public static function loadValidatorMetadata(ClassMetadata $metadata) |
||
303 | } |
||
304 |
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..