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

AbstractPass::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 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
}