1 | <?php |
||
21 | class StatementCreator { |
||
22 | |||
23 | /** |
||
24 | * @var WikibaseApi |
||
25 | */ |
||
26 | private $api; |
||
27 | |||
28 | /** |
||
29 | * @var Deserializer |
||
30 | */ |
||
31 | private $dataValueSerializer; |
||
32 | |||
33 | /** |
||
34 | * @param WikibaseApi $api |
||
35 | * @param Serializer $dataValueSerializer |
||
36 | */ |
||
37 | public function __construct( WikibaseApi $api, Serializer $dataValueSerializer ) { |
||
41 | |||
42 | /** |
||
43 | * @since 0.2 |
||
44 | * |
||
45 | * @param Snak $mainSnak |
||
46 | * @param EntityId|Item|Property|string $target |
||
47 | * @param EditInfo|null $editInfo |
||
48 | * |
||
49 | * @return string the GUID of the claim |
||
50 | * @throws UnexpectedValueException |
||
51 | */ |
||
52 | public function create( Snak $mainSnak, $target, EditInfo $editInfo = null ) { |
||
76 | |||
77 | } |
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..