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

Request::getReasons()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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