src/EB/SDK/Webhook/Payload.php
public function setAction($action)
    {
        if (! Type::isValidWebhookType($action)) {
            throw new \Exception(sprintf('The action "%s" isn\'t supported!', $action));
        }

        $this->action = $action;

        return $this;
    }
public function setAction($action)
    {
        if (! Type::isValidWebhookType($action)) {
            throw new \Exception(sprintf('The action "%s" isn\'t supported!', $action));
        }

        $this->action = $action;

        return $this;
    }
@param string $action

@return Payload
@throws \Exception