DataSift\Storyplayer\Console\DefaultConsole::startPhase PHP Method

startPhase() public method

called when a story starts a new phase
public startPhase ( $phase ) : void
return void
    public function startPhase($phase)
    {
        // shorthand
        $phaseType = $phase->getPhaseType();
        $phaseSeqNo = $phase->getPhaseSequenceNo();
        // we're only interested in telling the user about the
        // phases of a story
        if ($phaseType !== Phase::STORY_PHASE) {
            return;
        }
        // tell the user
        $this->write($phaseSeqNo, $this->writer->miniPhaseNameStyle);
    }