DispositionConfiguration
FinalYes
Represents a `csp.yaml` site configuration section for the disposition modes `enforce` and `report.
Table of Contents
Properties
- $includeResolutions : bool
- $inheritDefault : bool
- $mutations : array<string|int, mixed>
- $packages : array<string, bool>
- $reportingUrl : null|bool|string
Methods
- __construct() : mixed
- normalizeReportingUrl() : null|bool|string
- resolveEffectivePackages() : array<string|int, mixed>
Properties
$includeResolutions read-only
public
bool
$includeResolutions
$inheritDefault read-only
public
bool
$inheritDefault
$mutations read-only
public
array<string|int, mixed>
$mutations
= []
$packages read-only
public
array<string, bool>
$packages
= []
$reportingUrl
public
null|bool|string
$reportingUrl
Methods
__construct()
public
__construct(bool $inheritDefault, bool $includeResolutions, mixed $reportingUrl[, array<string|int, mixed> $mutations = [] ][, array<string|int, mixed> $packages = [] ]) : mixed
Parameters
- $inheritDefault : bool
- $includeResolutions : bool
- $reportingUrl : mixed
- $mutations : array<string|int, mixed> = []
- $packages : array<string|int, mixed> = []
normalizeReportingUrl()
public
static normalizeReportingUrl(mixed $reportingUrl) : null|bool|string
Parameters
- $reportingUrl : mixed
Return values
null|bool|stringresolveEffectivePackages()
public
resolveEffectivePackages(string ...$packageNames) : array<string|int, mixed>
Parameters
- $packageNames : string