Skip to content

Add static class helper for converting values #8

@pionl

Description

@pionl

Sometimes we have value from different data source (like laravel form request) and we want to ensure that the type is correct.

For this we need only nullable values.

``php
Value::toInt($value);
Value::toString($value);
Value::toRequiredString($value);
Value::toBool($value);
Value::toArray($value);
Value::toFloat($value);


We want to reuse the basic `GetValue` logic for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions