src/chippyash/Assembler/Assembler.php
public function merge(Assembler $other)
    {
        //N.B. reflection used so as to not expose values
        //via some public method
        $refl = new \ReflectionObject($other);
        $reflValues = $refl->getProperty('values');
        $reflValues->setAccessible(true);
        $oValues = $reflValues->getValue($other);
        if (count($oValues) == 0) {
            return $this;
        }

        $this->values = array_merge($this->values, $oValues);

        return $this;
    }
public function merge(Assembler $other)
    {
        //N.B. reflection used so as to not expose values
        //via some public method
        $refl = new \ReflectionObject($other);
        $reflValues = $refl->getProperty('values');
        $reflValues->setAccessible(true);
        $oValues = $reflValues->getValue($other);
        if (count($oValues) == 0) {
            return $this;
        }

        $this->values = array_merge($this->values, $oValues);

        return $this;
    }
public function merge ( Assembler $ other ) { //N.B. reflection used so as to not expose values //via some public method $ refl = new \ ReflectionObject ( $ other ) ; $ reflValues = $ refl -> getProperty ( 'values' ) ; $ reflValues -> setAccessible ( true ) ; $ oValues = $ reflValues -> getValue ( $ other ) ; if ( count ( $ oValues ) == 0 ) { return $ this ; } $ this -> values = array_merge ( $ this -> values , $ oValues ) ; return $ this ; }
Merge this assembly with another.
Obeys the rules of array_merge

@param Assembler $other

@return $this
Merge this assembly with another . Obeys the rules of array_merge