src/HttpClientPool/HttpClientPoolItem.php
public function isDisabled(): bool
    {
        if (null !== $this->reenableAfter && null !== $this->disabledAt) {
            // Reenable after a certain time
            $now = new \DateTime();

            if (($now->getTimestamp() - $this->disabledAt->getTimestamp()) >= $this->reenableAfter) {
                $this->enable();

                return false;
            }

            return true;
        }

        return null !== $this->disabledAt;
    }
public function isDisabled(): bool
    {
        if (null !== $this->reenableAfter && null !== $this->disabledAt) {
            // Reenable after a certain time
            $now = new \DateTime();

            if (($now->getTimestamp() - $this->disabledAt->getTimestamp()) >= $this->reenableAfter) {
                $this->enable();

                return false;
            }

            return true;
        }

        return null !== $this->disabledAt;
    }
public function isDisabled ( ) : bool { if ( null !== $ this -> reenableAfter && null !== $ this -> disabledAt ) { // Reenable after a certain time $ now = new \ DateTime ( ) ; if ( ( $ now -> getTimestamp ( ) - $ this -> disabledAt -> getTimestamp ( ) ) >= $ this -> reenableAfter ) { $ this -> enable ( ) ; return false ; } return true ; } return null !== $ this -> disabledAt ; }
Whether this client is disabled or not.

If the client was disabled, calling this method checks if the client can
be reenabled and if so enables it.
Whether this client is disabled or not .