M1\Vars\Traits\ResourceFlagsTrait::replicateFlags PHP Method

replicateFlags() protected method

Duplicates the flags from one string to another
protected replicateFlags ( string $resource, $original_resource ) : string
$resource string The resource to add the flags to
return string The parsed string resource
    protected function replicateFlags($resource, $original_resource)
    {
        return sprintf('%s%s%s', $this->checkSuppression($original_resource) ? '@' : null, $resource, $this->checkRecursive($original_resource) ? '*' : null);
    }