public function getUnreadMessageCount()
    {
        $messageMapper = ($this->container->dataMapper)('MessageMapper');
        $count = $messageMapper->findUnreadCount();

        return ($count === 0) ? null : $count;
    }
public function getUnreadMessageCount()
    {
        $messageMapper = ($this->container->dataMapper)('MessageMapper');
        $count = $messageMapper->findUnreadCount();

        return ($count === 0) ? null : $count;
    }
public function getUnreadMessageCount ( ) { $ messageMapper = ( $ this -> container -> dataMapper ) ( 'MessageMapper' ) ; $ count = $ messageMapper -> findUnreadCount ( ) ; return ( $ count === 0 ) ? null : $ count ; }
Get Unread Message Count

Gets count of unread messages
@param  void
@return mixed
Get Unread Message Count