public function registerProvider(Provider $provider): self
    {
        $this->providers[$provider->getName()] = $provider;

        return $this;
    }
public function registerProvider(Provider $provider): self
    {
        $this->providers[$provider->getName()] = $provider;

        return $this;
    }
public function registerProvider ( Provider $ provider ) : self { $ this -> providers [ $ provider -> getName ( ) ] = $ provider ; return $ this ; }
Registers a new provider to the aggregator.

@param Provider $provider

@return ProviderAggregator
Registers a new provider to the aggregator .