| Conditions | 4 |
| Paths | 6 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function __construct($response, $show = null) { |
||
| 25 | $body = json_decode($response); |
||
| 26 | |||
| 27 | foreach ($body as $key => $value) { |
||
| 28 | if (property_exists($this, $key)) { |
||
| 29 | $this->$key = $value; |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 33 | if ($show != null) { |
||
| 34 | $this->show = null; |
||
| 35 | } |
||
| 36 | |||
| 37 | parent::__construct($this->mensagem); |
||
| 38 | } |
||
| 65 |