Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function read(Buffer $buffer) |
||
17 | { |
||
18 | parent::read($buffer); |
||
19 | $data = rtrim($buffer->readString($this->dataSize * $this->dataCount)); |
||
|
|||
20 | foreach (explode(self::DELIMITER, $data) as $item) { |
||
21 | list($key, $value) = explode('=', $item); |
||
22 | $this->data[$key] = intval($value); |
||
23 | } |
||
43 |