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