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

SimpleQueryResult   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 80%

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 1
dl 0
loc 23
ccs 8
cts 10
cp 0.8
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getSubjects() 0 3 1
A getParameters() 0 3 1
A getProcessingResult() 0 3 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