AbstractMutationResponse   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 18
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDomainEvents() 0 4 1
A getErrors() 0 4 1
1
<?php declare(strict_types = 1);
2
3
namespace TomCizek\ResponseRecorder\Application\ResponseRecorder;
4
5
use TomCizek\ResponseRecorder\Application\ResponseRecorder\MutationResponse\DomainEventCollection;
6
use TomCizek\ResponseRecorder\Application\ResponseRecorder\MutationResponse\MutationErrorCollection;
7
8
abstract class AbstractMutationResponse implements MutationResponse
9
{
10
	/** @var DomainEventCollection */
11
	protected $domainEvents;
12
13
	/** @var MutationErrorCollection */
14
	protected $errors;
15
16 9
	public function getDomainEvents(): DomainEventCollection
17
	{
18 9
		return $this->domainEvents;
19
	}
20
21 9
	public function getErrors(): MutationErrorCollection
22
	{
23 9
		return $this->errors;
24
	}
25
}
26