Tiqr_DeviceStorage_Dummy   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 8
ccs 0
cts 2
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDeviceToken() 0 3 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 Ivo Jansch <[email protected]>
12
 * 
13
 * @package tiqr
14
 *
15
 * @license New BSD License - See LICENSE file for details.
16
 *
17
 * @copyright (C) 2010-2011 SURFnet BV
18
 */
19
20
21
/**
22
 * A simple implementation of a DeviceStorage. This treats every
23
 * devicetoken as if it were a notificationtoken. Not recommended
24
 * for production setups.
25
 * @author ivo
26
 *
27
 */
28
class Tiqr_DeviceStorage_Dummy extends Tiqr_DeviceStorage_Abstract
29
{
30
    /**
31
     * @see Tiqr_DeviceStorage_Abstract::getDeviceToken()
32
     */   
33
    public function getDeviceToken(string $notificationToken)
34
    {
35
        return $notificationToken;
36
    }
37
}