1 |
28
|
Manuela
|
<?php
|
2 |
|
|
|
3 |
|
|
/*
|
4 |
|
|
* Copyright (C) 2017 Manuela v.d.Decken <manuela@isteam.de>
|
5 |
|
|
*
|
6 |
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT OR THIS HEADER
|
7 |
|
|
*
|
8 |
|
|
* This program is free software: you can redistribute it and/or modify
|
9 |
|
|
* it under the terms of the GNU General Public License as published by
|
10 |
|
|
* the Free Software Foundation, version 2 of the License.
|
11 |
|
|
*
|
12 |
|
|
* This program is distributed in the hope that it will be useful,
|
13 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15 |
|
|
* GNU General Public License 2 for more details.
|
16 |
|
|
*
|
17 |
|
|
* You should have received a copy of the GNU General Public License 2
|
18 |
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19 |
|
|
*/
|
20 |
|
|
/**
|
21 |
|
|
* Description of FtanTrait
|
22 |
|
|
*
|
23 |
|
|
* @package Vendor_Phplib
|
24 |
|
|
* @copyright Manuela v.d.Decken <manuela@isteam.de>
|
25 |
|
|
* @author Manuela v.d.Decken <manuela@isteam.de>
|
26 |
|
|
* @license GNU General Public License 2.0
|
27 |
|
|
* @version 0.0.1
|
28 |
|
|
* @revision $Id$
|
29 |
|
|
* @since File available since 11.11.2017
|
30 |
|
|
* @deprecated no / since 0000/00/00
|
31 |
|
|
* @description xxx
|
32 |
|
|
*/
|
33 |
|
|
//declare(strict_types = 1);
|
34 |
|
|
//declare(encoding = 'UTF-8');
|
35 |
|
|
|
36 |
|
|
/**
|
37 |
|
|
* short description of trait
|
38 |
|
|
*/
|
39 |
|
|
trait FtanTrait
|
40 |
|
|
{
|
41 |
|
|
public function set_ftan($aFtan)
|
42 |
|
|
{
|
43 |
|
|
$aResult = [
|
44 |
|
|
'FTAN_NAME' => $aFtan['name'],
|
45 |
|
|
'FTAN_VALUE' => $aFtan['value']
|
46 |
|
|
];
|
47 |
|
|
if (isset($aFtan['remain'])) { $aResult['FTAN_REMAIN'] = $aFtan['remain']; }
|
48 |
|
|
if (isset($aFtan['previous'])) { $aResult['FTAN_PREVIOUS'] = $aFtan['previous']; }
|
49 |
|
|
$this->set_var($aResult);
|
50 |
|
|
}
|
51 |
|
|
}
|