| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace XoopsModules\Smartobject; |
||
| 44 | public function __construct( |
||
| 45 | $keyname, |
||
| 46 | $align = 'left', |
||
| 47 | $width = false, |
||
| 48 | $customMethodForValue = false, |
||
| 49 | $param = false, |
||
| 50 | $customCaption = false, |
||
| 51 | $sortable = true |
||
| 52 | ) { |
||
| 53 | $this->_keyname = $keyname; |
||
| 54 | $this->_align = $align; |
||
| 55 | $this->_width = $width; |
||
| 56 | $this->_customMethodForValue = $customMethodForValue; |
||
| 57 | $this->_sortable = $sortable; |
||
| 58 | $this->_param = $param; |
||
|
|
|||
| 59 | $this->_customCaption = $customCaption; |
||
| 60 | } |
||
| 61 | |||
| 105 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: