src/Property/Relationship/CollectionMappingFailed.php
public static function forCollection(
        MapsProperty $mapping,
        Throwable $exception
    ): UnmappableInput {
        return new self(
            sprintf(
                'Failed to map the %s collection of the `%s` property: %s',
                The::shortNameOfThe($mapping),
                $mapping->name(),
                $exception->getMessage()
            ),
            0,
            $exception
        );
    }
public static function forCollection(
        MapsProperty $mapping,
        Throwable $exception
    ): UnmappableInput {
        return new self(
            sprintf(
                'Failed to map the %s collection of the `%s` property: %s',
                The::shortNameOfThe($mapping),
                $mapping->name(),
                $exception->getMessage()
            ),
            0,
            $exception
        );
    }
public static function forCollection ( MapsProperty $ mapping , Throwable $ exception ) : UnmappableInput { return new self ( sprintf ( 'Failed to map the %s collection of the `%s` property: %s' , The :: shortNameOfThe ( $ mapping ) , $ mapping -> name ( ) , $ exception -> getMessage ( ) ) , 0 , $ exception ) ; }
Notifies the client code when a collection class could not be hydrated.

@param MapsProperty $mapping   The collection mapping that failed.
@param Throwable    $exception The exception that was encountered.
@return UnmappableInput        The collection mapping failure.
Notifies the client code when a collection class could not be hydrated .