Completed
Pull Request — master (#1)
by Woody
27:07 queued 01:07
created

HtmlFormatter::accepts()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Equip\Formatter;
4
5
use Equip\Adr\PayloadInterface;
6
7
abstract class HtmlFormatter extends AbstractFormatter
8
{
9
    /**
10
     * @inheritDoc
11
     */
12 2
    public static function accepts()
13
    {
14 2
        return ['text/html'];
15
    }
16
17
    /**
18
     * @inheritDoc
19
     */
20 2
    public function type()
21
    {
22 2
        return 'text/html';
23
    }
24
}
25