Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
48 | public function offset($offset) |
||
49 | { |
||
50 | if (!$this->hasCompiledOption('ENABLE_UPDATE_DELETE_LIMIT')) { |
||
51 | throw new SimpleCrudException('Unable to add LIMIT offset because ENABLE_UPDATE_DELETE_LIMIT compiled option is disabled'); |
||
52 | } |
||
53 | |||
54 | $this->offset = $offset; |
||
55 | |||
56 | return $this; |
||
57 | } |
||
58 | |||
75 |
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: