PlainFormatter   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 7
eloc 8
c 0
b 0
f 0
dl 0
loc 35
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A entity() 0 3 1
A column() 0 3 1
A info() 0 3 1
A typecast() 0 3 1
A error() 0 3 1
A title() 0 3 1
A property() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cycle\Schema\Renderer\ConsoleRenderer\Formatter;
6
7
use Cycle\Schema\Renderer\ConsoleRenderer\Formatter;
8
9
final class PlainFormatter implements Formatter
10
{
11
    public function title(string $title): string
12
    {
13
        return str_pad($title, self::TITLE_LENGTH, ' ', STR_PAD_LEFT);
14
    }
15
16
    public function property(string $string): string
17
    {
18
        return $string;
19
    }
20
21
    public function column(string $string): string
22
    {
23
        return $string;
24
    }
25
26
    public function info(string $string): string
27
    {
28
        return $string;
29
    }
30
31
    public function typecast(string $string): string
32
    {
33
        return $string;
34
    }
35
36
    public function entity(string $string): string
37
    {
38
        return $string;
39
    }
40
41
    public function error(string $string): string
42
    {
43
        return $string;
44
    }
45
}
46