1 | <?php |
||
20 | class Update extends Common\Update implements Common\OrderByInterface, Common\LimitOffsetInterface |
||
21 | { |
||
22 | use Common\LimitOffsetTrait; |
||
23 | |||
24 | protected function build() |
||
29 | |||
30 | /** |
||
31 | * |
||
32 | * Adds or removes OR ABORT flag. |
||
33 | 1 | * |
|
34 | * @param bool $enable Set or unset flag (default true). |
||
35 | * |
||
36 | 1 | * @return $this |
|
37 | 1 | * |
|
38 | */ |
||
39 | public function orAbort($enable = true) |
||
44 | |||
45 | /** |
||
46 | * |
||
47 | * Adds or removes OR FAIL flag. |
||
48 | 1 | * |
|
49 | * @param bool $enable Set or unset flag (default true). |
||
50 | * |
||
51 | 1 | * @return $this |
|
52 | 1 | * |
|
53 | */ |
||
54 | public function orFail($enable = true) |
||
59 | |||
60 | /** |
||
61 | * |
||
62 | * Adds or removes OR IGNORE flag. |
||
63 | 1 | * |
|
64 | * @param bool $enable Set or unset flag (default true). |
||
65 | * |
||
66 | 1 | * @return $this |
|
67 | 1 | * |
|
68 | */ |
||
69 | public function orIgnore($enable = true) |
||
74 | |||
75 | /** |
||
76 | * |
||
77 | * Adds or removes OR REPLACE flag. |
||
78 | 1 | * |
|
79 | * @param bool $enable Set or unset flag (default true). |
||
80 | * |
||
81 | 1 | * @return $this |
|
82 | 1 | * |
|
83 | */ |
||
84 | public function orReplace($enable = true) |
||
89 | |||
90 | /** |
||
91 | * |
||
92 | * Adds or removes OR ROLLBACK flag. |
||
93 | 1 | * |
|
94 | * @param bool $enable Set or unset flag (default true). |
||
95 | * |
||
96 | 1 | * @return $this |
|
97 | 1 | * |
|
98 | */ |
||
99 | public function orRollback($enable = true) |
||
104 | |||
105 | /** |
||
106 | * |
||
107 | * Adds a column order to the query. |
||
108 | 1 | * |
|
109 | * @param array $spec The columns and direction to order by. |
||
110 | * |
||
111 | 1 | * @return $this |
|
112 | * |
||
113 | */ |
||
114 | public function orderBy(array $spec) |
||
118 | } |
||
119 |
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: