Completed
Pull Request — master (#1)
by Tim
65:22
created

ValidAddress::newValidCompanyAddress()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\Fundraising\AddressChangeContext\Tests\Data;
6
7
use WMDE\Fundraising\AddressChange\Domain\Model\Address;
8
9
class ValidAddress {
10
11
	public static function newValidCompanyAddress(): Address {
12
		return Address::newCompanyAddress(
13
			'Widgets GmbH',
14
			'Industriepark 5',
15
			'12345',
16
			'Berlin',
17
			'DE'
18
		);
19
	}
20
21
	public static function newValidPersonalAddress(): Address {
22
		return Address::newPersonalAddress(
23
			'Herr',
24
			'',
25
			'Hanno',
26
			'Nym',
27
			'Schöne Wiese 99',
28
			'26789',
29
			'Leer',
30
			'DE'
31
		);
32
	}
33
}