AbstractMutationResponse::getDomainEvents()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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