Completed
Push — master ( d2a62a...df0ee0 )
by Dawid
28s queued 11s
created

TextPlain   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 3 1
A __construct() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace FatCode\OpenApi\Schema;
4
5
class TextPlain
6
{
7
    private $string;
8
9
    public function __construct(string $string)
10
    {
11
        $this->string = $string;
12
    }
13
14
    public function __toString() : string
15
    {
16
        return $this->string;
17
    }
18
}
19