Passed
Push — master ( b58773...e0fefe )
by Alec
03:05
created

AbstractFormatter::assertOptions()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 3

Importance

Changes 0
Metric Value
cc 3
eloc 4
nc 2
nop 1
dl 0
loc 6
ccs 5
cts 5
cp 1
crap 3
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace AlecRabbit\Accessories\Contracts;
4
5
abstract class AbstractFormatter implements FormatterInterface
6
{
7
    /** @var int */
8
    protected $options = 0;
9
10
    /** {@inheritDoc} */
11 7
    public function __construct(?int $options = null)
12
    {
13 7
        $this->options = $options ?? 0;
14 7
    }
15
}
16