Code Duplication    Length = 9-10 lines in 3 locations

src/Queries/Mysql/Count.php 1 location

@@ 46-55 (lines=10) @@
43
    /**
44
     * {@inheritdoc}
45
     */
46
    public function __toString()
47
    {
48
        $query = "SELECT COUNT(*) FROM `{$this->entity->name}`";
49
50
        $query .= $this->fromToString();
51
        $query .= $this->whereToString();
52
        $query .= $this->limitToString();
53
54
        return $query;
55
    }
56
}
57

src/Queries/Mysql/Delete.php 1 location

@@ 30-38 (lines=9) @@
27
     *
28
     * @return string
29
     */
30
    public function __toString()
31
    {
32
        $query = "DELETE FROM `{$this->entity->name}`";
33
34
        $query .= $this->whereToString();
35
        $query .= $this->limitToString();
36
37
        return $query;
38
    }
39
}
40

src/Queries/Mysql/Sum.php 1 location

@@ 63-72 (lines=10) @@
60
     *
61
     * @return string
62
     */
63
    public function __toString()
64
    {
65
        $query = "SELECT SUM(`{$this->field}`) FROM `{$this->entity->name}`";
66
67
        $query .= $this->fromToString();
68
        $query .= $this->whereToString();
69
        $query .= $this->limitToString();
70
71
        return $query;
72
    }
73
}
74