public function requireSriFor(bool $script, bool $style):void
    {
        if ($script && $style) {
            $this->tags['require-sri-for'] = ['script', 'style'];
        }
        else if ($script) {
            $this->tags['require-sri-for'] = ['script'];
        }
        else if ($style) {
            $this->tags['require-sri-for'] = ['style'];
        }
    }
public function requireSriFor(bool $script, bool $style):void
    {
        if ($script && $style) {
            $this->tags['require-sri-for'] = ['script', 'style'];
        }
        else if ($script) {
            $this->tags['require-sri-for'] = ['script'];
        }
        else if ($style) {
            $this->tags['require-sri-for'] = ['style'];
        }
    }
public function requireSriFor ( bool $ script , bool $ style ) : void { if ( $ script && $ style ) { $ this -> tags [ 'require-sri-for' ] = [ 'script' , 'style' ] ; } else if ( $ script ) { $ this -> tags [ 'require-sri-for' ] = [ 'script' ] ; } else if ( $ style ) { $ this -> tags [ 'require-sri-for' ] = [ 'style' ] ; } }
Sets the 'require-sri-for' value of the CSP.

@link https://developer.mozilla.org/docs/Web/HTTP/Headers/Content-Security-Policy/require-sri-for
@param bool $script
@param bool $style
Sets the require - sri - for value of the CSP .