Open eversonaraujo opened 6 years ago
Same here:
\ \ \ \ /**
\ \ \ \ \ *\ Get\ the\ value\ of\ %description%
\ \ \ \ \ *
\ \ \ \ \ *\ @return\ %type%
\ \ \ \ \ */
\ \ \ \ %scope%\ function\ %methodName%()
\ \ \ \ {
\ \ \ \ \ \ \ \ return\ $this->%variable%;
\ \ \ \ }
and
\ \ \ \ /**
\ \ \ \ \ *\ Set\ the\ value\ of\ %description%
\ \ \ \ \ *
\ \ \ \ \ *\ @param\ %type%\ $%variable%
\ \ \ \ \ *
\ \ \ \ \ *\ @return\ self
\ \ \ \ \ */
\ \ \ \ %scope%\ function\ %methodName%(%typeHint%$%variable%)
\ \ \ \ {
\ \ \ \ \ \ \ \ $this->%variable%\ =\ $%variable%;
\ \ \ \ \ \ \ \ return\ $this;
\ \ \ \ }
When I tried to update template
I made a pull request.
It looks like we're removing Unicode or otherwise unexpected characters from the end of each line, then replacing all spaces with '\\ '. I can't seem to figure out why.
@Wardevour altere o arquivo ~.atom/config.cson, consegui resolver meu problema assim. `.... "php-getters-setters": generateSettersFirst: true getterTemplate: ''' /**
@return %type% */ %scope% function %methodName%() { return $this->%variable%; }
''' setterTemplate: ''' /**
@return self */ %scope% function %methodName%(%typeHint%$%variable%) { $this->%variable% = $%variable%;
return $this;
}
'''`
Hi, when I change the template, and try to generate the code, the slashs aren't being interprete.