public function merge(ModelInformationInterface $with)
    {
        if ( ! empty($with->model)) {
            $this->model = $with->model;
        }

        if ( ! empty($with->original_model)) {
            $this->original_model = $with->original_model;
        }

        $mergeAttributes = [
            'single',
            'meta',
            'verbose_name',
            'translated_name',
            'verbose_name_plural',
            'translated_name_plural',
            'allow_delete',
            'delete_condition',
            'delete_strategy',
            'confirm_delete',
            'list',
            'form',
            'show',
            'export',
            'reference',
            'includes',
        ];

        foreach ($mergeAttributes as $attribute) {
            $this->mergeAttribute($attribute, $with->{$attribute});
        }
    }
public function merge(ModelInformationInterface $with)
    {
        if ( ! empty($with->model)) {
            $this->model = $with->model;
        }

        if ( ! empty($with->original_model)) {
            $this->original_model = $with->original_model;
        }

        $mergeAttributes = [
            'single',
            'meta',
            'verbose_name',
            'translated_name',
            'verbose_name_plural',
            'translated_name_plural',
            'allow_delete',
            'delete_condition',
            'delete_strategy',
            'confirm_delete',
            'list',
            'form',
            'show',
            'export',
            'reference',
            'includes',
        ];

        foreach ($mergeAttributes as $attribute) {
            $this->mergeAttribute($attribute, $with->{$attribute});
        }
    }
public function merge ( ModelInformationInterface $ with ) { if ( ! empty ( $ with -> model ) ) { $ this -> model = $ with -> model ; } if ( ! empty ( $ with -> original_model ) ) { $ this -> original_model = $ with -> original_model ; } $ mergeAttributes = [ 'single' , 'meta' , 'verbose_name' , 'translated_name' , 'verbose_name_plural' , 'translated_name_plural' , 'allow_delete' , 'delete_condition' , 'delete_strategy' , 'confirm_delete' , 'list' , 'form' , 'show' , 'export' , 'reference' , 'includes' , ] ; foreach ( $ mergeAttributes as $ attribute ) { $ this -> mergeAttribute ( $ attribute , $ with -> { $ attribute } ) ; } }
Merges information into this information set, with the new information being leading.

@param ModelInformationInterface|ModelInformation $with
Merges information into this information set with the new information being leading .