private function verify_name_uniqueness( AbstractComponent $comp )
    {
        if(!($comp instanceof ValueComponentInterface))
        {
            return;
        }

        foreach ($this->components as $c) 
        {
            if($c->name === $comp->name)
            {
                throw new \RuntimeException("Duplicate component name detected for the name <b>{$c->name}</b>.");
            }
        }
    }
private function verify_name_uniqueness( AbstractComponent $comp )
    {
        if(!($comp instanceof ValueComponentInterface))
        {
            return;
        }

        foreach ($this->components as $c) 
        {
            if($c->name === $comp->name)
            {
                throw new \RuntimeException("Duplicate component name detected for the name <b>{$c->name}</b>.");
            }
        }
    }
private function verify_name_uniqueness ( AbstractComponent $ comp ) { if ( ! ( $ comp instanceof ValueComponentInterface ) ) { return ; } foreach ( $ this -> components as $ c ) { if ( $ c -> name === $ comp -> name ) { throw new \ RuntimeException ( "Duplicate component name detected for the name <b>{$c->name}</b>." ) ; } } }
Verify that the given component name is unique among the list of value components

@param AbstractComponent $comp
@return void
Verify that the given component name is unique among the list of value components