Skip to content

Commit ae69a27

Browse files
committed
KRF-361 #resolve Made all flush-like methods consistent
1 parent b7579ae commit ae69a27

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Loop.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public function getModel()
4141
* @override
4242
* @inheritDoc
4343
*/
44-
public function flush($all = false)
44+
public function erase($all = false)
4545
{
46-
$this->loop->flush($all);
46+
$this->loop->erase($all);
4747

4848
return $this;
4949
}

LoopExtendedInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ public function setFlowController($flowController);
4242
public function getFlowController();
4343

4444
/**
45-
* Flush loop.
45+
* Erase loop.
4646
*
4747
* @param bool $all
4848
* @return LoopExtendedInterface
4949
*/
50-
public function flush($all = false);
50+
public function erase($all = false);
5151

5252
/**
5353
* Export loop not fired handlers and/or streams to another loop model.

LoopModelInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function getFlowController();
159159
* @param bool $all
160160
* @return LoopModelInterface
161161
*/
162-
public function flush($all = false);
162+
public function erase($all = false);
163163

164164
/**
165165
* Export loop not fired handlers and/or streams to another loop model.

Model/SelectLoop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public function getFlowController()
363363
* @override
364364
* @inheritDoc
365365
*/
366-
public function flush($all = false)
366+
public function erase($all = false)
367367
{
368368
$this->stop();
369369
$loop = new static();

0 commit comments

Comments
 (0)