SimplePropertyNormalizer
in package
implements
PropertyNormalizer
Quick'n'dirty property normalizer that logs the first level properties
Does not recurse into sub-objects or arrays.
This is done in an extremely inefficient manner, so please never use this in a production context, only for local debugging.
Interfaces, Classes and Traits
- PropertyNormalizer
- Normalize value into scalars, usually to put them in a log message's context
Table of Contents
- normalize() : array<string|int, mixed>
- formatValue() : string
- Return the given (property) value as a descriptive string
Methods
normalize()
public
normalize(object $command) : array<string|int, mixed>
Parameters
- $command : object
Return values
array<string|int, mixed> —formatValue()
Return the given (property) value as a descriptive string
protected
formatValue(mixed $value) : string
Parameters
- $value : mixed
-
Can be literally anything