public function shouldNotify($person, $notification, $setting)
    {
        $should_notify = self::NOTIFY_WITH_EMAIL;

        if ($setting && !$setting->sendEmail('posts', true)) {
            $should_notify = self::NOTIFY;
        }

        return $should_notify;
    }
public function shouldNotify($person, $notification, $setting)
    {
        $should_notify = self::NOTIFY_WITH_EMAIL;

        if ($setting && !$setting->sendEmail('posts', true)) {
            $should_notify = self::NOTIFY;
        }

        return $should_notify;
    }
public function shouldNotify ( $ person , $ notification , $ setting ) { $ should_notify = self :: NOTIFY_WITH_EMAIL ; if ( $ setting && ! $ setting -> sendEmail ( 'posts' , true ) ) { $ should_notify = self :: NOTIFY ; } return $ should_notify ; }
Checks with whether to notify a person or not.

@param ComPeopleDomainEntityPerson              $person       Person that notification being sent to
@param ComNotificationsDomainEntityNotification $notification The notification object
@param ComNotificationsDomainEntitySetting      $setting      The setting object, it maybe NULL

@return int
Checks with whether to notify a person or not .