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 $stringLength = 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 === $stringLength) { |
||
30 | $stringLength = $this->getDefaultStringLength(); |
||
31 | } |
||
32 | |||
33 | $this->stringFrequencies = $stringFrequencies; |
||
34 | $this->stringLength = $stringLength; |
||
35 | } |
||
36 | |||
64 |