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\Simple\Relationship;
use Stratadox\Deserializer\Deserializer;
use Stratadox\Hydration\Mapping\Nested;
use Stratadox\Hydration\Mapping\Relation\RelationMapping;
use Stratadox\HydrationMapping\Mapping;
final class HasOneNested
{
public static function inProperty(
string $name,
Deserializer $deserializer
): Mapping {
return Nested::inKey($name, RelationMapping::inProperty($name, $deserializer));
}
public static function inPropertyWithDifferentKey(
string $key,
return Nested::inKey($key, RelationMapping::inProperty($name, $deserializer));