for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the zibios/wrike-php-library package.
*
* (c) Zbigniew Ślązak
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Zibios\WrikePhpLibrary\Resource\Traits;
use Zibios\WrikePhpLibrary\Enum\Api\RequestMethodEnum;
use Zibios\WrikePhpLibrary\Enum\Api\ResourceMethodEnum;
/**
* Delete Trait.
trait DeleteTrait
{
* @param string $id
* @param array|null $params
* @throws \Zibios\WrikePhpLibrary\Exception\Api\ApiException
* @throws \LogicException
* @throws \InvalidArgumentException
* @throws \Throwable
* @return mixed
public function delete(string $id, array $params = [])
return $this->executeRequest(
RequestMethodEnum::DELETE,
ResourceMethodEnum::DELETE,
$params,
$id
);
}
* @param string $requestMethod
* @param string $requestScope
* @param array $params
* @param string|array $id
abstract protected function executeRequest(
string $requestMethod,
string $requestScope,
array $params,