<?php

/** 
 * LICENSE: ##LICENSE##.
 * 
 * @category   Anahita
 *
 * @author     Arash Sanieyan <ash@anahitapolis.com>
 * @author     Rastin Mehr <rastin@anahita.io>
 * @copyright  2008 - 2010 rmdStudio Inc./Peerglobe Technology Inc
 * @license    GNU GPLv3 <http://www.gnu.org/licenses/gpl-3.0.html>
 *
 * @version    SVN: $Id$
 *
 * @link       http://www.Anahita.io
 */

/**
 * Default notification delegate.
 *
 * @category   Anahita
 *
 * @author     Arash Sanieyan <ash@anahitapolis.com>
 * @author     Rastin Mehr <rastin@anahita.io>
 * @license    GNU GPLv3 <http://www.gnu.org/licenses/gpl-3.0.html>
 *
 * @link       http://www.Anahita.io
 */
class ComNotificationsDomainDelegateSettingDefault extends AnObject implements ComNotificationsDomainDelegateSettingInterface
{
    /**
     * 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
     */
    public function shouldNotify($person, $notification, $setting)
    {
        return ComNotificationsConstant::NOTIFY_WITH_EMAIL;
    }
}
