CreateDatabaseFileRequest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of FlexPHP.
4
 *
5
 * (c) Freddie Gar <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace FlexPHP\Generator\Domain\Messages\Requests;
11
12
final class CreateDatabaseFileRequest
13
{
14
    public string $platform;
15
16
    public string $dbname;
17
18
    public string $username;
19
20
    public string $password;
21
22
    /**
23
     * @var array<int, string>
24
     */
25
    public array $yamls = [];
26
27
    public function __construct(string $platform, string $dbname, string $username, string $password, array $yamls)
28
    {
29
        $this->platform = $platform;
30
        $this->dbname = $dbname;
31
        $this->username = $username;
32
        $this->password = $password;
33
        $this->yamls = $yamls;
34
    }
35
}
36