Skip to content

Commit 48c9dec

Browse files
committed
Statements got a new method: cloneStatement()
1 parent 24e99a3 commit 48c9dec

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

src/Kir/MySQL/Builder/Statement.php

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ public function __construct(Database $db) {
1616
$this->db = $db;
1717
}
1818

19-
/**
20-
* @return Database
21-
*/
22-
protected function db() {
23-
return $this->db;
24-
}
25-
2619
/**
2720
* @param bool $stop
2821
* @return $this
@@ -38,4 +31,18 @@ public function debug($stop = true) {
3831
}
3932
return $this;
4033
}
41-
}
34+
35+
/**
36+
* @return Statement
37+
*/
38+
public function cloneStatement() {
39+
return clone $this;
40+
}
41+
42+
/**
43+
* @return Database
44+
*/
45+
protected function db() {
46+
return $this->db;
47+
}
48+
}

0 commit comments

Comments
 (0)