Refactor collection repositories: use one instance per databox

This commit is contained in:
Thibaud Fabre
2015-07-09 18:48:53 +02:00
parent 6b516618aa
commit 977e778b61
17 changed files with 407 additions and 214 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace Alchemy\Phrasea\Collection\Reference;
interface CollectionReferenceRepository
{
/**
* @return CollectionReference[]
*/
public function findAll();
/**
* @param int $databoxId
* @return CollectionReference[]
*/
public function findAllByDatabox($databoxId);
/**
* @param int $baseId
* @return CollectionReference|null
*/
public function find($baseId);
/**
* @param int $databoxId
* @param int $collectionId
* @return CollectionReference|null
*/
public function findByCollectionId($databoxId, $collectionId);
}