public function setPrefixes(array $prefixes) {
		$this->prefixes = [];
		foreach ($prefixes as $prefix => $baseDir) {
			$this->addPrefix($prefix, $baseDir);
		}
	}
public function setPrefixes(array $prefixes) {
		$this->prefixes = [];
		foreach ($prefixes as $prefix => $baseDir) {
			$this->addPrefix($prefix, $baseDir);
		}
	}
public function setPrefixes ( array $ prefixes ) { $ this -> prefixes = [ ] ; foreach ( $ prefixes as $ prefix => $ baseDir ) { $ this -> addPrefix ( $ prefix , $ baseDir ) ; } }
set all namespace prefixes and their base directories; overwrites
existing prefixes

@param array $prefixes: associative array of namespace prefixes and their base directories

@return void
set all namespace prefixes and their base directories ; overwrites existing prefixes