1: <?php
2:
3: namespace PHPixie\Database\Driver\PDO\Query\Type;
4:
5: class Update extends \PHPixie\Database\Driver\PDO\Query\Items implements \PHPixie\Database\Type\SQL\Query\Type\Update
6: {
7: public function type()
8: {
9: return 'update';
10: }
11:
12: public function set($keys)
13: {
14: $this->builder->addSet(func_get_args());
15:
16: return $this;
17: }
18:
19: public function clearSet()
20: {
21: $this->builder->clearArray('set');
22:
23: return $this;
24: }
25:
26: public function getSet()
27: {
28: return $this->builder->getArray('set');
29: }
30:
31: public function increment($increments)
32: {
33: $this->builder->addIncrement(func_get_args());
34:
35: return $this;
36: }
37:
38: public function clearIncrement()
39: {
40: $this->builder->clearArray('increment');
41:
42: return $this;
43: }
44:
45: public function getIncrement()
46: {
47: return $this->builder->getArray('increment');
48: }
49: }
50: