protected function getEnvironmentEndpoint(?string $group = null): ?string
    {
        $environment = $this->getEnvironment();

        if (\is_null($group) || empty($group)) {
            return static::$endpoints[$environment];
        }

        return static::$endpoints[$environment][$group] ?? null;
    }
protected function getEnvironmentEndpoint(?string $group = null): ?string
    {
        $environment = $this->getEnvironment();

        if (\is_null($group) || empty($group)) {
            return static::$endpoints[$environment];
        }

        return static::$endpoints[$environment][$group] ?? null;
    }
protected function getEnvironmentEndpoint ( ? string $ group = null ) : ? string { $ environment = $ this -> getEnvironment ( ) ; if ( \ is_null ( $ group ) || empty ( $ group ) ) { return static :: $ endpoints [ $ environment ] ; } return static :: $ endpoints [ $ environment ] [ $ group ] ?? null ; }
Get environment endpoint.

@param string|null $group

@return string|null
Get environment endpoint .