<?php

namespace PaymentWebhooks\Contract;

use WP_REST_Request;

interface PayloadValidatorInterface
{
    /**
     * Return decoded payload array or null on failure.
     */
    public function validate(WP_REST_Request $request): ?array;
}
