Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (31 sloc) 0.467 kb
94ad799 @felicitus Initial commit
felicitus authored
1 <?php
2
3 class SizePrice {
4 /**
5 * Holds the size
6 * @var string
7 */
8 private $size;
9
10 /**
11 * Holds the price
12 * @var float
13 */
14 private $price;
15
16 public function __construct ($size, $price) {
17 $this->size = $size;
18 $this->price = $price;
19 }
20
21 /**
22 * Returns the size
23 * @return string
24 */
25 public function getSize () {
26 return $this->size;
27 }
28
29 /**
30 * Returns the price
31 * @return float
32 */
33 public function getPrice () {
34 return $this->price;
35 }
36 }
Something went wrong with that request. Please try again.