@@ 90-97 (lines=8) @@ | ||
87 | * @param string ...$params |
|
88 | * @return $this |
|
89 | */ |
|
90 | public function addExpr($str) { |
|
91 | if(count(func_get_args()) > 1) { |
|
92 | $this->fields[] = func_get_args(); |
|
93 | } else { |
|
94 | $this->fields[] = $str; |
|
95 | } |
|
96 | return $this; |
|
97 | } |
|
98 | ||
99 | /** |
|
100 | * @param string $str |
|
@@ 104-111 (lines=8) @@ | ||
101 | * @param string ...$params |
|
102 | * @return $this |
|
103 | */ |
|
104 | public function updateExpr($str) { |
|
105 | if(count(func_get_args()) > 1) { |
|
106 | $this->update[] = func_get_args(); |
|
107 | } else { |
|
108 | $this->update[] = $str; |
|
109 | } |
|
110 | return $this; |
|
111 | } |
|
112 | ||
113 | /** |
|
114 | * @param string $str |