/** * * @return \Zo2Logs */ public static function getInstance() { if (!isset(self::$instance)) { self::$instance = new Zo2Logs(); } if (isset(self::$instance)) { return self::$instance; } }
public static function addLog($title, $message, $type = 'notice') { Zo2Logs::getInstance()->add($title, $message, $type); }