ResultMetadata   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace Kamyshev\ResponderBundle\Responder;
4
5
class ResultMetadata
6
{
7
    public function __construct(string $type)
8
    {
9
        $this->type = $type;
10
    }
11
12
    public function getType(): string
13
    {
14
        return $this->type;
15
    }
16
17
    /** @var string */
18
    private $type;
19
}
20