-
Notifications
You must be signed in to change notification settings - Fork 0
/
Transaction.php
77 lines (67 loc) · 1.4 KB
/
Transaction.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
class Transaction {
private $id;
private $shop_ref;
private $price_coins, $price_stars;
private $transaction_date;
private $selected;
/**
* @param $id int
* @param $shop_ref ShopRef
* @param $price_coins int
* @param $price_stars int
* @param $transaction_date string
* @param $selected bool
*/
public function __construct($id, $shop_ref, $price_coins, $price_stars, $transaction_date, $selected)
{
$this->id = $id;
$this->shop_ref = $shop_ref;
$this->price_coins = $price_coins;
$this->price_stars = $price_stars;
$this->transaction_date = $transaction_date;
$this->selected = $selected;
}
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @return ShopRef
*/
public function getItemReference()
{
return $this->shop_ref;
}
/**
* @return int
*/
public function getPriceCoins()
{
return $this->price_coins;
}
/**
* @return int
*/
public function getPriceStars()
{
return $this->price_stars;
}
/**
* @return string
*/
public function getTransactionDate()
{
return $this->transaction_date;
}
/**
* @return boolean
*/
public function isSelected()
{
return $this->selected;
}
}