protected function replicate(array $properties=[])
    {
        $class = get_class($this);
        $domain = isset($properties['domain']) ? $properties['domain'] : $this->domain;
        $namespace = isset($properties['namespace']) ? $properties['namespace'] : $this->namespace;

        return new $class($this->translator, $domain, $namespace, false);
    }
protected function replicate(array $properties=[])
    {
        $class = get_class($this);
        $domain = isset($properties['domain']) ? $properties['domain'] : $this->domain;
        $namespace = isset($properties['namespace']) ? $properties['namespace'] : $this->namespace;

        return new $class($this->translator, $domain, $namespace, false);
    }
protected function replicate ( array $ properties = [ ] ) { $ class = get_class ( $ this ) ; $ domain = isset ( $ properties [ 'domain' ] ) ? $ properties [ 'domain' ] : $ this -> domain ; $ namespace = isset ( $ properties [ 'namespace' ] ) ? $ properties [ 'namespace' ] : $ this -> namespace ; return new $ class ( $ this -> translator , $ domain , $ namespace , false ) ; }
Returns a new instance of this TextProvider.

@param array $properties

@return self
Returns a new instance of this TextProvider .