src/Menu/MenuModulesInterpreter.php
protected function mergeMenuPresenceData(MenuPresenceInterface $original, MenuPresenceInterface $new)
    {
        $keys = $new->explicitKeys();

        foreach ($keys as $key) {
            $original->{$key} = $new->{$key};
        }

        return $original;
    }
protected function mergeMenuPresenceData(MenuPresenceInterface $original, MenuPresenceInterface $new)
    {
        $keys = $new->explicitKeys();

        foreach ($keys as $key) {
            $original->{$key} = $new->{$key};
        }

        return $original;
    }
protected function mergeMenuPresenceData ( MenuPresenceInterface $ original , MenuPresenceInterface $ new ) { $ keys = $ new -> explicitKeys ( ) ; foreach ( $ keys as $ key ) { $ original -> { $ key } = $ new -> { $ key } ; } return $ original ; }
Merges configured new presence data into an original presence object.

@param MenuPresenceInterface $original
@param MenuPresenceInterface $new
@return MenuPresenceInterface
Merges configured new presence data into an original presence object .