src/TypedArray.php
public function assign($in)
	{
		$this->_massageBlockInput($in);

		$this->_container = [];    //	initialize array or remove all current values

		foreach ($in as $k => $v) {
			$this->offsetSet($k, $v);
		}
	}
public function assign($in)
	{
		$this->_massageBlockInput($in);

		$this->_container = [];    //	initialize array or remove all current values

		foreach ($in as $k => $v) {
			$this->offsetSet($k, $v);
		}
	}
Copies all members into this class, removing all existing values.

Null clears the entire contents of the typed array but not it's type.

@param object|array|string|null $in

@throws \InvalidArgumentException