| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | public function __construct(array $data) |
||
| 54 | { |
||
| 55 | $this->code = intval($data['CODEREPONSE']); |
||
| 56 | $this->comment = $data['COMMENTAIRE']; |
||
| 57 | $this->site = $data['SITE']; |
||
| 58 | $this->rank = $data['RANG']; |
||
| 59 | $this->callNumber = intval($data['NUMAPPEL']); |
||
| 60 | $this->questionNumber = intval($data['NUMQUESTION']); |
||
| 61 | $this->transactionNumber = intval($data['NUMTRANS']); |
||
| 62 | |||
| 63 | if (array_key_exists('SHA-1', $data)) { |
||
| 64 | $this->sha1 = $data['SHA-1']; |
||
| 65 | } |
||
| 66 | } |
||
| 67 | |||
| 132 |