Skip to content

Commit

Permalink
renamed the interface IPageFlow to PageFlowInterface (Issue piece#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
iteman committed Aug 2, 2013
1 parent f000ad5 commit 15b52aa
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Piece/Flow/Continuation/NullPageFlow.php
Expand Up @@ -38,7 +38,7 @@
namespace Piece\Flow\Continuation;

use Piece\Flow\PageFlow\ActionInvoker;
use Piece\Flow\PageFlow\IPageFlow;
use Piece\Flow\PageFlow\PageFlowInterface;

/**
* @package Piece_Flow
Expand All @@ -47,7 +47,7 @@
* @version Release: @package_version@
* @since Class available since Release 2.0.0
*/
class NullPageFlow implements IPageFlow
class NullPageFlow implements PageFlowInterface
{
/**
* @var string
Expand Down
4 changes: 2 additions & 2 deletions src/Piece/Flow/Continuation/PageFlowInstance.php
Expand Up @@ -38,8 +38,8 @@
namespace Piece\Flow\Continuation;

use Piece\Flow\PageFlow\ActionInvoker;
use Piece\Flow\PageFlow\IPageFlow;
use Piece\Flow\PageFlow\PageFlow;
use Piece\Flow\PageFlow\PageFlowInterface;

/**
* @package Piece_Flow
Expand All @@ -48,7 +48,7 @@
* @version Release: @package_version@
* @since Class available since Release 2.0.0
*/
class PageFlowInstance implements IPageFlow
class PageFlowInstance implements PageFlowInterface
{
/**
* @var string
Expand Down
4 changes: 2 additions & 2 deletions src/Piece/Flow/PageFlow/PageFlow.php
Expand Up @@ -65,7 +65,7 @@
* @link http://www-06.ibm.com/jp/developerworks/java/060412/j_j-cb03216.shtml
* @since Class available since Release 0.1.0
*/
class PageFlow implements IPageFlow
class PageFlow implements PageFlowInterface
{
/**
* @since Constant available since Release 2.0.0
Expand Down Expand Up @@ -202,7 +202,7 @@ public function triggerEvent($eventID)

$this->fsm->triggerEvent($eventID, false);
if (in_array($this->fsm->getCurrentState()->getStateID(), $this->endStates)) {
$this->fsm->triggerEvent(IPageFlow::EVENT_END);
$this->fsm->triggerEvent(PageFlowInterface::EVENT_END);
}

return $this->fsm->getCurrentState();
Expand Down
4 changes: 2 additions & 2 deletions src/Piece/Flow/PageFlow/PageFlowGenerator.php
Expand Up @@ -117,9 +117,9 @@ public function generate()
}

if (empty($definition['final'])) {
$this->fsmBuilder->setEndState($definition['lastState']['name'], IPageFlow::EVENT_END);
$this->fsmBuilder->setEndState($definition['lastState']['name'], PageFlowInterface::EVENT_END);
} else {
$this->fsmBuilder->setEndState($definition['lastState']['name'], IPageFlow::EVENT_END, $this->wrapAction($definition['final']));
$this->fsmBuilder->setEndState($definition['lastState']['name'], PageFlowInterface::EVENT_END, $this->wrapAction($definition['final']));
}
$this->configureViewState($definition['lastState']);
$this->pageFlow->addEndState($definition['lastState']['name']);
Expand Down
Expand Up @@ -44,7 +44,7 @@
* @version Release: @package_version@
* @since Class available since Release 2.0.0
*/
interface IPageFlow
interface PageFlowInterface
{
const EVENT_END = '__END__';

Expand Down

0 comments on commit 15b52aa

Please sign in to comment.