Zendesk\API\Resources\Core\Macros::applyToTicket PHP Method

applyToTicket() public method

Returns the full ticket object as it would be after applying the macro to the ticket.
public applyToTicket ( $id, $ticketId ) : stdClass
$id
$ticketId
return stdClass | null
    public function applyToTicket($id, $ticketId)
    {
        if (empty($id)) {
            $id = $this->getChainedParameter(get_class($this));
        }
        if (empty($ticketId)) {
            $ticketId = $this->getChainedParameter(Tickets::class);
        }
        if (empty($id)) {
            throw new MissingParametersException(__METHOD__, ['id', 'ticketId']);
        }
        return $this->client->get($this->getRoute(__FUNCTION__, ['id' => $id, 'ticketId' => $ticketId]));
    }