Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Distilleries\Expendable\Models; |
||
39 | public function lock() |
||
40 | { |
||
41 | $this->{$this->column_nb_of_try_name} = config($this->config_key_security_lock) + 1; |
||
42 | |||
43 | \DB::table($this->getTable()) |
||
44 | ->where($this->getKeyName(), $this->getKey()) |
||
45 | ->increment($this->column_nb_of_try_name, $this->{$this->column_nb_of_try_name} ); |
||
46 | |||
47 | return $this; |
||
48 | } |
||
50 | } |