Mask implements Sanitizer
Read onlyYes
FinalYes
Interfaces
Methods
- __construct() : mixed
- fromArray() : self
- Create a Mask sanitizer from an array representation.
- normalize() : array<string, mixed>
- Return an array representation of the sanitizer.
- sanitize() : string
- Sanitize a string value.
Methods
__construct()
public
__construct([string $character = '*' ][, int $offset = 0 ]) : mixed
Parameters
- $character : string = '*'
-
- character used for masking
- $offset : int = 0
-
- start masking values from this offset
fromArray()
Create a Mask sanitizer from an array representation.
public
static fromArray(array<string, mixed> $data) : self
Parameters
- $data : array<string, mixed>
Return values
selfnormalize()
Return an array representation of the sanitizer.
public
normalize() : array<string, mixed>
Return values
array<string, mixed>sanitize()
Sanitize a string value.
public
sanitize(string $value) : string
Parameters
- $value : string