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 | * Array of vault configurations. |
||
45 | * |
||
46 | * @var VaultConfiguration[] |
||
47 | */ |
||
48 | protected $vaults = []; |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getPath(): string |
||
57 | |||
58 | /** |
||
59 | * @param string $path |
||
60 | * |
||
61 | * @return Configuration |
||
62 | */ |
||
63 | public function setPath(string $path): Configuration |
||
74 | |||
75 | /** |
||
76 | * @return \string[] |
||
77 | */ |
||
78 | public function getExclude(): array |
||
82 | |||
83 | /** |
||
84 | * @param \string[] $paths |
||
85 | * |
||
86 | * @return Configuration |
||
87 | */ |
||
88 | public function setExclude(array $paths): Configuration |
||
94 | |||
95 | /** |
||
96 | * @param string $path |
||
97 | * |
||
98 | * @return Configuration |
||
99 | */ |
||
100 | public function addExclusion(string $path): Configuration |
||
106 | |||
107 | /** |
||
108 | * @return string |
||
109 | */ |
||
110 | public function getIdentity(): string |
||
114 | |||
115 | /** |
||
116 | * @param string $identity |
||
117 | * |
||
118 | * @return Configuration |
||
119 | */ |
||
120 | public function setIdentity(string $identity): Configuration |
||
126 | |||
127 | /** |
||
128 | * @return string |
||
129 | */ |
||
130 | public function getIndexBuilder(): string |
||
134 | |||
135 | /** |
||
136 | * @param string $indexBuilder |
||
137 | * @return $this |
||
138 | */ |
||
139 | public function setIndexBuilder(string $indexBuilder): Configuration |
||
145 | |||
146 | /** |
||
147 | * @return VaultConfiguration[] |
||
148 | */ |
||
149 | public function getVaults(): array |
||
153 | |||
154 | /** |
||
155 | * @param string $title |
||
156 | * @return bool |
||
157 | */ |
||
158 | public function hasVault(string $title): bool |
||
162 | |||
163 | /** |
||
164 | * @param string $title |
||
165 | * |
||
166 | * @return VaultConfiguration |
||
167 | */ |
||
168 | public function getVault(string $title): VaultConfiguration |
||
177 | |||
178 | /** |
||
179 | * @internal Use VaultConfiguration constructor |
||
180 | * @param VaultConfiguration $configuration |
||
181 | * |
||
182 | * @return Configuration |
||
183 | * @throws Exception |
||
184 | */ |
||
185 | public function addVault(VaultConfiguration $configuration): Configuration |
||
199 | |||
200 | /** |
||
201 | * {@inheritdoc} |
||
202 | */ |
||
203 | public function exchangeArray(array $array) |
||
242 | |||
243 | /** |
||
244 | * {@inheritdoc} |
||
245 | */ |
||
246 | public function getArrayCopy() |
||
257 | |||
258 | protected function getVaultConfiguration(string $title): ?VaultConfiguration |
||
270 | |||
271 | public static function loadValidatorMetadata(ClassMetadata $metadata) |
||
277 | } |
||
278 |
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..