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

Closed
opened 2026-01-22 13:17:58 +01:00 by admin · 3 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:58 +01:00
admin closed this issue 2026-01-22 13:17:59 +01:00
Author
Owner

@doctrinebot commented on GitHub (Oct 29, 2012):

Comment created by stof:

@beberlei this should be closed as it is the case since 2.2

@doctrinebot commented on GitHub (Oct 29, 2012): Comment created by stof: @beberlei this should be closed as it is the case since 2.2
Author
Owner

@doctrinebot commented on GitHub (Apr 1, 2014):

Comment created by @deeky666:

Fixed in commit: 2b334977f5

@doctrinebot commented on GitHub (Apr 1, 2014): Comment created by @deeky666: Fixed in commit: https://github.com/doctrine/doctrine2/commit/2b334977f536e0d4f473ed1faa748d8c37de97db
Author
Owner

@doctrinebot commented on GitHub (Apr 1, 2014):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Apr 1, 2014): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1558