Test Setup Failed
Push — master ( 687b3c...b7cdc1 )
by Michael
02:15
created

TemplateHook::fart()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 1
dl 0
loc 1
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * {CLASS SUMMARY}
4
 *
5
 * Date: 7/27/18
6
 * Time: 11:26 PM
7
 * @author Michael Munger <[email protected]>
8
 */
9
10
namespace HPHIO\Farret;
11
12
13
class TemplateHook extends AbstractTag
14
{
15
    public function getLabel()
16
    {
17
        $matches = [];
18
        $result = (preg_match_all($this->pattern, $this->tag,$matches, PREG_SET_ORDER) !== false);
19
20
        return ($result ? $matches[0][1] : false);
21
    }
22
23
    public function setup() {
24
        $this->type = AbstractTag::HOOK;
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 fart($dictionary) {
28
29
    }
30
31
    public function getTag() {
32
        return $this->tag;
33
    }
34
35
    public function getReplacement()
36
    {
37
        return $this->replacement;
38
    }
39
}