Completed
Push — master ( 2c6b7a...b6434d )
by smiley
02:27
created

DBTags   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 49
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A __transform() 0 3 1
1
<?php
2
/**
3
 *
4
 * @filesource   DBTags.php
5
 * @created      28.02.2016
6
 * @package      chillerlan\bbcode\Modules\DB
7
 * @author       Smiley <[email protected]>
8
 * @copyright    2016 Smiley
9
 * @license      MIT
10
 */
11
12
namespace chillerlan\bbcode\Modules\DB;
13
14
use chillerlan\bbcode\BBTemp;
15
use chillerlan\bbcode\Modules\ModuleInterface;
16
17
/**
18
 * Class DBTags
19
 */
20
class DBTags extends DBBaseModule implements ModuleInterface{
21
22
	/**
23
	 * An array of tags the module is able to process
24
	 *
25
	 * @var array
26
	 * @see \chillerlan\bbcode\Modules\Tagmap::$tags
27
	 */
28
	protected $tags = [];
29
30
	/**
31
	 * An optional array of tags contained in self::$tags which are marked as "noparse"
32
	 *
33
	 * @var array
34
	 * @see \chillerlan\bbcode\Modules\Tagmap::$noparse_tags
35
	 */
36
	protected $noparse_tags = [];
37
38
	/**
39
	 * An optional array of tags contained in self::$tags which are marked as "single tag"
40
	 *
41
	 * @var array
42
	 * @see \chillerlan\bbcode\Modules\Tagmap::$singletags
43
	 */
44
	protected $singletags = [];
45
46
	/**
47
	 * DBTags constructor.
48
	 *
49
	 * @param \chillerlan\bbcode\BBTemp $bbtemp
50
	 */
51
	public function __construct(BBTemp $bbtemp){
52
		parent::__construct($bbtemp); 
53
54
		$this->tags         = [];
55
		$this->noparse_tags = [];
56
		$this->singletags   = [];
57
	}
58
59
	/**
60
	 * Transforms the bbcode, called from BaseModuleInterface
61
	 *
62
	 * @see \chillerlan\bbcode\Modules\BaseModuleInterface::transform()
63
	 * @internal
64
	 */
65
	public function __transform():string{
66
		// TODO: Implement __transform() method.
67
	}
68
}
69