CoreFiles by mySites.guru
NativeClientState.php43 lines, 966 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
61ea25dadfb36a0ddd8544bd091db32d
sha1
15eeee910209279f35c74944577ad954a6e54035
sha256
ea7e3cd6d2fa0beb8c0c1658524b32a1ea5d105743d08bf6f1c8f9c9b3ec2512
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\HttpClient\Internal;

/**
 * Internal representation of the native client's state.
 *
 * @author Alexander M. Turek <[email protected]>
 *
 * @internal
 */
final class NativeClientState extends ClientState
{
    public int $id;
    public int $maxHostConnections = \PHP_INT_MAX;
    public int $responseCount = 0;
    /** @var string[] */
    public array $dnsCache = [];
    public bool $sleep = false;
    /** @var int[] */
    public array $hosts = [];

    public function __construct()
    {
        $this->id = random_int(\PHP_INT_MIN, \PHP_INT_MAX);
    }

    public function reset(): void
    {
        $this->responseCount = 0;
        $this->dnsCache = [];
        $this->hosts = [];
    }
}

The same content is in 136 releases, Joomla 5.1.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.