public function __construct($settings) { $this->settings = $this->validateSettings($settings); self::$instance = $this; }