Completed
Push — master ( c89802...0ff87e )
by Denis
01:51
created

BooleanFormatter::format()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Woo\GridView\Formatters;
4
5
class BooleanFormatter implements IFormatter
6
{
7
    public function format($value): string
8
    {
9
        return $value ? 'Yes' : 'No';
10
    }
11
}