改名
This commit is contained in:
@@ -298,7 +298,7 @@ abstract class ClientAbstracts implements IClient
|
|||||||
* @param bool $isSSL
|
* @param bool $isSSL
|
||||||
* @return ClientAbstracts
|
* @return ClientAbstracts
|
||||||
*/
|
*/
|
||||||
private function withIsSSL(bool $isSSL): static
|
public function withIsSSL(bool $isSSL): static
|
||||||
{
|
{
|
||||||
$this->isSSL = $isSSL;
|
$this->isSSL = $isSSL;
|
||||||
return $this;
|
return $this;
|
||||||
@@ -555,7 +555,7 @@ abstract class ClientAbstracts implements IClient
|
|||||||
* @return bool
|
* @return bool
|
||||||
* check isPost Request
|
* check isPost Request
|
||||||
*/
|
*/
|
||||||
#[Pure] public function isPost(): bool
|
#[Pure] protected function isPost(): bool
|
||||||
{
|
{
|
||||||
return strtolower($this->method) === self::POST;
|
return strtolower($this->method) === self::POST;
|
||||||
}
|
}
|
||||||
@@ -564,7 +564,7 @@ abstract class ClientAbstracts implements IClient
|
|||||||
* @return bool
|
* @return bool
|
||||||
* check isPost Request
|
* check isPost Request
|
||||||
*/
|
*/
|
||||||
#[Pure] public function isUpload(): bool
|
#[Pure] protected function isUpload(): bool
|
||||||
{
|
{
|
||||||
return strtolower($this->method) === self::UPLOAD;
|
return strtolower($this->method) === self::UPLOAD;
|
||||||
}
|
}
|
||||||
@@ -575,7 +575,7 @@ abstract class ClientAbstracts implements IClient
|
|||||||
*
|
*
|
||||||
* check isGet Request
|
* check isGet Request
|
||||||
*/
|
*/
|
||||||
#[Pure] public function isGet(): bool
|
#[Pure] protected function isGet(): bool
|
||||||
{
|
{
|
||||||
return strtolower($this->method) === self::GET;
|
return strtolower($this->method) === self::GET;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user