| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | 5 | public function write(Buffer $buffer) |
|
| 36 | { |
||
| 37 | 5 | $data = ''; |
|
| 38 | 5 | foreach ($this->data as $key => $value) { |
|
| 39 | 5 | $data .= sprintf('%s=%s', $key, $value) . self::DELIMITER; |
|
| 40 | } |
||
| 41 | 5 | $this->dataCount = strlen($data); |
|
| 42 | 5 | parent::write($buffer); |
|
| 43 | 5 | $buffer->writeString($data); |
|
| 44 | 5 | } |
|
| 46 |