| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function getPriceId(Plan $plan, string $paymentSchedule): string |
||
| 27 | { |
||
| 28 | $name = $plan->getName(); |
||
| 29 | |||
| 30 | if (isset($this->prices[$name]) && isset($this->prices[$name][$paymentSchedule])) { |
||
| 31 | return $this->prices[$name][$paymentSchedule]['price_id']; |
||
| 32 | } |
||
| 33 | |||
| 34 | throw new NoPriceFoundException(); |
||
| 35 | } |
||
| 61 |