diff options
author | piernov <piernov@piernov.org> | 2016-04-24 22:06:16 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2016-04-24 22:06:16 +0200 |
commit | 6dea6c0fbbc748e417076e7ca0d7773452b1bb57 (patch) | |
tree | fd6c133433b3304610d3f26072196cd15b2ce862 /inc | |
parent | 8a3610d9ac8349877b7a023a417288c2daee14ba (diff) | |
download | candybox-6dea6c0fbbc748e417076e7ca0d7773452b1bb57.tar.gz candybox-6dea6c0fbbc748e417076e7ca0d7773452b1bb57.tar.bz2 candybox-6dea6c0fbbc748e417076e7ca0d7773452b1bb57.tar.xz candybox-6dea6c0fbbc748e417076e7ca0d7773452b1bb57.zip |
Add PHP Item class
Diffstat (limited to 'inc')
-rw-r--r-- | inc/Item.inc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/inc/Item.inc b/inc/Item.inc new file mode 100644 index 0000000..bf77818 --- /dev/null +++ b/inc/Item.inc @@ -0,0 +1,17 @@ +<?php + +class Item { + public $name = ""; + public $cost = 0; + public $icon = ""; + public $desc = ""; + + function __construct($name, $cost, $icon, $desc) { + $this->name = $name; + $this->cost = $cost; + $this->icon = $icon; + $this->desc = $desc; + } +} + +?> |