public static function inProperty(
        string $name,
        DeserializesCollections $collection,
        Deserializes $item,
        string $key = 'key'
    ): MapsProperty {
        return new self($name, $collection, $item, $key);
    }
public static function inProperty(
        string $name,
        DeserializesCollections $collection,
        Deserializes $item,
        string $key = 'key'
    ): MapsProperty {
        return new self($name, $collection, $item, $key);
    }
public static function inProperty ( string $ name , DeserializesCollections $ collection , Deserializes $ item , string $ key = 'key' ) : MapsProperty { return new self ( $ name , $ collection , $ item , $ key ) ; }
Creates a new embedded has-many mapping.

@param string                  $name       The name of the property.
@param DeserializesCollections $collection The deserializer for the
collection.
@param Deserializes            $item       The deserializer for the
individual items.
@param string                  $key        The array key to assign to
the scalars, used by the
deserializer for individual
items.
@return MapsProperty                       The embedded has-many mapping.
Creates a new embedded has - many mapping .