public function addDependency($dep)
    {
        if (is_array($dep)) {
            $this->dependencies = array_merge($this->dependencies, $dep);
        } else {
            $this->dependencies[] = $dep;
        }
    }
public function addDependency($dep)
    {
        if (is_array($dep)) {
            $this->dependencies = array_merge($this->dependencies, $dep);
        } else {
            $this->dependencies[] = $dep;
        }
    }
public function addDependency ( $ dep ) { if ( is_array ( $ dep ) ) { $ this -> dependencies = array_merge ( $ this -> dependencies , $ dep ) ; } else { $ this -> dependencies [ ] = $ dep ; } }
Add external project dependency

@param {array|string} $dep
Add external project dependency