| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class GetPaid_Meta_Box_Invoice_Subscription { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Output the subscription metabox. |
||
| 19 | * |
||
| 20 | * @param WP_Post $post |
||
| 21 | */ |
||
| 22 | public static function output( $post ) { |
||
| 23 | |||
| 24 | // Fetch the invoice. |
||
| 25 | $invoice = new WPInv_Invoice( $post ); |
||
| 26 | |||
| 27 | // Fetch the subscription. |
||
| 28 | $subscription = getpaid_get_invoice_subscription( $invoice ); |
||
| 29 | |||
| 30 | echo '<div class="bsui">'; |
||
| 31 | getpaid_admin_subscription_details_metabox( $subscription ); |
||
| 32 | echo '</div>'; |
||
| 33 | |||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Output the subscription invoices. |
||
| 38 | * |
||
| 39 | * @param WP_Post $post |
||
| 40 | */ |
||
| 41 | public static function output_invoices( $post ) { |
||
| 52 | |||
| 53 | } |
||
| 56 |