1 | <?php |
||
15 | class EntitySource { |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $sourceName; |
||
21 | |||
22 | /** |
||
23 | * @var string|false The name of the database to use (use false for the local db) |
||
24 | */ |
||
25 | private $databaseName; |
||
26 | |||
27 | /** |
||
28 | * @var string[] |
||
29 | */ |
||
30 | private $entityTypes; |
||
31 | |||
32 | /** |
||
33 | * @var int[] |
||
34 | */ |
||
35 | private $entityNamespaceIds; |
||
36 | |||
37 | /** |
||
38 | * @var string[] |
||
39 | */ |
||
40 | private $entitySlots; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | private $conceptBaseUri; |
||
46 | |||
47 | private $rdfNodeNamespacePrefix; |
||
48 | |||
49 | private $rdfPredicateNamespacePrefix; |
||
50 | |||
51 | /** |
||
52 | * @var string |
||
53 | */ |
||
54 | private $interwikiPrefix; |
||
55 | |||
56 | /** |
||
57 | * @param string $name Unique name for the source for a given configuration / site, used for indexing the sources internally. |
||
58 | * This does not have to be a wikiname, sitename or dbname, it can for example just be 'properties'. |
||
59 | * @param string|false $databaseName The name of the database to use (use false for the local db) |
||
60 | * @param array $entityNamespaceIdsAndSlots Associative array indexed by entity type (string), values are |
||
61 | * array of form [ 'namespaceId' => int, 'slot' => string ] |
||
62 | * @param string $conceptBaseUri |
||
63 | * @param string $rdfNodeNamespacePrefix |
||
64 | * @param string $rdfPredicateNamespacePrefix |
||
65 | * @param string $interwikiPrefix |
||
66 | */ |
||
67 | public function __construct( |
||
93 | |||
94 | private function assertEntityNamespaceIdsAndSlots( array $entityNamespaceIdsAndSlots ) { |
||
116 | |||
117 | private function setEntityTypeData( array $entityNamespaceIdsAndSlots ) { |
||
132 | |||
133 | /** |
||
134 | * @return string|false The name of the database to use (use false for the local db) |
||
135 | */ |
||
136 | public function getDatabaseName() { |
||
139 | |||
140 | public function getSourceName() { |
||
143 | |||
144 | public function getEntityTypes() { |
||
147 | |||
148 | public function getEntityNamespaceIds() { |
||
151 | |||
152 | public function getEntitySlotNames() { |
||
155 | |||
156 | public function getConceptBaseUri() { |
||
159 | |||
160 | public function getRdfNodeNamespacePrefix() { |
||
163 | |||
164 | public function getRdfPredicateNamespacePrefix() { |
||
167 | |||
168 | public function getInterwikiPrefix() { |
||
171 | |||
172 | } |
||
173 |
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..