MemoryDumper::dump()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Sludio\HelperBundle\Sitemap\Dumper;
4
5
class MemoryDumper implements DumperInterface
6
{
7
    protected $buffer = '';
8
9
    /**
10
     * Dump a string into the buffer.
11
     *
12
     * @param string $string The string to dump.
13
     *
14
     * @return string The current buffer.
15
     */
16
    public function dump($string)
17
    {
18
        $this->buffer .= $string;
19
20
        return $this->buffer;
21
    }
22
}
23