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

SofortUrlConfig   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 33
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getReasonText() 0 3 1
A getReturnUrl() 0 3 1
A getCancelUrl() 0 3 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\Fundraising\Frontend\Presentation;
6
7
class SofortUrlConfig {
8
9
	/**
10
	 * @var string
11
	 */
12
	private $reasonText;
13
	/**
14
	 * @var string
15
	 */
16
	private $returnUrl;
17
	/**
18
	 * @var string
19
	 */
20
	private $cancelUrl;
21
22
	public function __construct( string $reasonText, string $returnUrl, string $cancelUrl ) {
23
		$this->reasonText = $reasonText;
24
		$this->returnUrl = $returnUrl;
25
		$this->cancelUrl = $cancelUrl;
26
	}
27
28
	public function getReasonText(): string {
29
		return $this->reasonText;
30
	}
31
32
	public function getReturnUrl(): string {
33
		return $this->returnUrl;
34
	}
35
36
	public function getCancelUrl(): string {
37
		return $this->cancelUrl;
38
	}
39
}
40