public function setProperties(array $properties) {
		foreach ($this->properties as $prop) {
			$prop->setParent(null);
		}

		$this->properties->clear();

		foreach ($properties as $prop) {
			$this->setProperty($prop);
		}

		return $this;
	}
public function setProperties(array $properties) {
		foreach ($this->properties as $prop) {
			$prop->setParent(null);
		}

		$this->properties->clear();

		foreach ($properties as $prop) {
			$this->setProperty($prop);
		}

		return $this;
	}
public function setProperties ( array $ properties ) { foreach ( $ this -> properties as $ prop ) { $ prop -> setParent ( null ) ; } $ this -> properties -> clear ( ) ; foreach ( $ properties as $ prop ) { $ this -> setProperty ( $ prop ) ; } return $ this ; }
Sets a collection of properties

@param PhpProperty[] $properties
@return $this
Sets a collection of properties