Sequence   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A create() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MaxBeckers\AmazonAlexa\Response\Directives\GadgetController;
6
7
class Sequence
8
{
9 1
    public function __construct(
10
        public ?int $durationMs = null,
11
        public ?bool $blend = null,
12
        public ?string $color = null
13
    ) {
14 1
    }
15
16 1
    public static function create(int $durationMs, string $color, bool $blend = false): self
17
    {
18 1
        return new self($durationMs, $blend, $color);
19
    }
20
}
21