/** * Inserts MList <i>$value</i> at the end of the list. * * @param \MToolkit\Core\MList $value */ public function appendList(MList $value) { if ($value->getType() == $this->getType()) { $this->list = array_merge($this->list, $value->toArray()); return; } foreach ($value as $item) { $this->append($item); } }