Zendesk\API\Resources\Core\Tickets::merge PHP Method

merge() public method

public merge ( array $params = [] ) : stdClass
$params array
return stdClass | null
    public function merge(array $params = [])
    {
        $params = $this->addChainedParametersToParams($params, ['id' => get_class($this)]);
        if (!$this->hasKeys($params, ['id', 'ids'])) {
            throw new MissingParametersException(__METHOD__, ['id', 'ids']);
        }
        $route = $this->getRoute(__FUNCTION__, ['id' => $params['id']]);
        unset($params['id']);
        $response = Http::send($this->client, $route, ['method' => 'POST', 'postFields' => $params]);
        return $response;
    }