1 | <?php |
||
7 | class Instrument implements InstrumentInterface |
||
8 | { |
||
9 | private $strings; |
||
10 | |||
11 | /** |
||
12 | * Instrument constructor. |
||
13 | * |
||
14 | * @param InstrumentStringInterface[] $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 |
||
38 | |||
39 | /** |
||
40 | * @param string $preset |
||
41 | * |
||
42 | * @return self |
||
43 | */ |
||
44 | public static function fromPreset(string $preset): self |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function getStrings(): array |
||
86 | } |
||
87 |