Completed
Push — master ( 2902cd...b8eebc )
by mw
10s
created

NullResponseParser::getRawResponseById()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 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
	public function getRawResponse( $query ) {
92
		return '';
93
	}
94
95
}
96