/** * Returns an instance of class (singleton pattern implementation). * * @return NOTIFICATIONS_BOL_RuleDao */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
public function saveRule(NOTIFICATIONS_BOL_Rule $rule) { $this->ruleDao->save($rule); }