ModelService

Helpers for working with Content-Security-Policy models.

Internal

Table of Contents

Methods

__construct()  : mixed
buildMutationCollectionFromArray()  : MutationCollection
buildMutationFromArray()  : Mutation
buildMutationSuggestionFromArray()  : MutationSuggestion
buildSourceFromString()  : SourceInterface|null
buildSourcesFromItems()  : array<string|int, mixed>
compileSources()  : array<string|int, mixed>
serializeSource()  : string
serializeSources()  : array<string|int, mixed>

Methods

buildMutationFromArray()

public buildMutationFromArray(array<string|int, mixed> $array) : Mutation
Parameters
$array : array<string|int, mixed>
Return values
Mutation

buildSourcesFromItems()

public buildSourcesFromItems(string ...$items) : array<string|int, mixed>
Parameters
$items : string
Return values
array<string|int, mixed>

        
On this page

Search results