endpoint = $endpoint; } public function setEndpoint($endpoint) { $this->endpoint = $endpoint; return $this; } public function init() { if (!static::$instance) { static::$instance = new static(); } return static::$instance; } }