Adds a Collector.
public function add(DataCollectorInterface $collector) : void { $this->collectors[$collector->getName()] = $collector; }