| Total Complexity | 20 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait CheckTrait{ |
||
| 8 | |||
| 9 | protected function check_where_array(array $where) |
||
| 17 | } |
||
| 18 | } |
||
| 19 | |||
| 20 | protected function isSettable(string $prop) |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | protected function checkLimit() |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | protected function checkMaxlength(string $field, $val , $max) |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | protected function upgradeable(string $field): bool |
||
| 42 | { |
||
| 43 | return (($this->data[$field]['changed'] && $this->data[$field]['upgradeable']) || $this->primary === $field); |
||
| 44 | } |
||
| 45 | |||
| 46 | protected function isIncremented(string $field): bool |
||
| 49 | } |
||
| 50 | |||
| 51 | protected function checkForChanges(): bool |
||
| 65 |