protected function addProperties(array $properties, TraitDescriptor $traitDescriptor): void
    {
        foreach ($properties as $property) {
            $propertyDescriptor = $this->getBuilder()->buildDescriptor($property);
            if ($propertyDescriptor instanceof PropertyDescriptor) {
                $propertyDescriptor->setParent($traitDescriptor);
                $traitDescriptor->getProperties()->set($propertyDescriptor->getName(), $propertyDescriptor);
            }
        }
    }
protected function addProperties(array $properties, TraitDescriptor $traitDescriptor): void
    {
        foreach ($properties as $property) {
            $propertyDescriptor = $this->getBuilder()->buildDescriptor($property);
            if ($propertyDescriptor instanceof PropertyDescriptor) {
                $propertyDescriptor->setParent($traitDescriptor);
                $traitDescriptor->getProperties()->set($propertyDescriptor->getName(), $propertyDescriptor);
            }
        }
    }
protected function addProperties ( array $ properties , TraitDescriptor $ traitDescriptor ) : void { foreach ( $ properties as $ property ) { $ propertyDescriptor = $ this -> getBuilder ( ) -> buildDescriptor ( $ property ) ; if ( $ propertyDescriptor instanceof PropertyDescriptor ) { $ propertyDescriptor -> setParent ( $ traitDescriptor ) ; $ traitDescriptor -> getProperties ( ) -> set ( $ propertyDescriptor -> getName ( ) , $ propertyDescriptor ) ; } } }
Registers the child properties with the generated Trait Descriptor.

@param Property[] $properties
Registers the child properties with the generated Trait Descriptor .