Completed
Branch GDPR/privacy-policy-hook (e221f0)
by
unknown
60:30 queued 46:10
created

PrivacyPolicy   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 30
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A getContent() 0 8 1
1
<?php
2
3
namespace EventEspresso\core\domain\services\admin\privacy\policy;
4
5
use EEH_Template;
6
use EventEspresso\core\services\privacy\policy\PrivacyPolicyInterface;
7
8
defined('EVENT_ESPRESSO_VERSION') || exit('No direct script access allowed');
9
10
11
12
/**
13
 * Class PrivacyPolicy
14
 * Class describes the Event Espresso core plugin's privacy policy.
15
 *
16
 * @package        Event Espresso
17
 * @author         Mike Nelson
18
 * @since          $VID:$
19
 */
20
class PrivacyPolicy implements PrivacyPolicyInterface
21
{
22
23
    /**
24
     * Returns the name of the plugin and will be shown in the privacy policy's postbox header
25
     * @return string
26
     */
27
    public function getName()
28
    {
29
        return esc_html__('Event Espresso', 'event_espresso');
30
    }
31
32
33
34
    /**
35
     * Gets the HTML for the privacy policy. May be dynamic
36
     * @return string
37
     */
38
    public function getContent()
39
    {
40
        return (string)EEH_Template::display_template(
41
            __DIR__ . '/privacy_policy.template.php',
42
            array(),
43
            true
44
        );
45
    }
46
47
48
49
}
50
// End of file PrivacyPolicy.php
51
// Location: EventEspresso\core\domain\services\admin\privacy\policy\PrivacyPolicy.php