| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | 6 | public function __construct(\stdClass $response) |
|
| 53 | { |
||
| 54 | 6 | $this->totalAmount = $response->order_total_amount; |
|
| 55 | 6 | $this->shipping = $response->shipping; |
|
| 56 | 6 | $this->taxableAmount = $response->taxable_amount; |
|
| 57 | 6 | $this->amountToCollect = $response->amount_to_collect; |
|
| 58 | 6 | $this->rate = $response->rate; |
|
| 59 | 6 | $this->hasNexus = (bool) $response->has_nexus; |
|
| 60 | 6 | $this->freightTaxable = (bool) $response->freight_taxable; |
|
| 61 | 6 | $this->taxSource = $response->tax_source; |
|
| 62 | 6 | $this->taxBreakdown = new TaxBreakdown($response->breakdown); |
|
| 63 | 6 | } |
|
| 64 | |||
| 137 |