Ejemplo n.º 1
0
 /**
  * Sets the singleton instance. For testing purposes.
  *
  * @param mixed
  * @ignore
  */
 public static function setSingletonInstance($instance)
 {
     self::$instance = $instance;
 }
Ejemplo n.º 2
0
 /**
  * Returns Singleton instance
  *
  * @return \Piwik\Option
  */
 private static function getInstance()
 {
     if (self::$instance == null) {
         self::$instance = new self();
     }
     return self::$instance;
 }