/**
* Sets the Collectors associated with this profile.
*
* @param DataCollectorInterface[] $collectors
*
* @return void
*/
public function setCollectors(array
$collectors) { $this->collectors =
[];
foreach ($collectors as $collector) { $this->
addCollector($collector);
} } /**
* Adds a Collector.
*
* @return void
*/
public function addCollector(DataCollectorInterface
$collector) { $this->collectors
[$collector->
getName()] =
$collector;
}