Code Duplication    Length = 7-8 lines in 2 locations

src/Query/DeleteQuery.php 1 location

@@ 40-46 (lines=7) @@
37
     */
38
    protected $limit;
39
40
    public function initialize()
41
    {
42
        $this->from = new FromStatement();
43
        $this->where = new WhereStatement();
44
        $this->orderBy = new OrderStatement();
45
        $this->limit = new LimitStatement();
46
    }
47
48
    /**
49
     * Sets the table for the query.

src/Query/UpdateQuery.php 1 location

@@ 46-53 (lines=8) @@
43
     */
44
    protected $limit;
45
46
    public function initialize()
47
    {
48
        $this->table = new FromStatement(false);
49
        $this->set = new SetStatement();
50
        $this->where = new WhereStatement();
51
        $this->orderBy = new OrderStatement();
52
        $this->limit = new LimitStatement();
53
    }
54
55
    /**
56
     * Sets the table for the query.