| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function getTrial(Plan $plan, string $paymentSchedule): int |
||
| 38 | { |
||
| 39 | $name = $plan->getName(); |
||
| 40 | |||
| 41 | if (isset($this->prices[$name]) && isset($this->prices[$name][$paymentSchedule])) { |
||
| 42 | return $this->prices[$name][$paymentSchedule]['trial_day_length'] ?? 0; |
||
| 43 | } |
||
| 44 | |||
| 45 | throw new NoPriceFoundException(); |
||
| 46 | } |
||
| 61 |