for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* 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;
/**
* UploadForTask Trait.
trait UploadForTaskTrait
{
* @param string $id
* @param array|null $params
* @throws \Zibios\WrikePhpLibrary\Exception\Api\ApiException
* @throws \LogicException
* @throws \InvalidArgumentException
* @throws \Exception
* @return mixed
public function uploadForTask($id, array $params = [])
return $this->executeRequest(
RequestMethodEnum::UPLOAD,
ResourceMethodEnum::UPLOAD_FOR_TASK,
$params,
$id
);
}
* @param string $requestMethod
* @param string $requestScope
* @param array $params
* @param string|array $id
abstract protected function executeRequest(
$requestMethod,
$requestScope,
array $params,