Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
config_item
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 get_name
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 to_string
n/a
0 / 0
n/a
0 / 0
0
1<?php
2/**
3 *
4 * This file is part of the phpBB Forum Software package.
5 *
6 * @copyright (c) phpBB Limited <https://www.phpbb.com>
7 * @license GNU General Public License, version 2 (GPL-2.0)
8 *
9 * For full copyright and license information, please see
10 * the docs/CREDITS.txt file.
11 *
12 */
13
14namespace phpbb\search\backend\sphinx;
15
16/**
17 * \phpbb\search\backend\sphinx\config_item
18 * Represents a single config item inside the sphinx configuration
19 */
20abstract class config_item
21{
22    /** @var string Item name */
23    protected $name = '';
24
25    /**
26     * Getter for the item's name
27     *
28     * @return    string    The item object's name
29     */
30    public function get_name(): string
31    {
32        return $this->name;
33    }
34
35    /**
36     * Return string representation of config item
37     *
38     * @return    string    String representation of config item
39     */
40    abstract public function to_string(): string;
41}