NullResponseParser   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 85
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 86.67%

Importance

Changes 0
Metric Value
wmc 9
lcom 0
cbo 0
dl 0
loc 85
ccs 13
cts 15
cp 0.8667
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getFilteredRecord() 0 3 1
A getMessages() 0 3 1
A usesCache() 0 3 1
A isFromCache() 0 3 1
A doFilterResponseById() 0 1 1
A doFilterResponseFor() 0 1 1
A getRawResponseById() 0 3 1
A getRawResponse() 0 3 1
1
<?php
2
3
namespace Onoi\Remi;
4
5
/**
6
 * @license GNU GPL v2+
7
 * @since 0.1
8
 *
9
 * @author mwjames
10
 */
11
class NullResponseParser implements ResponseParser {
12
13
	/**
14
	 * @var FilteredRecord
15
	 */
16
	private $filteredRecord;
17
18
	/**
19
	 * @since 0.1
20
	 *
21
	 * @param FilteredRecord $filteredRecord
22
	 */
23 2
	public function __construct( FilteredRecord $filteredRecord ) {
24 2
		$this->filteredRecord = $filteredRecord;
25 2
	}
26
27
	/**
28
	 * @since 0.1
29
	 *
30
	 * {@inheritDoc}
31
	 */
32 1
	public function getFilteredRecord() {
33 1
		return $this->filteredRecord;
34
	}
35
36
	/**
37
	 * @since 0.1
38
	 *
39
	 * {@inheritDoc}
40
	 */
41 1
	public function getMessages() {
42 1
		return array();
43
	}
44
45
	/**
46
	 * @since 0.1
47
	 *
48
	 * {@inheritDoc}
49
	 */
50 1
	public function usesCache() {
51 1
		return false;
52
	}
53
54
	/**
55
	 * @since 0.3
56
	 *
57
	 * {@inheritDoc}
58
	 */
59
	public function isFromCache() {
60
		return false;
61
	}
62
63
	/**
64
	 * @since 0.3
65
	 *
66
	 * {@inheritDoc}
67
	 */
68
	public function doFilterResponseById( $query ) {}
0 ignored issues
show
Unused Code introduced by
The parameter $query is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
69
70
	/**
71
	 * @since 0.1
72
	 *
73
	 * {@inheritDoc}
74
	 */
75
	public function doFilterResponseFor( $query ) {}
76
77
	/**
78
	 * @since 0.3
79
	 *
80
	 * {@inheritDoc}
81
	 */
82 1
	public function getRawResponseById( $query ) {
0 ignored issues
show
Unused Code introduced by
The parameter $query is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
83 1
		return '';
84
	}
85
86
	/**
87
	 * @since 0.1
88
	 *
89
	 * {@inheritDoc}
90
	 */
91 1
	public function getRawResponse( $query ) {
92 1
		return '';
93
	}
94
95
}
96