Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 9
0.00% covered (danger)
0.00%
0 / 4
CRAP
0.00% covered (danger)
0.00%
0 / 1
local
0.00% covered (danger)
0.00%
0 / 9
0.00% covered (danger)
0.00%
0 / 4
20
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
 get_adapter_class
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_options
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
2
 is_available
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
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\storage\provider;
15
16class local implements provider_interface
17{
18    /**
19     * {@inheritdoc}
20     */
21    public function get_name()
22    {
23        return 'local';
24    }
25
26    /**
27     * {@inheritdoc}
28     */
29    public function get_adapter_class(): string
30    {
31        return \phpbb\storage\adapter\local::class;
32    }
33
34    /**
35     * {@inheritdoc}
36     */
37    public function get_options()
38    {
39        return [
40            'path' => [
41                'tag' => 'input',
42                'type' => 'text',
43            ],
44        ];
45    }
46
47    /**
48     * {@inheritdoc}
49     */
50    public function is_available()
51    {
52        return true;
53    }
54}