public function setTopic($topic) { $this->topic = $topic; return $this; }
public function poll($poll = null) { if ($this->_poll === null) { if ($poll === null) { $poll = new TopicPoll(); } $this->_poll = $poll->setTopic($this); } return $this->_poll; }