LegacySubscriber.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Subscriptions\Models; |
| 4 | |
| 5 | use Give_Recurring_Subscriber; |
| 6 | |
| 7 | /** |
| 8 | * Class LegacySubscriber |
| 9 | * |
| 10 | * This is a temporary class that extends a give-recurring concept of Give_Recurring_Subscriber. |
| 11 | * To avoid any issue with someone trying to use this without having give-recurring installed, |
| 12 | * there is a conditional to make sure the extended class exists. |
| 13 | * |
| 14 | * @since 2.18.0 |
| 15 | */ |
| 16 | if (class_exists('Give_Recurring_Subscriber')){ |
| 17 | class LegacySubscriber extends Give_Recurring_Subscriber { |
| 18 | |
| 19 | } |
| 20 | } else { |
| 21 | class LegacySubscriber { |
| 22 | |
| 23 | } |
| 24 | } |
| 25 |