FOSElasticaBundle/Configuration/ManagerInterface.php

45 lines
883 B
PHP
Raw Normal View History

2014-06-16 15:23:49 +02:00
<?php
/**
* This file is part of the FOSElasticaBundle project.
*
* (c) Tim Nagel <tim@nagel.com.au>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FOS\ElasticaBundle\Configuration;
/**
* Central manager for index and type configuration.
*/
interface ManagerInterface
{
/**
* Returns configuration for an index.
*
* @param $index
2015-03-12 11:20:00 +01:00
*
2014-06-16 15:23:49 +02:00
* @return IndexConfig
*/
public function getIndexConfiguration($index);
2014-06-17 15:22:58 +02:00
/**
* Returns an array of known index names.
*
* @return array
*/
public function getIndexNames();
2014-06-16 15:23:49 +02:00
/**
* Returns a type configuration.
*
* @param string $index
* @param string $type
2015-03-12 11:20:00 +01:00
*
2014-06-16 15:23:49 +02:00
* @return TypeConfig
*/
public function getTypeConfiguration($index, $type);
2014-06-17 15:22:58 +02:00
}