set_model($model); $this->set_color($color); $this->set_os($os); } public function __toString() { return '

Your ' . $this->get_color() . ' ' . $this->get_model() . ' running ' . $this->get_os() . ' will be built shortly. Thank you.

'; } public function get_model() { return $this->model; } public function set_model($model) { $this->model = $model; } public function get_color() { return $this->color; } public function set_color($color) { $this->color = $color; } public function get_os() { return $this->os; } public function set_os($os) { $this->os = $os; } } ?> Robot

I, Object

'; return $form; } function message() { if (isset($_POST['model']) && isset($_POST['color']) && isset($_POST['os'])) $robot = new Robot($_POST['model'], $_POST['color'], $_POST['os']); if (!$robot) return form(); ob_start(); print_r($robot); $dump = ob_get_clean(); $msg = '

Processing...

' . $robot->__toString() . '
    ';

    $msg .= $dump;

    $msg .= '
            
'; return $msg; } ?>