Move php to php5 and add a php7 example that uses composer

This commit is contained in:
Kevin Boyd committed 2019-04-23 14:56:30 -07:00
1 parent d86e26b192
commit d1b6306324
19 files changed
+1653

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
<?php
namespace App;
class Item {
public $name;
public $sell_in;
public $quality;
function __construct($name, $sell_in, $quality) {
$this->name = $name;
$this->sell_in = $sell_in;
$this->quality = $quality;
}
public function __toString() {
return "{$this->name}, {$this->sell_in}, {$this->quality}";
}
}