Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
Mailpoet_Admin_Integration
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 3
20
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 instance
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
6
 init_hooks
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/*
3 * Jetpack CRM
4 * https://jetpackcrm.com
5 *
6 * MailPoet Sync: MailPoet Admin class
7 * Collects CRM additions to the MailPoet wp-admin UI
8 */
9namespace Automattic\JetpackCRM;
10
11// block direct access
12defined( 'ZEROBSCRM_PATH' ) || exit( 0 );
13
14/**
15 * MailPoet Admin UI class
16 */
17class Mailpoet_Admin_Integration {
18
19    /**
20     * The single instance of the class.
21     */
22    protected static $_instance = null;
23
24    /**
25     * Setup MailPoet
26     */
27    public function __construct() {
28
29        // Initialise Hooks
30        $this->init_hooks();
31    }
32
33    /**
34     * Main Class Instance.
35     *
36     * Ensures only one instance of Mailpoet_Admin_Integration is loaded or can be loaded.
37     *
38     * @since 2.0
39     * @static
40     * @see
41     * @return Mailpoet_Admin_Integration main instance
42     */
43    public static function instance() {
44        if ( self::$_instance === null ) {
45            self::$_instance = new self();
46        }
47        return self::$_instance;
48    }
49
50    /**
51     * Initialise Hooks
52     */
53    private function init_hooks() {
54
55        // Add button to subscriber page 'View CRM Contact'
56        // /wp-admin/admin.php?page=mailpoet-subscribers#/stats/{id}
57
58        // Add button column to subscriber list page 'View CRM Contact'
59        // /wp-admin/admin.php?page=mailpoet-subscribers#/
60    }
61}