Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
18 | class DeleteBatchNodePayload |
||
19 | { |
||
20 | /** |
||
21 | * @var ID |
||
22 | * |
||
23 | * @API\Field(type="[ID!]!", description="IDs of the node deleted on success") |
||
24 | */ |
||
25 | public $ids = []; |
||
26 | |||
27 | /** |
||
28 | * @var null|string |
||
29 | * |
||
30 | * @API\Field(type="string") |
||
31 | */ |
||
32 | public $clientMutationId; |
||
33 | |||
34 | /** |
||
35 | * |
||
36 | * @param ID[] $ids |
||
37 | * @param null|string $clientMutationId |
||
38 | */ |
||
39 | public function __construct(array $ids, ?string $clientMutationId = null) |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return array |
||
47 | */ |
||
48 | public function getIds(): array |
||
49 | { |
||
50 | return $this->ids; |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @return null|string |
||
55 | */ |
||
56 | public function getClientMutationId() |
||
59 | } |
||
60 | } |
||
61 |
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..