Stratadox/TableLoader

View on GitHub
contracts/Loader/WiresObjects.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Stratadox\TableLoader\Loader;

use Stratadox\TableLoader\Loader\ContainsResultingObjects as Result;

/**
 * Wires objects together.
 *
 * @author Stratadox
 */
interface WiresObjects
{
    /**
     * Wires objects together.
     *
     * @param Result $objects  List of associative rows.
     * @param array  $data     List of objects as [label => [id => instance]].
     * @throws CannotLoadTable When the entity could not be identified or hydrated.
     */
    public function wire(Result $objects, array $data): void;
}