WifiNetwork   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 8
c 1
b 0
f 0
dl 0
loc 21
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getValue() 0 5 1
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