-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBankTotal.php
73 lines (67 loc) · 1.51 KB
/
BankTotal.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
<?php
class BankTotal
{
var $ones;
var $fives;
var $twentyfives;
var $hundreds;
var $twohundredfifties;
function get_ones()
{
return $this->ones;
}
function set_($new_ones)
{
$this->ones = $new_ones;
}
function get_fives()
{
return $this->fives;
}
function set_fives($new_fives)
{
$this->fives = $new_fives;
}
function get_twentyfives()
{
return $this->twentyfives;
}
function set_twentyfives($new_twentyfives)
{
$this->twentyfives = $new_twentyfives;
}
function get_hundreds()
{
return $this->hundreds;
}
function set_hundreds($new_hundreds)
{
$this->hundreds = $new_hundreds;
}
function get_twohundredfifties()
{
return $this->twohundredfifties;
}
function set_twohundredfifties($new_twohundredfifties)
{
$this->twohundredfifties = $new_twohundredfifties;
}
//Constructors
function __construct($ones, $fives, $twentyfives, $hundreds, $twohundredfifties)
{
$this->ones = $ones;
$this->fives = $fives;
$this->twentyfives = $twentyfives;
$this->hundreds = $hundreds;
$this->twohundredfifties = $twohundredfifties;
}
function BankTotal($ones, $fives, $twentyfives, $hundreds, $twohundredfifties)
{
$this->ones = $ones;
$this->fives = $fives;
$this->twentyfives = $twentyfives;
$this->hundreds = $hundreds;
$this->twohundredfifties = $twohundredfifties;
}//end of constructor
}
?>