Passed
Branch v2_rewrite (407290)
by Ekin
05:43
created

BaseSound::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php declare(strict_types = 1);
2
3
namespace ekinhbayar\GitAmp\Presentation\Sound;
4
5
abstract class BaseSound
6
{
7
    protected $size;
8
9 23
    public function __construct(float $size = 1) {
10 23
        $this->size = $size;
11
    }
12
13
    abstract public function getAsArray(): array;
14
}
15