CreateDatabaseFileRequest::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 5
dl 0
loc 7
rs 10
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