public static function instance($session = null) { if (!self::$instance) { self::$instance = new self($session); } return self::$instance; }
/** * Returns self, instantiating self if necessary * * @return [Session] self::$instance Static version of $this */ public static function instance() { if (!self::$instance) { self::$instance = new self(); } return self::$instance; }