WriterConfig::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 4
dl 0
loc 10
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Janisbiz\LightOrm\Dms\MySQL\Generator\Writer;
4
5
use Janisbiz\LightOrm\Generator\Writer\AbstractWriterConfig;
6
7
class WriterConfig extends AbstractWriterConfig
8
{
9
    /**
10
     * @param string $directory
11
     * @param null|string $namespace
12
     * @param null|string $classPrefix
13
     * @param null|string $classSuffix
14
     */
15
    public function __construct(
16
        string $directory,
17
        ?string $namespace = '',
18
        ?string $classPrefix = '',
19
        ?string $classSuffix = ''
20
    ) {
21
        $this->directory = $directory;
22
        $this->namespace = $namespace;
23
        $this->classPrefix = $classPrefix;
24
        $this->classSuffix = $classSuffix;
25
    }
26
}
27