public static function getInstance() { static $instance = null; if (!$instance) { $instance = new static(); } return $instance; }