FOSElasticaBundle/Type/LookupInterface.php
Tim Nagel 7d06cc429b dev
2014-05-15 22:55:35 +10:00

28 lines
547 B
PHP

<?php
namespace FOS\ElasticaBundle\Type;
/**
* A service that provides lookup capabilities for a type.
*
* @author Tim Nagel <tim@nagel.com.au>
*/
interface LookupInterface
{
/**
* Returns the lookup key.
*
* @return string
*/
public function getKey();
/**
* Look up objects of a specific type with ids as supplied.
*
* @param TypeConfiguration $configuration
* @param int[] $ids
* @return object[]
*/
public function lookup(TypeConfiguration $configuration, array $ids);
}