SourceValueInterface extends SourceInterface
Interface used for self-contained source value models.
The parent SourceInterface is basically just a type interface, since
type cannot be declared better in PHP. This SourceValueInterface is
focussed on real class instances, but not on enum objects.
This implementation might still change
Table of Contents
Methods
- compile() : string|null
- Compiled representation to be used for Content-Security-Policy HTTP header.
- knows() : bool
- Determines whether a serialized representation is known and can be handled by a specific implementation, (e.g. "string starts with 'hash-proxy-").
- parse() : self
- Parses a known serialized representation as object representation.
- serialize() : string|null
- Serialized representation to be used for persisting declaration (e.g. in database).
Methods
compile()
Compiled representation to be used for Content-Security-Policy HTTP header.
    public
                    compile([FrontendInterface|null $cache = null ]) : string|null
    Parameters
- $cache : FrontendInterface|null = null
Return values
string|null —null means "not applicable / skip"
knows()
Determines whether a serialized representation is known and can be handled by a specific implementation, (e.g. "string starts with 'hash-proxy-").
    public
            static        knows(string $value) : bool
    Parameters
- $value : string
Return values
boolparse()
Parses a known serialized representation as object representation.
    public
            static        parse(string $value) : self
    Parameters
- $value : string
Return values
selfserialize()
Serialized representation to be used for persisting declaration (e.g. in database).
    public
                    serialize() : string|null
    Return values
string|null —null means "not applicable / skip"