public function reset($force = false)
    {
        $this->isBroadcast = false;
        $this->to = [];

        if ($force) {
            $this->sender = null;
            $this->userId = null;
        }

        return $this;
    }
public function reset($force = false)
    {
        $this->isBroadcast = false;
        $this->to = [];

        if ($force) {
            $this->sender = null;
            $this->userId = null;
        }

        return $this;
    }
public function reset ( $ force = false ) { $ this -> isBroadcast = false ; $ this -> to = [ ] ; if ( $ force ) { $ this -> sender = null ; $ this -> userId = null ; } return $ this ; }
Reset some data status.

@param bool $force

@return $this
Reset some data status .