Phosphorum\Notifications\Checker::getNumber PHP Метод

getNumber() публичный Метод

Check whether there are unread notifications or not
public getNumber ( ) : integer
Результат 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;
    }