Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function __construct(array $stringFrequencies = null, float $stopLength = null) |
||
23 | { |
||
24 | if (null === $stringFrequencies) { |
||
25 | $stringFrequencies = array_map(function ($name) { |
||
26 | return Note::fromName($name)->getFrequency(); |
||
27 | }, $this->getDefaultNames()); |
||
28 | } |
||
29 | if (null === $stopLength) { |
||
30 | $stopLength = $this->getDefaultStopLength(); |
||
31 | } |
||
32 | |||
33 | $this->stringFrequencies = $stringFrequencies; |
||
34 | $this->stopLength = $stopLength; |
||
35 | } |
||
36 | |||
64 |