AdditionalFeature   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 8
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 1 1
A __construct() 0 2 1
1
<?php
2
/*
3
Plugin Name: A new feature for brighty
4
Description: example plugin that adds a new feature to brighty
5
Version: 1.0
6
Author: IQL Technologies
7
*/
8
9
namespace MyCustomPlugin;
10
11
use BrightyCorePlugin\Brighty_Core_Plugin_Feature_Interface;
12
13
class AdditionalFeature implements Brighty_Core_Plugin_Feature_Interface {
14
    private $plugin;
15
16
    public function __construct($plugin) {
17
        $this->plugin = $plugin;
18
    }
19
20
    public function init() {
21
        // Code for the additional feature
22
    }
23
}
24