@@ 54-60 (lines=7) @@ | ||
51 | * |
|
52 | * @return DenormalizationFieldMappingBuilderInterface |
|
53 | */ |
|
54 | public static function create(string $name, bool $emptyToNull = false): DenormalizationFieldMappingBuilderInterface |
|
55 | { |
|
56 | $self = new self($name); |
|
57 | $self->fieldDenormalizer = new FieldDenormalizer(new PropertyAccessor($name), $emptyToNull); |
|
58 | ||
59 | return $self; |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * @param string $name |
|
@@ 83-89 (lines=7) @@ | ||
80 | * |
|
81 | * @return DenormalizationFieldMappingBuilderInterface |
|
82 | */ |
|
83 | public static function createConvertType( |
|
84 | string $name, |
|
85 | string $type, |
|
86 | bool $emptyToNull = false |
|
87 | ): DenormalizationFieldMappingBuilderInterface { |
|
88 | $self = new self($name); |
|
89 | $self->fieldDenormalizer = new ConvertTypeFieldDenormalizer(new PropertyAccessor($name), $type, $emptyToNull); |
|
90 | ||
91 | return $self; |
|
92 | } |