modify plugin name

This commit is contained in:
2022-03-01 18:46:08 +08:00
parent f17a55f8d0
commit d589e096af
4 changed files with 116 additions and 232 deletions
+45
View File
@@ -53,6 +53,11 @@ abstract class ClientAbstracts implements IClient
private int $statusCode = 200;
protected int $retryNum = 3;
protected int $retryTimeout = 3;
private bool $VERIFYPEER = TRUE;
@@ -73,6 +78,46 @@ abstract class ClientAbstracts implements IClient
protected mixed $client;
/**
* @param int $retryNum
* @return $this
*/
public function withRetryNum(int $retryNum): static
{
$this->retryNum = $retryNum;
return $this;
}
/**
* @param int $retryTimeout
* @return $this
*/
public function withRetryTimeout(int $retryTimeout): static
{
$this->retryTimeout = $retryTimeout;
return $this;
}
/**
* @return int
*/
public function getRetryNum(): int
{
return $this->retryNum;
}
/**
* @return int
*/
public function getRetryTimeout(): int
{
return $this->retryTimeout;
}
/**
* @param $bool
* @return $this