WifiNetwork::getValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LauLamanApps\ApplePassbook\MetaData\SemanticTag\Generic;
6
7
class WifiNetwork
8
{
9
    private string $ssid;
10
    private string $password;
11
12
    public function __construct(
13
        string $ssid,
14
        string $password
15
    ) {
16
        $this->ssid = $ssid;
17
        $this->password = $password;
18
    }
19
20
    /**
21
     * @return array<string, string>
22
     */
23
    public function getValue(): array
24
    {
25
        return [
26
            'ssid' => $this->ssid,
27
            'password' => $this->password,
28
        ];
29
    }
30
}
31