FieldParameter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 16
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getValue() 0 4 1
1
<?php declare(strict_types = 1);
2
3
namespace PeeHaa\AsyncTwitter\Request;
4
5
class FieldParameter extends Parameter
6
{
7
    private $value;
8
9 221
    public function __construct(string $key, string $value, string $type = 'text/plain')
10
    {
11 221
        parent::__construct($key, $type);
12
13 221
        $this->value = $value;
14
    }
15
16 194
    public function getValue(): string
17
    {
18 194
        return $this->value;
19
    }
20
}
21