Passed
Push — master ( 8dade9...95b6b2 )
by Bruno
10:05
created

MigrationCodeFragment   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 22
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A appendBase() 0 3 1
A appendExtraLine() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Modelarium\Laravel\Targets;
4
5
class MigrationCodeFragment
6
{
7
    /**
8
     * Unique counter
9
     *
10
     * @var string
11
     */
12
    public $base = '';
13
14
    /**
15
     * @var string[]
16
     */
17
    public $extraLines = [];
18
19
    public function appendBase(string $s): void
20
    {
21
        $this->base .= $s;
22
    }
23
24
    public function appendExtraLine(string $s): void
25
    {
26
        $this->extraLines[] = $s;
27
    }
28
}
29