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

apply() public method

Returns the changes the macro would make to a ticket.
public apply ( $id ) : mixed
$id
return mixed
    public function apply($id)
    {
        if (empty($id)) {
            $id = $this->getChainedParameter(get_class($this));
        }
        if (empty($id)) {
            throw new MissingParametersException(__METHOD__, ['id']);
        }
        return $this->client->get($this->getRoute(__FUNCTION__, ['id' => $id]));
    }