/** * @param ${TYPE_HINT} $${PARAM_NAME}#if (${STATIC} != "static") *
@return self#end */public
${STATIC} function set${NAME}($${PARAM_NAME}){#if (${STATIC}
== "static") self::$${FIELD_NAME} = $${PARAM_NAME};#else $this->${FIELD_NAME}
= $${PARAM_NAME}; return
$this;#end}
Code PHP Fluent Setter Method/** * @param ${TYPE_HINT} $${PARAM_NAME} * @return self */public function
set${NAME}($${PARAM_NAME}){ $this->${FIELD_NAME}
= $${PARAM_NAME}; return $this;}
So In my opinion, no need to return $this from a
method which is not made with a FLUENT template.