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