public function validateDeveloperKey($key)
    {
        if ('' === $key) {
            return $this;
        }

        if (!is_string($key) || strlen($key) !== 48) {
            throw new InvalidArgumentException(
                'Developer key must be a string of exactly 48 characters',
                401
            );
        }

        return $this;
    }