Passed
Push — master ( 1c7137...b5ef5e )
by Pieter van der
03:26 queued 14s
created

Tiqr_DeviceStorage_Abstract::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
c 1
b 0
f 0
dl 0
loc 2
rs 10
cc 1
nc 1
nop 0
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
 * The abstract baseclass for DeviceStorage implementations
23
 * @author ivo
24
 *
25
 */
26
abstract class Tiqr_DeviceStorage_Abstract
27
{
28
    /**
29
     * The options available to the devicestorage implementation
30
     * @var array
31
     */
32
    protected $_options = array();
33
    
34
    /**
35
     * get a deviceToken for a certain notificationToken.
36
     * @param String $notificationToken
37
     * @return String deviceToken
38
     */
39
    public abstract function getDeviceToken($notificationToken);
40
           
41
    /**
42
     * Initialize the devicestorage instance right after creation. 
43
     * The derived classes may optionally use this to initialize the
44
     * storage.
45
     */
46
    public function init()
47
    {
48
        
49
    }
50
51
    /**
52
     * Create an instance of a device storage. Should not be used directly, as
53
     * the Tiqr_DeviceStorage factory will call this for you.
54
     * @param array $options The options for the s
55
     */
56
    public function __construct($options=array())
57
    {
58
        $this->_options = $options;        
59
    }
60
        
61
}