FOSElasticaBundle/Type/LookupInterface.php

28 lines
547 B
PHP
Raw Normal View History

2014-04-25 13:31:04 +02:00
<?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.
*
2014-05-15 14:55:35 +02:00
* @param TypeConfiguration $configuration
2014-04-25 13:31:04 +02:00
* @param int[] $ids
* @return object[]
*/
2014-05-15 14:55:35 +02:00
public function lookup(TypeConfiguration $configuration, array $ids);
2014-04-25 13:31:04 +02:00
}