diff --git a/robot/img/bender.png b/robot/img/bender.png new file mode 100644 index 0000000..f4ee47c Binary files /dev/null and b/robot/img/bender.png differ diff --git a/robot/img/data.jpeg b/robot/img/data.jpeg new file mode 100644 index 0000000..0e17779 Binary files /dev/null and b/robot/img/data.jpeg differ diff --git a/robot/img/gort.png b/robot/img/gort.png new file mode 100644 index 0000000..d5bdd23 Binary files /dev/null and b/robot/img/gort.png differ diff --git a/robot/img/hal.png b/robot/img/hal.png new file mode 100644 index 0000000..f0b2506 Binary files /dev/null and b/robot/img/hal.png differ diff --git a/robot/img/johnny.png b/robot/img/johnny.png new file mode 100644 index 0000000..46e9d0a Binary files /dev/null and b/robot/img/johnny.png differ diff --git a/robot/img/optimus.png b/robot/img/optimus.png new file mode 100644 index 0000000..81c004c Binary files /dev/null and b/robot/img/optimus.png differ diff --git a/robot/img/rosey.jpeg b/robot/img/rosey.jpeg new file mode 100644 index 0000000..e2d5135 Binary files /dev/null and b/robot/img/rosey.jpeg differ diff --git a/robot/img/sico.jpeg b/robot/img/sico.jpeg new file mode 100644 index 0000000..53b739d Binary files /dev/null and b/robot/img/sico.jpeg differ diff --git a/robot/img/sonny.jpg b/robot/img/sonny.jpg new file mode 100644 index 0000000..34ced12 Binary files /dev/null and b/robot/img/sonny.jpg differ diff --git a/robot/img/twiki.jpg b/robot/img/twiki.jpg new file mode 100644 index 0000000..fe2730d Binary files /dev/null and b/robot/img/twiki.jpg differ diff --git a/robot/img/walle.png b/robot/img/walle.png new file mode 100644 index 0000000..3c6d83a Binary files /dev/null and b/robot/img/walle.png differ diff --git a/robot/index.php b/robot/index.php index f151142..deacbcb 100644 --- a/robot/index.php +++ b/robot/index.php @@ -4,17 +4,69 @@ class Robot private $model; private $color; private $os; + private $image; + private $size; + private $laws; - public function __construct($model, $color, $os) + public function __construct($model, $color, $os, $image, $size, $laws = '') { $this->set_model($model); $this->set_color($color); $this->set_os($os); + $this->set_image($image); + $this->set_size($size); + $this->set_laws($laws); } public function __toString() { - return '
Your ' . $this->get_color() . ' ' . $this->get_model() . ' running ' . $this->get_os() . ' will be built shortly. Thank you.
'; + $string = ' +Your ' . $this->get_size() . ' sized ' . $this->get_color() . ' ' . $this->get_model() . ' running ' . $this->get_os() . ' will be built shortly. Thank you.
+Your robot will obey the following laws:
+Your robot has no rules.
'; + } + + $string .= ' +