public function add(Package $package)
    {
        $name = $package->getName();
        if (isset($this->packages[$name])) {
            return;
        }

        $this->packages[$name] = $package;
    }
public function add(Package $package)
    {
        $name = $package->getName();
        if (isset($this->packages[$name])) {
            return;
        }

        $this->packages[$name] = $package;
    }
public function add ( Package $ package ) { $ name = $ package -> getName ( ) ; if ( isset ( $ this -> packages [ $ name ] ) ) { return ; } $ this -> packages [ $ name ] = $ package ; }
Add a package to the collection.

@param Package $package
Add a package to the collection .