src/NamespaceDeclaration.php
public function addElement(DeclarationInterface $element): NamespaceDeclaration
    {
        $this->elements->add($element);
        if ($element instanceof DependedInterface) {
            $this->addUses($element->getDependencies());
        }

        return $this;
    }
public function addElement(DeclarationInterface $element): NamespaceDeclaration
    {
        $this->elements->add($element);
        if ($element instanceof DependedInterface) {
            $this->addUses($element->getDependencies());
        }

        return $this;
    }
public function addElement ( DeclarationInterface $ element ) : NamespaceDeclaration { $ this -> elements -> add ( $ element ) ; if ( $ element instanceof DependedInterface ) { $ this -> addUses ( $ element -> getDependencies ( ) ) ; } return $ this ; }
Method will automatically mount requested uses is any.

@param DeclarationInterface $element

@return self
@throws Exception\ReactorException
Method will automatically mount requested uses is any .