for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace seregazhuk\Favro\Api\Endpoints;
use seregazhuk\Favro\Api\Endpoints\Traits\CrudEndpoint;
use seregazhuk\Favro\Api\Endpoints\Traits\BelongsToOrganization;
class Cards extends Endpoint
{
use BelongsToOrganization, CrudEndpoint;
/**
* @var string
*/
protected $endpoint = 'cards';
* @param string $widgetCommonId
* @return mixed
public function getAll($widgetCommonId)
return parent::getAll(['widgetCommonId'=>$widgetCommonId]);
}
* @param string $cardId
* @param bool $everywhere
public function delete($cardId, $everywhere)
return $this
->getHttp()
->delete(
$this->makeRequestUrl($cardId),
['everywhere' => $everywhere],
$this->getHeaders()
);