Conditions | 7 |
Paths | 33 |
Total Lines | 22 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 56 |
Changes | 0 |
1 | <?php |
||
40 | public function __construct(\stdClass $response = null) |
||
41 | { |
||
42 | $this->ServiceSummary = []; |
||
|
|||
43 | |||
44 | if (null !== $response) { |
||
45 | if (isset($response->PickupDate)) { |
||
46 | $this->PickupDate = $response->PickupDate; |
||
47 | } |
||
48 | if (isset($response->DocumentsOnlyIndicator)) { |
||
49 | $this->DocumentsOnlyIndicator = $response->DocumentsOnlyIndicator; |
||
50 | } |
||
51 | if (isset($response->AutoDutyCode)) { |
||
52 | $this->AutoDutyCode = $response->AutoDutyCode; |
||
53 | } |
||
54 | if (isset($response->Disclaimer)) { |
||
55 | $this->Disclaimer = $response->Disclaimer; |
||
56 | } |
||
57 | if (isset($response->ServiceSummary)) { |
||
58 | $this->ServiceSummary = new ServiceSummary($response->ServiceSummary); |
||
59 | } |
||
60 | } |
||
61 | } |
||
62 | } |
||
63 |
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..