protected function getPostsCount() { if (!$this->m_dbObject->getId()) { return 0; } return $this->m_dbObject->getPoints(); }