id = 20; * eq(">>>>20",$obj->id()); */ return ">>>>".$this->id; } function type(){ /*** * $obj = new Dummy2(); * $obj->type = "hoge"; * eq("",$obj->type()); */ return "<".$this->type.">"; } function setId($value){ $this->id = $value + 100; } function getId(){ return $this->id - 100; } } ?>