Appearance
RowCaster
php
final class StanislasPoisson\FrenchPostalCode\Core\RowCasterGives the values of a row the type their column has, so that every database receives numbers as numbers.
Source: src/Core/RowCaster.php
Methods
cast()
php
public function cast(array $row, array $types): array| Parameter | Description |
|---|---|
$types | the Table Schema type of each column |
Returns array<string, float|int|string|null>