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