| Total Complexity | 6 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Vtiger_ItemNumber_InventoryField extends Vtiger_Basic_InventoryField |
||
| 14 | { |
||
| 15 | protected $type = 'ItemNumber'; |
||
| 16 | protected $defaultLabel = 'LBL_ITEM_NUMBER'; |
||
| 17 | protected $columnName = 'seq'; |
||
| 18 | protected $purifyType = \App\Purifier::INTEGER; |
||
| 19 | |||
| 20 | /** {@inheritdoc} */ |
||
| 21 | public function getDBValue($value, ?string $name = '') |
||
| 24 | } |
||
| 25 | |||
| 26 | /** {@inheritdoc} */ |
||
| 27 | public function validate($value, string $columnName, bool $isUserFormat, $originalValue = null) |
||
| 31 | 1 | } |
|
| 32 | } |
||
| 33 | 1 | ||
| 34 | /** {@inheritdoc} */ |
||
| 35 | public function compare($value, $prevValue, string $column): bool |
||
| 40 |