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