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:
41
phpBB/phpbb/search/backend/sphinx/config_item.php
Normal file
41
phpBB/phpbb/search/backend/sphinx/config_item.php
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user