Test Failed
Pull Request — develop (#30)
by Michiel
07:02
created

Tiqr_UserStorage_Abstract::_setEncryptedSecret()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 1
c 2
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 2
crap 1
1
<?php 
2
/**
3
 * This file is part of the tiqr project.
4
 * 
5
 * The tiqr project aims to provide an open implementation for 
6
 * authentication using mobile devices. It was initiated by 
7
 * SURFnet and developed by Egeniq.
8
 *
9
 * More information: http://www.tiqr.org
10
 *
11
 * @author Peter Verhage <[email protected]>
12
 * 
13
 * @package tiqr
14
 *
15
 * @license New BSD License - See LICENSE file for details.
16
 *
17
 * @copyright (C) 2010-2012 SURFnet BV
18
 */
19
20 1
use Psr\Log\LoggerInterface;
21 1
22 1
require_once 'Tiqr/UserStorage/Interface.php';
23
24
/**
25
 * Abstract base implementation for user storage. 
26
 *
27
 * Adds built-in support for encryption of the user secret.
28
 * 
29
 * @author peter
30
 */
31
abstract class Tiqr_UserStorage_Abstract implements Tiqr_UserStorage_Interface
32
{
33
    protected $logger;
34
35
    public function __construct($config, LoggerInterface $logger)
36
    {
37
        $this->logger = $logger;
38
    }
39
40 3
    /**
41
     * Returns additional attributes for the user.
42 3
     *
43 3
     * @param string $userId User identifier.
44 3
     *
45
     * @return array additional user attributes
46 3
     */
47 3
    public function getAdditionalAttributes($userId) 
48
    {
49
        return array();
50
    }
51
}
52