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);
            }
        }
    }
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);
            }
        }
    }
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 ) ; } } }
Registers the child methods with the generated Trait Descriptor.

@param MethodReflector[] $methods
@param TraitDescriptor   $traitDescriptor

@return void
Registers the child methods with the generated Trait Descriptor .