-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathCashItem.php
More file actions
72 lines (64 loc) · 1.28 KB
/
CashItem.php
File metadata and controls
72 lines (64 loc) · 1.28 KB
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
<?php
/**
* UnitPay Payment Module
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
*
* @category UnitPay
* @package unitpay/unitpay
* @version 1.0.0
* @author UnitPay
* @copyright Copyright (c) 2015 UnitPay
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
* EXTENSION INFORMATION
*
* UNITPAY API https://unitpay.ru/doc
*
*/
namespace unitpay;
/**
* Value object for paid goods
*/
class CashItem
{
private $name;
private $count;
private $price;
/**
* @param string $name
* @param int $count
* @param float $price
*/
public function __construct($name, $count, $price)
{
$this->name = $name;
$this->count = $count;
$this->price = $price;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* @return float
*/
public function getPrice()
{
return $this->price;
}
}