XmlParserNoopVisitor   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 71
Duplicated Lines 0 %

Test Coverage

Coverage 27.27%

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 71
ccs 3
cts 11
cp 0.2727
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A visitUnparsedEntityDeclaration() 0 9 1
A visitNotationDeclaration() 0 8 1
A visitElementStart() 0 1 1
A visitCharacterData() 0 1 1
A visitProcessingInstruction() 0 1 1
A visitElementEnd() 0 1 1
1
<?php declare(strict_types=1);
2
/**
3
 * This file is part of the Phootwork package.
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 *
7
 * @license MIT License
8
 * @copyright Thomas Gossmann
9
 */
10
namespace phootwork\xml;
11
12
class XmlParserNoopVisitor implements XmlParserVisitorInterface {
13
	/**
14
	 * @param string $name
15
	 * @param int    $line
16
	 * @param int    $column
17
	 */
18 1
	public function visitElementEnd(string $name, int $line, int $column): void {
19 1
	}
20
21
	/**
22
	 * @param string $target
23
	 * @param string $data
24
	 * @param int    $line
25
	 * @param int    $column
26
	 */
27
	public function visitProcessingInstruction(string $target, string $data, int $line, int $column): void {
28
	}
29
30
	/**
31
	 * @param string $notationName
32
	 * @param string $base
33
	 * @param string $systemId
34
	 * @param string $publicId
35
	 * @param int    $line
36
	 * @param int    $column
37
	 */
38
	public function visitNotationDeclaration(
39
		string $notationName,
40
		string $base,
41
		string $systemId,
42
		string $publicId,
43
		int $line,
44
		int $column
45
	): void {
46
	}
47
48
	/**
49
	 * @param string $entityName
50
	 * @param string $base
51
	 * @param string $systemId
52
	 * @param string $publicId
53
	 * @param string $notationName
54
	 * @param int    $line
55
	 * @param int    $column
56
	 */
57
	public function visitUnparsedEntityDeclaration(
58
		string $entityName,
59
		string $base,
60
		string $systemId,
61
		string $publicId,
62
		string $notationName,
63
		int $line,
64
		int $column
65
	): void {
66
	}
67
68
	/**
69
	 * @param string $name
70
	 * @param array  $attributes
71
	 * @param int    $line
72
	 * @param int    $column
73
	 */
74
	public function visitElementStart(string $name, array $attributes, int $line, int $column): void {
75
	}
76
77
	/**
78
	 * @param string $data
79
	 * @param int    $line
80
	 * @param int    $column
81
	 */
82 1
	public function visitCharacterData(string $data, int $line, int $column): void {
83 1
	}
84
}
85