src/Property/Relationship/HasManyProxies.php
public static function inPropertyWithDifferentKey(
        string $name,
        string $key,
        DeserializesCollections $collection,
        ProducesProxies $proxyBuilder
    ): ExposesDataKey {
        return new self($name, $key, $collection, $proxyBuilder);
    }
public static function inPropertyWithDifferentKey(
        string $name,
        string $key,
        DeserializesCollections $collection,
        ProducesProxies $proxyBuilder
    ): ExposesDataKey {
        return new self($name, $key, $collection, $proxyBuilder);
    }
public static function inPropertyWithDifferentKey ( string $ name , string $ key , DeserializesCollections $ collection , ProducesProxies $ proxyBuilder ) : ExposesDataKey { return new self ( $ name , $ key , $ collection , $ proxyBuilder ) ; }
Creates a new lazily loading has-many mapping, using the data from a
specific key.

@param string                  $name         The name of the property.
@param string                  $key          The array key to use.
@param DeserializesCollections $collection   The deserializer for the
collection.
@param ProducesProxies         $proxyBuilder The proxy builder.
@return ExposesDataKey                       The lazy has-many mapping.
Creates a new lazily loading has - many mapping using the data from a specific key .