MapRecord
in package
FinalYes
Attributes
- #[Attribute]
- \Attribute::TARGET_CLASS
Table of Contents
Properties
- $afterMapping : array<string|int, string>
- $convertEmptyStringToNull : bool|null
- $trimFieldValueBeforeCasting : bool
Methods
- __construct() : mixed
- afterMappingMethods() : array<string|int, ReflectionMethod>
- tryFrom() : self|null
Properties
$afterMapping read-only
public
array<string|int, string>
$afterMapping
= []
$convertEmptyStringToNull read-only
public
bool|null
$convertEmptyStringToNull
= null
$trimFieldValueBeforeCasting read-only
public
bool
$trimFieldValueBeforeCasting
= false
Methods
__construct()
public
__construct([array<string|int, mixed> $afterMapping = [] ][, bool|null $convertEmptyStringToNull = null ][, bool $trimFieldValueBeforeCasting = false ]) : mixed
Parameters
- $afterMapping : array<string|int, mixed> = []
- $convertEmptyStringToNull : bool|null = null
- $trimFieldValueBeforeCasting : bool = false
afterMappingMethods()
public
afterMappingMethods(ReflectionClass $class) : array<string|int, ReflectionMethod>
Parameters
- $class : ReflectionClass
Return values
array<string|int, ReflectionMethod>tryFrom()
public
static tryFrom(ReflectionClass $class) : self|null
Parameters
- $class : ReflectionClass