| Conditions | 5 |
| Paths | 10 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 8 | public function __construct(array $data) |
|
| 39 | { |
||
| 40 | 8 | $this->file_id = isset($data['file_id']) ? $data['file_id'] : null; |
|
| 41 | 8 | if (empty($this->file_id)) { |
|
| 42 | 1 | throw new TelegramException('file_id is empty!'); |
|
| 43 | } |
||
| 44 | |||
| 45 | 7 | $this->file_size = isset($data['file_size']) ? $data['file_size'] : null; |
|
| 46 | |||
| 47 | 7 | $this->file_path = isset($data['file_path']) ? $data['file_path'] : null; |
|
| 48 | 7 | } |
|
| 49 | |||
| 80 |