public function addDependency( common_configuration_Component $component,  common_configuration_Component $dependency)
    {
        
        $dependencies = $this->getDependencies();
        
    	$found = false;
        foreach ($dependencies as $dep){
        	if ($dependency === $dep['component'] && $component === $dep['isDependencyOf']){
        		$found = true;
        		break;
        	}
        }
    	
        if (false == $found){
        	$dependencies[] = array('component' => $dependency, 'isDependencyOf' => $component);
        	$this->setDependencies($dependencies);
        }
        
    }
public function addDependency( common_configuration_Component $component,  common_configuration_Component $dependency)
    {
        
        $dependencies = $this->getDependencies();
        
    	$found = false;
        foreach ($dependencies as $dep){
        	if ($dependency === $dep['component'] && $component === $dep['isDependencyOf']){
        		$found = true;
        		break;
        	}
        }
    	
        if (false == $found){
        	$dependencies[] = array('component' => $dependency, 'isDependencyOf' => $component);
        	$this->setDependencies($dependencies);
        }
        
    }
public function addDependency ( common_configuration_Component $ component , common_configuration_Component $ dependency ) { $ dependencies = $ this -> getDependencies ( ) ; $ found = false ; foreach ( $ dependencies as $ dep ) { if ( $ dependency === $ dep [ 'component' ] && $ component === $ dep [ 'isDependencyOf' ] ) { $ found = true ; break ; } } if ( false == $ found ) { $ dependencies [ ] = array ( 'component' => $ dependency , 'isDependencyOf' => $ component ) ; $ this -> setDependencies ( $ dependencies ) ; } }
Short description of method addDependency

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@param  Component component
@param  Component dependency
@return void
Short description of method addDependency