classes/collection/ElementCollection.php
public function merge($arElementIDList)
    {
        if (empty($arElementIDList)) {
            return $this->returnThis();
        }

        if ($this->isClear()) {
            $this->arElementIDList = $arElementIDList;

            return $this->returnThis();
        }

        $this->arElementIDList = array_merge($this->arElementIDList, $arElementIDList);
        $this->arElementIDList = array_unique($this->arElementIDList);

        return $this->returnThis();
    }
public function merge($arElementIDList)
    {
        if (empty($arElementIDList)) {
            return $this->returnThis();
        }

        if ($this->isClear()) {
            $this->arElementIDList = $arElementIDList;

            return $this->returnThis();
        }

        $this->arElementIDList = array_merge($this->arElementIDList, $arElementIDList);
        $this->arElementIDList = array_unique($this->arElementIDList);

        return $this->returnThis();
    }
public function merge ( $ arElementIDList ) { if ( empty ( $ arElementIDList ) ) { return $ this -> returnThis ( ) ; } if ( $ this -> isClear ( ) ) { $ this -> arElementIDList = $ arElementIDList ; return $ this -> returnThis ( ) ; } $ this -> arElementIDList = array_merge ( $ this -> arElementIDList , $ arElementIDList ) ; $ this -> arElementIDList = array_unique ( $ this -> arElementIDList ) ; return $ this -> returnThis ( ) ; }
Apply array_merge for element array list
@see  \Lovata\Toolbox\Tests\Unit\CollectionTest::testMergeMethod()
@link https://github.com/lovata/oc-toolbox-plugin/wiki/ElementCollection#mergearelementidlist
@param array $arElementIDList
@return $this
Apply array_merge for element array list