Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1235

Provide fluent interfaces in stub methods

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      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>
      }';
      

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Andreas Hörnicke
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: