Mutation implements JsonSerializable
Representation of a Content-Security-Policy mutation, changing an existing policy directive.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $directive : Directive
- $mode : MutationMode
- $sources : array<int, SourceInterface>
Methods
- __construct() : mixed
- jsonSerialize() : array<string|int, mixed>
Properties
$directive read-only
public
Directive
$directive
$mode read-only
public
MutationMode
$mode
$sources read-only
public
array<int, SourceInterface>
$sources
Methods
__construct()
public
__construct(MutationMode $mode, Directive $directive, SourceInterface ...$sources) : mixed
Parameters
- $mode : MutationMode
- $directive : Directive
- $sources : SourceInterface
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>