| @@ 41-48 (lines=8) @@ | ||
| 38 | */ |
|
| 39 | protected $set; |
|
| 40 | ||
| 41 | public function __construct() |
|
| 42 | { |
|
| 43 | $this->table = new FromStatement(FromStatement::UPDATE); |
|
| 44 | $this->set = new SetStatement(); |
|
| 45 | $this->where = new WhereStatement(); |
|
| 46 | $this->orderBy = new OrderStatement(); |
|
| 47 | $this->limit = new LimitStatement(); |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * Sets the table for the query. |
|
| @@ 27-33 (lines=7) @@ | ||
| 24 | { |
|
| 25 | use Executable, From, Limit, OrderBy, Where; |
|
| 26 | ||
| 27 | public function __construct() |
|
| 28 | { |
|
| 29 | $this->from = new FromStatement(FromStatement::DELETE); |
|
| 30 | $this->where = new WhereStatement(); |
|
| 31 | $this->orderBy = new OrderStatement(); |
|
| 32 | $this->limit = new LimitStatement(); |
|
| 33 | } |
|
| 34 | ||
| 35 | /** |
|
| 36 | * Generates the raw SQL string for the query. |
|