1 | <?php |
||
27 | class JobData implements JobDataInterface |
||
28 | { |
||
29 | use EntityTrait, IdentifiableEntityTrait; |
||
30 | |||
31 | /** |
||
32 | * The id of the associated job |
||
33 | * |
||
34 | * @ODM\Field(type="string") |
||
35 | * @var string |
||
36 | */ |
||
37 | private $jobId; |
||
38 | |||
39 | /** |
||
40 | * The external id (Stackoverflow API) |
||
41 | * |
||
42 | * @ODM\Field(type="int") |
||
43 | * @var int |
||
44 | */ |
||
45 | private $externalId; |
||
46 | |||
47 | /** |
||
48 | * The external url. |
||
49 | * |
||
50 | * @ODM\Field(type="string") |
||
51 | * @var string |
||
52 | */ |
||
53 | private $externalUrl; |
||
54 | |||
55 | /** |
||
56 | * Flag wether the associated job is online. |
||
57 | * |
||
58 | * @ODM\Field(type="boolean") |
||
59 | * @var bool |
||
60 | */ |
||
61 | private $isOnline = false; |
||
62 | |||
63 | /** |
||
64 | * Api response stack. |
||
65 | * |
||
66 | * @ODM\EmbedMany(targetDocument="StackoverflowApi\Entity\ApiResponse") |
||
67 | * @var Collection |
||
68 | */ |
||
69 | private $responses; |
||
70 | |||
71 | public function setJobId($id) |
||
77 | |||
78 | public function getJobId() |
||
82 | |||
83 | public function setExternalId($externalId) |
||
89 | |||
90 | public function getExternalId() |
||
94 | |||
95 | public function setExternalUrl($externalUrl) |
||
101 | |||
102 | public function getExternalUrl() |
||
106 | |||
107 | public function setIsOnline($flag) |
||
113 | |||
114 | public function isOnline() |
||
118 | |||
119 | public function addResponse(ApiResponseInterface $response) |
||
125 | |||
126 | public function getResponses() |
||
134 | |||
135 | public function getLastResponse() |
||
139 | } |
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..