src/Resource.php
public function merge(self $resource, bool $overwrite = true): void
    {
        if ($this->getLocale() !== $resource->getLocale()) {
            trigger_error('Attempting to merge resources of different locale', \E_USER_NOTICE);
        }
        
        $this->addData($resource->data, (bool) $overwrite);
    }
public function merge(self $resource, bool $overwrite = true): void
    {
        if ($this->getLocale() !== $resource->getLocale()) {
            trigger_error('Attempting to merge resources of different locale', \E_USER_NOTICE);
        }
        
        $this->addData($resource->data, (bool) $overwrite);
    }
public function merge ( self $ resource , bool $ overwrite = true ) : void { if ( $ this -> getLocale ( ) !== $ resource -> getLocale ( ) ) { trigger_error ( 'Attempting to merge resources of different locale' , \ E_USER_NOTICE ) ; } $ this -> addData ( $ resource -> data , ( bool ) $ overwrite ) ; }
Merges a resource into the current resource
@param self $resource
@param boolean $overwrite Whether the new resource should overwrite already existing values
Merges a resource into the current resource