Hi,
I'm trying to resolve the same problem as SeboStone, and I've attempted to use your solution. I've copy-pasted the code into Paramter__Notes and Operation Notes. In my case, a method generated looks like this:
/**
* "@param" Test $$test
*/
public function setTest(Test $$test)
{
}
The problem is the extra " around @param as well as the double $ around variables. The type is set properly.
Also, I've made another fix in my installation, which probably should be included in your future release. In PHP primitive types should not be specified when declaring parameters of a function. So "String", "Integer", "Boolean" should never be there. They should however appear in phpDocumentor comments. Like in this example:
/**
* Enter description here...
*
* @param String $someString
* @param Test $customObject
*/
public function login($someString, Test $customObject) {
}
now the code below will raise warnings during execution.
public function login(String $someString, Test $customObject) {
I've modified Parameter template to look like this:
%if genOptPHPVersion == "5.0" and paramType != "" and paramType != "var" and paramType != "String" and paramType != "Integer" and paramType != "Boolean"%
%PI=" "%
%paramType%
%endIf%
%PI=""%
%paramKind=="out" ? "&" : ""%
%paramKind=="inout" ? "&" : ""%
%dl%%paramName%
%paramDefault ? " = " value%
That seems to fix the problem on first sight, but it's not completely tested.
Other than that, I do not see any problems. Your program is great, and we should be getting few licenses soon.
Tomasz Rakowski