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

TemplateTag::getLabel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * {CLASS SUMMARY}
4
 *
5
 * Date: 7/27/18
6
 * Time: 11:15 PM
7
 * @author Michael Munger <[email protected]>
8
 */
9
10
namespace HPHIO\Farret;
11
12
13
class TemplateTag extends AbstractTag
14
{
15
16
    public function getLabel()
17
    {
18
        $matches = [];
19
        preg_match_all($this->pattern, $this->tag,$matches, PREG_SET_ORDER);
20
        return $matches[0][1];
21
    }
22
23
    public function setup() {
24
        $this->type = AbstractTag::TAG;
0 ignored issues
show
Bug Best Practice introduced by
The property type does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
25
    }
26
27
    public function getArgs()
28
    {
29
        // TODO: Implement getArgs() method.
30
    }
31
}