1 | <?php |
||
9 | class Configuration implements ArraySerializableInterface |
||
10 | { |
||
11 | /** |
||
12 | * The local base path of the archive. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $path = './'; |
||
17 | |||
18 | /** |
||
19 | * Set of excluded paths. |
||
20 | * |
||
21 | * @var string[] |
||
22 | */ |
||
23 | protected $exclude = []; |
||
24 | |||
25 | /** |
||
26 | * Identity to be visible in synchronization log. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $identity = 'unknown'; |
||
31 | |||
32 | /** |
||
33 | * Identifier of the index builder to use. |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $indexBuilder = 'standard'; |
||
38 | |||
39 | /** |
||
40 | * List of file checksums to be used for integrity checks and modification detection. |
||
41 | * |
||
42 | * @var string[] |
||
43 | */ |
||
44 | protected $fileChecksums = ['sha256', 'sha1', 'md5']; |
||
45 | |||
46 | /** |
||
47 | * Array of vault configurations. |
||
48 | * |
||
49 | * @var VaultConfiguration[] |
||
50 | */ |
||
51 | protected $vaults = []; |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getPath(): string |
||
60 | |||
61 | /** |
||
62 | * @param string $path |
||
63 | * |
||
64 | * @return Configuration |
||
65 | */ |
||
66 | public function setPath(string $path): Configuration |
||
77 | |||
78 | /** |
||
79 | * @return \string[] |
||
80 | */ |
||
81 | public function getExclude(): array |
||
85 | |||
86 | /** |
||
87 | * @param \string[] $paths |
||
88 | * |
||
89 | * @return Configuration |
||
90 | */ |
||
91 | public function setExclude(array $paths): Configuration |
||
97 | |||
98 | /** |
||
99 | * @param string $path |
||
100 | * |
||
101 | * @return Configuration |
||
102 | */ |
||
103 | public function addExclusion(string $path): Configuration |
||
109 | |||
110 | /** |
||
111 | * @return string |
||
112 | */ |
||
113 | public function getIdentity(): string |
||
117 | |||
118 | /** |
||
119 | * @param string $identity |
||
120 | * |
||
121 | * @return Configuration |
||
122 | */ |
||
123 | public function setIdentity(string $identity): Configuration |
||
129 | |||
130 | /** |
||
131 | * @return string |
||
132 | */ |
||
133 | public function getIndexBuilder(): string |
||
137 | |||
138 | /** |
||
139 | * @param string $indexBuilder |
||
140 | * @return $this |
||
141 | */ |
||
142 | public function setIndexBuilder(string $indexBuilder): Configuration |
||
148 | |||
149 | /** |
||
150 | * @return string[] |
||
151 | */ |
||
152 | public function getFileChecksums(): array |
||
156 | |||
157 | /** |
||
158 | * @param string[] $fileChecksums |
||
159 | * @return Configuration |
||
160 | */ |
||
161 | public function setFileChecksums(array $fileChecksums): Configuration |
||
167 | |||
168 | /** |
||
169 | * @return VaultConfiguration[] |
||
170 | */ |
||
171 | public function getVaults(): array |
||
175 | |||
176 | /** |
||
177 | * @param string $title |
||
178 | * |
||
179 | * @return VaultConfiguration |
||
180 | */ |
||
181 | public function getVaultByTitle(string $title): VaultConfiguration |
||
190 | |||
191 | public function addVault(VaultConfiguration $configuration): Configuration |
||
200 | |||
201 | /** |
||
202 | * {@inheritdoc} |
||
203 | */ |
||
204 | public function exchangeArray(array $array) |
||
240 | |||
241 | /** |
||
242 | * {@inheritdoc} |
||
243 | */ |
||
244 | public function getArrayCopy() |
||
255 | |||
256 | protected function getVaultConfigurationByTitle(string $title): ?VaultConfiguration |
||
268 | |||
269 | public static function loadValidatorMetadata(ClassMetadata $metadata) |
||
275 | } |
||
276 |
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..