protected function __construct() { global $threadedFactoryInstance; $threadedFactoryInstance = $this; self::$instance = $this; }