AbstractNormalizer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Riesenia\Pohoda\Common\OptionsResolver\Normalizers;
4
5
/**
6
 * Normalization of content
7
 */
8
abstract class AbstractNormalizer
9
{
10 65
    public function __construct(
11
        protected readonly int|null $length,
12
        protected readonly bool $nullable,
13 65
    ) {}
14
15
    /**
16
     * Normalize that content
17
     * @param mixed $options
18
     * @param mixed $value
19
     * @return string
20
     */
21
    abstract public function normalize(mixed $options, mixed $value): string;
22
}
23