Completed
Push — master ( 36e04f...8ec39e )
by Jeroen De
04:55 queued 03:58
created

SimpleQueryResult::getParameters()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

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
nc 1
nop 0
crap 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace ModernTimeline\ResultFacade;
6
7
use ParamProcessor\ProcessingResult;
8
9
class SimpleQueryResult {
10
11
	private $subjects;
12
	private $processingResult;
13
14 3
	public function __construct( SubjectCollection $subjects, ProcessingResult $processingResult ) {
15 3
		$this->subjects = $subjects;
16 3
		$this->processingResult = $processingResult;
17 3
	}
18
19 3
	public function getSubjects(): SubjectCollection {
20 3
		return $this->subjects;
21
	}
22
23 3
	public function getParameters(): array {
24 3
		return $this->processingResult->getParameterArray();
25
	}
26
27 3
	public function getProcessingResult(): ProcessingResult {
28 3
		return $this->processingResult;
29
	}
30
31
}
32