1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-09-03 05:12:37 +02:00

[ticket/16935] Refactor sphinx to use new clases and remove unused parts

PHPBB3-16935
This commit is contained in:
Marc Alexander
2021-12-11 22:54:22 +01:00
parent d4b119893b
commit 9c15561a6b
6 changed files with 90 additions and 357 deletions

View File

@@ -0,0 +1,41 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
namespace phpbb\search\backend\sphinx;
/**
* \phpbb\search\backend\sphinx\config_item
* Represents a single config item inside the sphinx configuration
*/
abstract class config_item
{
/** @var string Item name */
protected $name = '';
/**
* Getter for the item's name
*
* @return string The item object's name
*/
public function get_name(): string
{
return $this->name;
}
/**
* Return string representation of config item
*
* @return string String representation of config item
*/
abstract public function to_string(): string;
}