ObjectRow::isHeader()   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 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php namespace XoopsModules\Smartobject;
2
3
/**
4
 * Contains the class responsible for displaying a single SmartObject
5
 *
6
 * @license GNU
7
 * @author  marcan <[email protected]>
8
 * @link    http://smartfactory.ca The SmartFactory
9
 * @package SmartObject
10
 */
11
12
use XoopsModules\Smartobject;
13
14
/**
15
 * SmartObjectRow class
16
 *
17
 * Class representing a single row of a SmartObjectSingleView
18
 *
19
 * @package SmartObject
20
 * @author  marcan <[email protected]>
21
 * @link    http://smartfactory.ca The SmartFactory
22
 */
23
class ObjectRow
24
{
25
    public $_keyname;
26
    public $_align;
27
    public $_customMethodForValue;
28
    public $_header;
29
    public $_class;
30
31
    /**
32
     * SmartObjectRow constructor.
33
     * @param      $keyname
34
     * @param bool $customMethodForValue
35
     * @param bool $header
36
     * @param bool $class
37
     */
38
    public function __construct($keyname, $customMethodForValue = false, $header = false, $class = false)
39
    {
40
        $this->_keyname              = $keyname;
41
        $this->_customMethodForValue = $customMethodForValue;
42
        $this->_header               = $header;
43
        $this->_class                = $class;
44
    }
45
46
    public function getKeyName()
47
    {
48
        return $this->_keyname;
49
    }
50
51
    /**
52
     * @return bool
53
     */
54
    public function isHeader()
55
    {
56
        return $this->_header;
57
    }
58
}
59