original_string: protected function addMethods($methods, $traitDescriptor)
      {
          foreach ($methods as $method) {
              $methodDescriptor = $this->getBuilder()->buildDescriptor($method);
              if ($methodDescriptor) {
                  $methodDescriptor->setParent($traitDescriptor);
                  $traitDescriptor->getMethods()->set($methodDescriptor->getName(), $methodDescriptor);
              }
          }
      }
code: protected function addMethods($methods, $traitDescriptor)
      {
          foreach ($methods as $method) {
              $methodDescriptor = $this->getBuilder()->buildDescriptor($method);
              if ($methodDescriptor) {
                  $methodDescriptor->setParent($traitDescriptor);
                  $traitDescriptor->getMethods()->set($methodDescriptor->getName(), $methodDescriptor);
              }
          }
      }
code_tokens: protected function addMethods ( $ methods , $ traitDescriptor ) { foreach ( $ methods as $ method ) { $ methodDescriptor = $ this -> getBuilder ( ) -> buildDescriptor ( $ method ) ; if ( $ methodDescriptor ) { $ methodDescriptor -> setParent ( $ traitDescriptor ) ; $ traitDescriptor -> getMethods ( ) -> set ( $ methodDescriptor -> getName ( ) , $ methodDescriptor ) ; } } }
docstring: Registers the child methods with the generated Trait Descriptor.
  
  @param MethodReflector[] $methods
  @param TraitDescriptor   $traitDescriptor
  
  @return void
docstring_tokens: Registers the child methods with the generated Trait Descriptor .