1 | <?php |
||
7 | class Instrument implements InstrumentInterface |
||
8 | { |
||
9 | private $strings; |
||
10 | |||
11 | /** |
||
12 | * Instrument constructor. |
||
13 | * |
||
14 | * @param VibratingStringInterface[] $strings |
||
15 | */ |
||
16 | public function __construct(array $strings) |
||
20 | |||
21 | /** |
||
22 | * @param string[] $stringNames |
||
23 | * @param float $length |
||
24 | * |
||
25 | * @return self |
||
26 | */ |
||
27 | public static function fromNames(array $stringNames, float $length = 500.0): self |
||
37 | |||
38 | /** |
||
39 | * @param string $preset |
||
40 | * |
||
41 | * @return self |
||
42 | */ |
||
43 | public static function fromPreset(string $preset): self |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function getStrings(): array |
||
85 | } |
||
86 |