| Conditions | 8 |
| Paths | 65 |
| Total Lines | 25 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 44.0809 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 3 | public function __construct(\stdClass $response = null) |
|
| 18 | { |
||
| 19 | 3 | $this->LabelImageFormat = new LabelImageFormat(); |
|
| 20 | |||
| 21 | 3 | if (null !== $response) { |
|
| 22 | if (isset($response->LabelImageFormat)) { |
||
| 23 | $this->LabelImageFormat = new LabelImageFormat($response->LabelImageFormat); |
||
| 24 | } |
||
| 25 | if (isset($response->GraphicImage)) { |
||
| 26 | $this->GraphicImage = $response->GraphicImage; |
||
| 27 | } |
||
| 28 | if (isset($response->HTMLImage)) { |
||
| 29 | $this->HTMLImage = $response->HTMLImage; |
||
| 30 | } |
||
| 31 | if (isset($response->PDF417)) { |
||
| 32 | $this->PDF417 = $response->PDF417; |
||
| 33 | } |
||
| 34 | if (isset($response->InternationalSignatureGraphicImage)) { |
||
| 35 | $this->InternationalSignatureGraphicImage = $response->InternationalSignatureGraphicImage; |
||
| 36 | } |
||
| 37 | if (isset($response->URL)) { |
||
| 38 | $this->URL = $response->URL; |
||
| 39 | } |
||
| 40 | } |
||
| 41 | 3 | } |
|
| 42 | } |
||
| 43 |