Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
5 / 5
CRAP
100.00% covered (success)
100.00%
1 / 1
base
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
5 / 5
5
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 is_supported
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 is_legacy
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 needs_rehash
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 get_settings_only
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
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\passwords\driver;
15
16abstract class base implements rehashable_driver_interface
17{
18    /** @var \phpbb\config\config */
19    protected $config;
20
21    /** @var \phpbb\passwords\driver\helper */
22    protected $helper;
23
24    /** @var string Driver name */
25    protected $name;
26
27    /**
28    * Constructor of passwords driver object
29    *
30    * @param \phpbb\config\config $config phpBB config
31    * @param \phpbb\passwords\driver\helper $helper Password driver helper
32    */
33    public function __construct(\phpbb\config\config $config, helper $helper)
34    {
35        $this->config = $config;
36        $this->helper = $helper;
37    }
38
39    /**
40    * {@inheritdoc}
41    */
42    public function is_supported()
43    {
44        return true;
45    }
46
47    /**
48    * {@inheritdoc}
49    */
50    public function is_legacy()
51    {
52        return false;
53    }
54
55    /**
56     * {@inheritdoc}
57     */
58    public function needs_rehash($hash)
59    {
60        return false;
61    }
62
63    /**
64    * {@inheritdoc}
65    */
66    public function get_settings_only($hash, $full = false)
67    {
68        return false;
69    }
70}