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