for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Stratadox\Hydration\Mapping\Property\Type;
use Stratadox\Hydration\Mapping\DifferentKey;
use Stratadox\Hydration\Mapping\Property\Keyed;
use Stratadox\Hydration\Mapping\Primitive\BooleanMapping;
use Stratadox\HydrationMapping\KeyedMapping;
final class BooleanValue
{
public static function withCustomTruths(
string $name,
array $truths,
array $falsehoods
): KeyedMapping {
return Keyed::mapping($name,
BooleanMapping::custom($name, $truths, $falsehoods)
);
}
public static function withCustomTruthsAndKey(
string $key,
return Keyed::mapping($key, DifferentKey::use(
$key,
));
public static function inProperty(string $name): KeyedMapping
return Keyed::mapping($name, BooleanMapping::inProperty($name));
public static function inPropertyWithDifferentKey(
string $key
BooleanMapping::inProperty($name))