public function create(RuleListener $listener)
    {
        $rule = new Rule();
        $form = $this->presenter->form($rule);

        return $listener->showCreateForm(compact('rule', 'form'));
    }
public function create(RuleListener $listener)
    {
        $rule = new Rule();
        $form = $this->presenter->form($rule);

        return $listener->showCreateForm(compact('rule', 'form'));
    }
public function create ( RuleListener $ listener ) { $ rule = new Rule ( ) ; $ form = $ this -> presenter -> form ( $ rule ) ; return $ listener -> showCreateForm ( compact ( 'rule' , 'form' ) ) ; }
Creates form for a new rule.

@param RuleListener $listener
@return mixed
Creates form for a new rule .