public static function newInstance() { if (!self::$instance instanceof self) { self::$instance = new self(); } return self::$instance; }
public static function getInstance() { if (empty(self::$instance)) { self::$instance = new Preference(); } return self::$instance; }