Renderer::render()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * This file is part of Platform package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
declare(strict_types=1);
9
10
namespace Karma\System\Gitter\Message;
11
12
use Karma\Platform\Ast\NodeList;
13
use Karma\Platform\Ast\Transformer\RendererInterface;
14
15
/**
16
 * Class Renderer
17
 * @package Karma\System\Gitter\Message
18
 */
19
class Renderer implements RendererInterface
20
{
21
    /**
22
     * @param NodeList $nodes
23
     * @return string
24
     */
25
    public function render(NodeList $nodes): string
26
    {
27
        return $nodes->getBody();
28
    }
29
}
30