| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | abstract class AbstractTag |
||
| 14 | { |
||
| 15 | protected $pattern; |
||
| 16 | protected $tag; |
||
| 17 | protected $args = []; |
||
| 18 | protected $replacement = null; |
||
| 19 | |||
| 20 | const TAG = 0; |
||
| 21 | const HOOK = 1; |
||
| 22 | |||
| 23 | public function __construct($pattern, $tag) |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getArgs() { |
||
| 32 | } |
||
| 33 | |||
| 34 | public function setReplacement($replacement) { |
||
| 36 | } |
||
| 37 | |||
| 38 | abstract function getLabel(); |
||
|
|
|||
| 39 | abstract function setup(); |
||
| 40 | abstract function fart($dictionary); |
||
| 41 | abstract function getTag(); |
||
| 42 | abstract function getReplacement(); |
||
| 43 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.