src/Discussion/Discussion.php
public function rename($title)
    {
        if ($this->title !== $title) {
            $oldTitle = $this->title;
            $this->title = $title;

            $this->raise(new Renamed($this, $oldTitle));
        }

        return $this;
    }
public function rename($title)
    {
        if ($this->title !== $title) {
            $oldTitle = $this->title;
            $this->title = $title;

            $this->raise(new Renamed($this, $oldTitle));
        }

        return $this;
    }
public function rename ( $ title ) { if ( $ this -> title !== $ title ) { $ oldTitle = $ this -> title ; $ this -> title = $ title ; $ this -> raise ( new Renamed ( $ this , $ oldTitle ) ) ; } return $ this ; }
Rename the discussion. Raises the DiscussionWasRenamed event.

@param string $title
@return $this
Rename the discussion . Raises the DiscussionWasRenamed event .