Passed
Branch master (a51e82)
by Alec
02:49
created

AbstractFormatter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 9
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace AlecRabbit\Accessories\Core;
4
5
use AlecRabbit\Accessories\Contracts\FormatterInterface;
6
7
abstract class AbstractFormatter implements FormatterInterface
8
{
9
    /** @var int */
10
    protected $options = 0;
11
12
    /** {@inheritDoc} */
13 7
    public function __construct(?int $options = null)
14
    {
15 7
        $this->options = $options ?? 0;
16 7
    }
17
}
18