src/Aggregator.php
public function remove(string $name): Aggregator
    {
        foreach ($this->elements as $index => $element) {
            if ($element instanceof NamedInterface && $element->getName() == $name) {
                unset($this->elements[$index]);
            }
        }

        return $this;
    }
public function remove(string $name): Aggregator
    {
        foreach ($this->elements as $index => $element) {
            if ($element instanceof NamedInterface && $element->getName() == $name) {
                unset($this->elements[$index]);
            }
        }

        return $this;
    }
public function remove ( string $ name ) : Aggregator { foreach ( $ this -> elements as $ index => $ element ) { if ( $ element instanceof NamedInterface && $ element -> getName ( ) == $ name ) { unset ( $ this -> elements [ $ index ] ) ; } } return $ this ; }
Remove element by it's name.

@param string $name

@return self
Remove element by it s name .