Passed
Push — master ( 4b3d26...06dcf5 )
by Enjoys
12:36 queued 13s
created

Builder::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 0
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 2
ccs 1
cts 1
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
6
namespace Enjoys\Dotenv\Parser;
7
8
9
use Enjoys\Dotenv\Parser\Lines\LineInterface;
10
11
final class Builder
12
{
13
    /**
14
     * @param LineInterface[] $lines
15
     */
16 2
    public function __construct(private array $lines)
17
    {
18
    }
19
20 2
    public function build(): string
21
    {
22 2
        return implode("\n", $this->lines);
23
    }
24
}
25