Completed
Branch wip/litedown (e234a3)
by Josh
31:46 queued 18:30
created

AbstractPass   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 29
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
parse() 0 1 ?
A __construct() 0 5 1
1
<?php
2
3
/**
4
* @package   s9e\TextFormatter
5
* @copyright Copyright (c) 2010-2017 The s9e Authors
6
* @license   http://www.opensource.org/licenses/mit-license.php The MIT License
7
*/
8
namespace s9e\TextFormatter\Plugins\Litedown\Parser\Passes;
9
10
use s9e\TextFormatter\Parser;
11
use s9e\TextFormatter\Plugins\Litedown\Parser\ParsedText;
12
13
abstract class AbstractPass
14
{
15
	/**
16
	* @var Parser
17
	*/
18
	protected $parser;
19
20
	/**
21
	* @var ParsedText Text being parsed
22
	*/
23
	protected $text;
24
25
	/**
26
	* @param Parser     $parser
27
	* @param ParsedText $text
28
	*/
29 263
	public function __construct(Parser $parser, ParsedText $text)
30
	{
31 263
		$this->parser = $parser;
32 263
		$this->text   = $text;
33 263
	}
34
35
	/**
36
	* Parse the prepared text from stored parser
37
	*
38
	* @return void
39
	*/
40
	abstract public function parse();
41
}