src/Aggregator.php
public function has(string $name): bool
    {
        foreach ($this->elements as $element) {
            if ($element instanceof NamedInterface && $element->getName() == $name) {
                return true;
            }
        }

        return false;
    }
public function has(string $name): bool
    {
        foreach ($this->elements as $element) {
            if ($element instanceof NamedInterface && $element->getName() == $name) {
                return true;
            }
        }

        return false;
    }
public function has ( string $ name ) : bool { foreach ( $ this -> elements as $ element ) { if ( $ element instanceof NamedInterface && $ element -> getName ( ) == $ name ) { return true ; } } return false ; }
Check if aggregation has named element with given name.

@param string $name

@return bool
Check if aggregation has named element with given name .