MemoryDumper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A dump() 0 5 1
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