protected function succeed($result = null)
    {
        $this->isFinished = true;
        $this->isSuccess = true;
        $this->result = $result;
    }
protected function succeed($result = null)
    {
        $this->isFinished = true;
        $this->isSuccess = true;
        $this->result = $result;
    }
protected function succeed ( $ result = null ) { $ this -> isFinished = true ; $ this -> isSuccess = true ; $ this -> result = $ result ; }
Marks the flow as successful and sets the result.

@param mixed|null $result
Marks the flow as successful and sets the result .