public function add(PackageContract ...$items)
    {
        foreach ($items as $item) {
            $this->items[$item->getName()] = $item;
        }
    }
public function add(PackageContract ...$items)
    {
        foreach ($items as $item) {
            $this->items[$item->getName()] = $item;
        }
    }
public function add ( PackageContract ... $ items ) { foreach ( $ items as $ item ) { $ this -> items [ $ item -> getName ( ) ] = $ item ; } }
Add module to repository.

@param PackageContract[] ...$items
Add module to repository .