1 <?php declare(strict_types=1);
34 $from === self::BOOL_TRUE_NUMBER
35 || $from === self::BOOL_TRUE_NUMBER_STRING
36 || (is_string($from) && mb_strtolower($from) === self::BOOL_TRUE_STRING)
42 $from === self::BOOL_FALSE_NUMBER
43 || $from === self::BOOL_FALSE_NUMBER_STRING
44 || (is_string($from) && mb_strtolower($from) === self::BOOL_FALSE_STRING)
50 sprintf(
'The value "%s" could not be transformed into boolean.', var_export($from,
true)),
trait DeriveApplyToFromTransform
trait DeriveInvokeFromTransform