This commit is contained in:
Yuri Kuznetsov
2025-09-19 17:43:27 +03:00
parent cc16f0fd6c
commit a53f1fdc46

View File

@@ -267,32 +267,26 @@ class RequestWrapper implements ApiRequest
public function isGet(): bool
{
return $this->getMethod() === 'GET';
return $this->getMethod() === Method::GET;
}
public function isPut(): bool
{
return $this->getMethod() === 'PUT';
}
/** @noinspection PhpUnused */
public function isUpdate(): bool
{
return $this->getMethod() === 'UPDATE';
return $this->getMethod() === Method::PUT;
}
public function isPost(): bool
{
return $this->getMethod() === 'POST';
return $this->getMethod() === Method::POST;
}
public function isPatch(): bool
{
return $this->getMethod() === 'PATCH';
return $this->getMethod() === Method::PATCH;
}
public function isDelete(): bool
{
return $this->getMethod() === 'DELETE';
return $this->getMethod() === Method::DELETE;
}
}