public function setDispatched($flag)
    {
        $this->dispatched = $flag ? true : false;

        if ($flag) {
            $this->emitRequestDispatched($this);
        }
    }
public function setDispatched($flag)
    {
        $this->dispatched = $flag ? true : false;

        if ($flag) {
            $this->emitRequestDispatched($this);
        }
    }
public function setDispatched ( $ flag ) { $ this -> dispatched = $ flag ? true : false ; if ( $ flag ) { $ this -> emitRequestDispatched ( $ this ) ; } }
Sets the dispatched flag

@param boolean $flag If this request has been dispatched
@return void
@api
Sets the dispatched flag