Completed
Push — master ( 7b2295...f28f63 )
by Askupa
02:10
created

Popup   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A render() 0 6 1
1
<?php
2
3
namespace Amarkal\Shortcode;
4
5
class Popup
6
{
7
    private $fields = array();
8
    
9
    public function __construct($fields) 
10
    {
11
        $this->fields = $fields;
12
    }
13
    
14
    public function render()
15
    {
16
        ob_start();
17
        include 'Popup.phtml';
18
        return ob_get_clean();
19
    }
20
}