AuthCredential::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
declare(strict_types=1);
3
4
namespace Ytake\KsqlClient;
5
6
/**
7
 * for KSQL basic
8
 * Class AuthCredential
9
 */
10
final class AuthCredential
11
{
12
    /** @var string */
13
    private $userName;
14
15
    /** @var string */
16
    private $password;
17
18
    /**
19
     * @param string $userName
20
     * @param string $password
21
     */
22
    public function __construct(string $userName, string $password)
23
    {
24
        $this->userName = $userName;
25
        $this->password = $password;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getUserName(): string
32
    {
33
        return $this->userName;
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function getPassword(): string
40
    {
41
        return $this->password;
42
    }
43
}
44