Phosphorum\Notifications\Checker::getNumber PHP Method

getNumber() public method

Check whether there are unread notifications or not
public getNumber ( ) : integer
return integer
    public function getNumber()
    {
        $usersId = $this->session->get('identity');
        if (!$usersId) {
            return 0;
        }
        $number = ActivityNotifications::count(['users_id = ?0 AND was_read = "N"', 'bind' => [$usersId]]);
        return $number;
    }