Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function __construct(float $halfStop, float $baseStop = 1.0) |
||
17 | { |
||
18 | if ($halfStop > $baseStop) { |
||
19 | throw new \InvalidArgumentException("The half-stop's string length cannot be longer than the base stop's."); |
||
20 | } |
||
21 | |||
22 | $this->baseStop = $baseStop; |
||
23 | $this->halfStop = $halfStop; |
||
24 | } |
||
25 | |||
79 |