DeliveryPayment::toArray()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace XoopsModules\Oledrion;
4
5
/*
6
 You may not change or alter any portion of this comment or credits
7
 of supporting developers from this source code or any supporting source code
8
 which is considered copyrighted (c) material of the original comment or credit authors.
9
10
 This program is distributed in the hope that it will be useful,
11
 but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
*/
14
15
/**
16
 * oledrion
17
 *
18
 * @copyright   {@link https://xoops.org/ XOOPS Project}
19
 * @license     {@link http://www.fsf.org/copyleft/gpl.html GNU public license}
20
 * @author      Hossein Azizabadi ([email protected])
21
 */
22
23
use XoopsModules\Oledrion;
24
25
/**
26
 * Class DeliveryPayment
27
 */
28
class DeliveryPayment extends OledrionObject
29
{
30
    /**
31
     * constructor
32
     *
33
     * normally, this is called from child classes only
34
     */
35
    public function __construct()
36
    {
37
        $this->initVar('dp_id', XOBJ_DTYPE_INT, null, false);
38
        $this->initVar('dp_delivery', XOBJ_DTYPE_INT, null, false);
39
        $this->initVar('dp_payment', XOBJ_DTYPE_INT, null, false);
40
    }
41
42
    /**
43
     * Retourne les éléments du produits formatés pour affichage
44
     *
45
     * @param  string $format
46
     * @return array
47
     */
48
    public function toArray($format = 's')
49
    {
50
        $ret = [];
0 ignored issues
show
Unused Code introduced by
The assignment to $ret is dead and can be removed.
Loading history...
51
        $ret = parent::toArray($format);
52
53
        return $ret;
54
    }
55
}
56