DDC-1235: Provide fluent interfaces in stub methods #1555

Open
opened 2026-01-22 13:17:54 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Jun 28, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user h-andreas:

Or maybe some template-files could be provided for all stubs.

private static $_setMethodTemplate =
'/****
 * <description>
 *
 * @param <variableType>$<variableName>
 */
public function <methodName>(<methodTypeHint>$<variableName>)
{
<spaces>$this-><fieldName> = $<variableName>;

<spaces>return $this;</spaces>
}';
Originally created by @doctrinebot on GitHub (Jun 28, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user h-andreas: Or maybe some template-files could be provided for all stubs. ``` private static $_setMethodTemplate = '/**** * <description> * * @param <variableType>$<variableName> */ public function <methodName>(<methodTypeHint>$<variableName>) { <spaces>$this-><fieldName> = $<variableName>; <spaces>return $this;</spaces> }'; ```
admin added the Improvement label 2026-01-22 13:17:54 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1555