Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace Flow\Import\SourceStore;
4
5use Flow\Import\IImportObject;
6use Flow\Model\UUID;
7
8interface SourceStoreInterface {
9    /**
10     * Stores the association between an object and where it was imported from.
11     *
12     * @param UUID $objectId ID for the object that was imported.
13     * @param string $importSourceKey String returned from IImportObject::getObjectKey()
14     */
15    public function setAssociation( UUID $objectId, $importSourceKey );
16
17    /**
18     * @param IImportObject $importObject
19     * @return UUID|bool UUID of the imported object if appropriate; otherwise, false.
20     */
21    public function getImportedId( IImportObject $importObject );
22
23    /**
24     * Save any associations that have been added
25     * @throws Exception When save fails
26     */
27    public function save();
28
29    /**
30     * Forget any recorded associations since last save
31     */
32    public function rollback();
33}