Tiqr_DeviceStorage_Dummy::getDeviceToken()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
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
}