Test Setup Failed
Push — master ( 1685c5...687b3c )
by Michael
02:21
created

AbstractTag   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getArgs() 0 2 1
1
<?php
2
/**
3
 * {CLASS SUMMARY}
4
 *
5
 * Date: 7/27/18
6
 * Time: 11:14 PM
7
 * @author Michael Munger <[email protected]>
8
 */
9
10
namespace HPHIO\Farret;
11
12
13
abstract class AbstractTag
14
{
15
    protected $pattern;
16
    protected $tag;
17
    protected $args = [];
18
19
    const TAG  = 0;
20
    const HOOK = 1;
21
22
    public function __construct($pattern, $tag)
23
    {
24
        $this->pattern = $pattern;
25
        $this->tag = $tag;
26
        $this->setup();
27
    }
28
29
    public function getArgs() {
30
        return $this->args;
31
    }
32
33
    abstract function getLabel();
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
34
    abstract function setup();
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
35
}