public function __construct() { $config = new Config(); $this->isActive = $config->getValue('newsletter.newsletterEnabled'); if (null === $this->isActive) { $this->isActive = 0; } $this->notifyType = $config->getValue('newsletter.newsletterNotifyType'); if (null === $this->notifyType) { $this->notifyType = self::$NOTIFY_TYPE_IMMEDIATE; } }