Completed
Push — master ( 2623ee...a82f7c )
by Jeroen De
06:13 queued 04:44
created

SimpleQueryResult::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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 4
	public function __construct( SubjectCollection $subjects, ProcessingResult $processingResult ) {
15 4
		$this->subjects = $subjects;
16 4
		$this->processingResult = $processingResult;
17 4
	}
18
19 4
	public function getSubjects(): SubjectCollection {
20 4
		return $this->subjects;
21
	}
22
23 4
	public function getParameters(): array {
24 4
		return $this->processingResult->getParameterArray();
25
	}
26
27
	public function getProcessingResult(): ProcessingResult {
28
		return $this->processingResult;
29
	}
30
31
}
32