Completed
Push — master ( 919a96...568a86 )
by wiese
73:55 queued 09:12
created

Request   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 81
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 12
lcom 0
cbo 0
dl 0
loc 81
rs 10
c 0
b 0
f 0

12 Methods

Rating   Name   Duplication   Size   Complexity  
A getAmount() 0 3 1
A setAmount() 0 3 1
A getCurrencyCode() 0 3 1
A setCurrencyCode() 0 3 1
A getSuccessUrl() 0 3 1
A setSuccessUrl() 0 3 1
A getAbortUrl() 0 3 1
A setAbortUrl() 0 3 1
A getNotificationUrl() 0 3 1
A setNotificationUrl() 0 3 1
A getReasons() 0 3 1
A setReasons() 0 3 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\Fundraising\Frontend\Infrastructure\Sofort\Transfer;
6
7
use WMDE\Euro\Euro;
8
9
class Request {
10
11
	/**
12
	 * @var Euro
13
	 */
14
	private $amount;
15
	/**
16
	 * @var string
17
	 */
18
	private $currencyCode = '';
19
	/**
20
	 * @var string
21
	 */
22
	private $successUrl = '';
23
	/**
24
	 * @var string
25
	 */
26
	private $abortUrl = '';
27
	/**
28
	 * @var string
29
	 */
30
	private $notificationUrl = '';
31
	/**
32
	 * @var string[]
33
	 */
34
	private $reasons = [ '', '' ];
35
36
	public function getAmount(): Euro {
37
		return $this->amount;
38
	}
39
40
	public function setAmount( Euro $amount ): void {
41
		$this->amount = $amount;
42
	}
43
44
	public function getCurrencyCode(): string {
45
		return $this->currencyCode;
46
	}
47
48
	public function setCurrencyCode( string $currencyCode ): void {
49
		$this->currencyCode = $currencyCode;
50
	}
51
52
	public function getSuccessUrl(): string {
53
		return $this->successUrl;
54
	}
55
56
	public function setSuccessUrl( string $successUrl ): void {
57
		$this->successUrl = $successUrl;
58
	}
59
60
	public function getAbortUrl(): string {
61
		return $this->abortUrl;
62
	}
63
64
	public function setAbortUrl( string $abortUrl ): void {
65
		$this->abortUrl = $abortUrl;
66
	}
67
68
	public function getNotificationUrl(): string {
69
		return $this->notificationUrl;
70
	}
71
72
	public function setNotificationUrl( string $notificationUrl ): void {
73
		$this->notificationUrl = $notificationUrl;
74
	}
75
76
	/**
77
	 * @return string[]
78
	 */
79
	public function getReasons(): array {
80
		return $this->reasons;
81
	}
82
83
	/**
84
	 * @param string[] $reasons
85
	 */
86
	public function setReasons( array $reasons ): void {
87
		$this->reasons = $reasons;
88
	}
89
}
90