Example #1
0
 /**
  * method to retrieve the tariff instance
  * 
  * @return Billrun_Subscriber
  */
 public static function tariff()
 {
     if (!self::$tariff) {
         $tariffSettings = self::config()->getConfigValue('tariff', array());
         self::$tariff = Billrun_Tariff::getInstance($tariffSettings);
     }
     return self::$tariff;
 }
Example #2
0
 /**
  * Singleton of tariff class
  * 
  * @param array $options the options of the instance
  * 
  * @return type
  */
 public static function getInstance(array $options = array())
 {
     if (!isset(self::$instance)) {
         self::$instance = new self($options);
     }
     return self::$instance;
 }