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; |
||
35 | |||
36 | /** |
||
37 | * Array of vault configurations. |
||
38 | * |
||
39 | * @var VaultConfiguration[] |
||
40 | */ |
||
41 | protected $vaults = []; |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public function getPath(): string |
||
50 | |||
51 | /** |
||
52 | * @param string $path |
||
53 | * |
||
54 | * @return Configuration |
||
55 | */ |
||
56 | public function setPath(string $path): Configuration |
||
67 | |||
68 | /** |
||
69 | * @return \string[] |
||
70 | */ |
||
71 | public function getExclude(): array |
||
75 | |||
76 | /** |
||
77 | * @param \string[] $paths |
||
78 | * |
||
79 | * @return Configuration |
||
80 | */ |
||
81 | public function setExclude(array $paths): Configuration |
||
87 | |||
88 | /** |
||
89 | * @param string $path |
||
90 | * |
||
91 | * @return Configuration |
||
92 | */ |
||
93 | public function addExclusion(string $path): Configuration |
||
99 | |||
100 | /** |
||
101 | * @return string |
||
102 | */ |
||
103 | public function getIdentity(): ?string |
||
107 | |||
108 | /** |
||
109 | * @param string $identity |
||
110 | * |
||
111 | * @return Configuration |
||
112 | */ |
||
113 | public function setIdentity(string $identity): Configuration |
||
119 | |||
120 | /** |
||
121 | * @return VaultConfiguration[] |
||
122 | */ |
||
123 | public function getVaults(): array |
||
127 | |||
128 | /** |
||
129 | * @param string $title |
||
130 | * @return bool |
||
131 | */ |
||
132 | public function hasVault(string $title): bool |
||
136 | |||
137 | /** |
||
138 | * @param string $title |
||
139 | * |
||
140 | * @return VaultConfiguration |
||
141 | */ |
||
142 | public function getVault(string $title): VaultConfiguration |
||
151 | |||
152 | /** |
||
153 | * @internal Use VaultConfiguration constructor |
||
154 | * @param VaultConfiguration $configuration |
||
155 | * |
||
156 | * @return Configuration |
||
157 | * @throws Exception |
||
158 | */ |
||
159 | public function addVault(VaultConfiguration $configuration): Configuration |
||
173 | |||
174 | /** |
||
175 | * {@inheritdoc} |
||
176 | */ |
||
177 | public function exchangeArray(array $array) |
||
216 | |||
217 | /** |
||
218 | * {@inheritdoc} |
||
219 | */ |
||
220 | public function getArrayCopy() |
||
231 | |||
232 | protected function getVaultConfiguration(string $title): ?VaultConfiguration |
||
244 | |||
245 | public static function loadValidatorMetadata(ClassMetadata $metadata) |
||
251 | } |
||
252 |
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..