FOSElasticaBundle/Type/LookupInterface.php
Tim Nagel 15d3f1e4f8 New Api
2014-04-25 21:31:04 +10:00

27 lines
565 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 TypeConfigurationInterface $configuration
* @param int[] $ids
* @return object[]
*/
public function lookup(TypeConfigurationInterface $configuration, array $ids);
}