diff --git a/JAXB.class.php b/JAXB.class.php index e6e66a8..80c1ab0 100644 --- a/JAXB.class.php +++ b/JAXB.class.php @@ -77,8 +77,8 @@ private function createClass($element){ } $attribute .= "\tprivate \$$attrName;\n"; - $accessors .= "\tfunction get$attrName(){\n\t\treturn \$this->$attrName;\n\t}\n"; - $mutators .= "\tfunction set$attrName(\$value){\n\t\treturn \$this->$attrName = \$value;\n\t}\n"; + $accessors .= "\tpublic function get$attrName(){\n\t\treturn \$this->$attrName;\n\t}\n"; + $mutators .= "\tpublic function set$attrName(\$value){\n\t\treturn \$this->$attrName = \$value;\n\t}\n"; $attributeList .= $attribute; } @@ -200,4 +200,4 @@ private function convertToXML($object,$dom){ } } -?> \ No newline at end of file +?>