public function set(array $collectors = [])
    {
        $this->collectors = [];
        foreach ($collectors as $collector) {
            $this->add($collector);
        }
    }
public function set(array $collectors = [])
    {
        $this->collectors = [];
        foreach ($collectors as $collector) {
            $this->add($collector);
        }
    }
public function set ( array $ collectors = [ ] ) { $ this -> collectors = [ ] ; foreach ( $ collectors as $ collector ) { $ this -> add ( $ collector ) ; } }
Sets the Collectors associated with this profiler.

@param DataCollectorInterface[] $collectors An array of collectors
Sets the Collectors associated with this profiler .