SmartFormDateTimeElement::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php namespace XoopsModules\Smartobject\Form\Elements;
2
3
/**
4
 * Contains the SmartObjectControl class
5
 *
6
 * @license    GNU
7
 * @author     marcan <[email protected]>
8
 * @link       http://smartfactory.ca The SmartFactory
9
 * @package    SmartObject
10
 * @subpackage SmartObjectForm
11
 */
12
use XoopsModules\Smartobject;
13
14
/**
15
 * Class SmartFormDateTimeElement
16
 * @package XoopsModules\Smartobject\Form\Elements
17
 */
18
class SmartFormDateTimeElement extends \XoopsFormDateTime
19
{
20
    /**
21
     * SmartFormDateTimeElement constructor.
22
     * @param mixed $object
23
     * @param mixed $key
24
     */
25
    public function __construct($object, $key)
26
    {
27
        parent::__construct($object->vars[$key]['form_caption'], $key, 15, $object->getVar($key, 'e'));
28
    }
29
}
30