Completed
Branch wip/litedown (039d9d)
by Josh
29:41
created

AbstractPass   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
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 28
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
parse() 0 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 ParsedText $parsedText
0 ignored issues
show
Bug introduced by
There is no parameter named $parsedText. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
27
	*/
28 263
	public function __construct(Parser $parser, ParsedText $text)
29
	{
30 263
		$this->parser = $parser;
31 263
		$this->text   = $text;
32 263
	}
33
34
	/**
35
	* Parse the prepared text from stored parser
36
	*
37
	* @return void
38
	*/
39
	abstract public function parse();
40
}