public function replace(array $annotations) {
		$this->annotations = $annotations;
		$this->names = [];
		$index = 0;
		
		foreach ($annotations as $annotation) {
			$name = $annotation->getName();
			if (!array_key_exists($name, $this->names)) {
				$this->names[$name] = [];
			}
			$this->names[$name][] = $index++;
		}
	}
public function replace(array $annotations) {
		$this->annotations = $annotations;
		$this->names = [];
		$index = 0;
		
		foreach ($annotations as $annotation) {
			$name = $annotation->getName();
			if (!array_key_exists($name, $this->names)) {
				$this->names[$name] = [];
			}
			$this->names[$name][] = $index++;
		}
	}
public function replace ( array $ annotations ) { $ this -> annotations = $ annotations ; $ this -> names = [ ] ; $ index = 0 ; foreach ( $ annotations as $ annotation ) { $ name = $ annotation -> getName ( ) ; if ( ! array_key_exists ( $ name , $ this -> names ) ) { $ this -> names [ $ name ] = [ ] ; } $ this -> names [ $ name ] [ ] = $ index ++ ; } }
Replaces a set of annotations values
@param array $annotations
Replaces a set of annotations values