Completed
Pull Request — master (#70)
by Jeroen De
02:22
created

DonationData::setToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace WMDE\Fundraising\Store;
4
5
/**
6
 * @since 2.0
7
 *
8
 * @licence GNU GPL v2+
9
 * @author Jeroen De Dauw < [email protected] >
10
 */
11
class DonationData {
12
13
	private $accessToken;
14
	private $updateToken;
15
	private $updateTokenExpiry;
16
17
	/**
18
	 * @return string|null
19
	 */
20
	public function getAccessToken() {
21
		return $this->accessToken;
22
	}
23
24
	/**
25
	 * @param string|null $token
26
	 */
27
	public function setAccessToken( $token ) {
28
		$this->accessToken = $token;
29
	}
30
31
	/**
32
	 * @return string|null
33
	 */
34
	public function getUpdateToken() {
35
		return $this->updateToken;
36
	}
37
38
	/**
39
	 * @param string|null $updateToken
40
	 */
41
	public function setUpdateToken( $updateToken ) {
42
		$this->updateToken = $updateToken;
43
	}
44
45
	/**
46
	 * @return string|null Time in 'Y-m-d H:i:s' format
47
	 */
48
	public function getUpdateTokenExpiry() {
49
		return $this->updateTokenExpiry;
50
	}
51
52
	/**
53
	 * @param string|null $updateTokenExpiry Time in 'Y-m-d H:i:s' format
54
	 */
55
	public function setUpdateTokenExpiry( $updateTokenExpiry ) {
56
		$this->updateTokenExpiry = $updateTokenExpiry;
57
	}
58
59
}
60