Passed
Push — master ( de9f22...184dfe )
by Jeroen De
02:28
created

MembershipApplicationCreated   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 16
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 2 1
A __construct() 0 3 1
A getMetaData() 0 2 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\Fundraising\Frontend\BucketTesting\Logging\Events;
6
7
use WMDE\Fundraising\Frontend\BucketTesting\Logging\LoggingEvent;
8
9
class MembershipApplicationCreated implements LoggingEvent {
10
11
	private $metadata;
12
13 14
	public function __construct( int $membershipApplicationId ) {
14 14
		$this->metadata = [
15 14
			'id' => $membershipApplicationId
16
		];
17 14
	}
18
19 13
	public function getMetaData(): array {
20 13
		return $this->metadata;
21
	}
22
23 13
	public function getName(): string {
24 13
		return 'membershipApplicationCreated';
25
	}
26
27
}