Parameters   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __serialize() 0 4 1
A __construct() 0 3 1
1
<?php
2
3
namespace Cryptommer\Smsir\Objects;
4
5
class Parameters {
6
7
    public string $Name;
8
    public string $Value;
9
10
    public function __construct(string $name, string $value) {
11
        $this->Name = $name;
12
        $this->Value = $value;
13
    }
14
15
    public function __serialize(): array {
16
        return [
17
            'Name' => $this->Name,
18
            'Value' => $this->Value,
19
        ];
20
    }
21
22
}
23