<?php
/**
 * User: Damian Zamojski (br33f)
 * Date: 22.06.2021
 * Time: 11:10
 */

namespace PYS_PRO_GLOBAL\Br33f\Ga4\MeasurementProtocol\Dto;

use PYS_PRO_GLOBAL\Br33f\Ga4\MeasurementProtocol\Exception\ValidationException;

interface RequestValidateInterface
{
    /**
     * Method validates object. Throws exception if error, returns true if valid.
     * @param string|null $context
     * @return boolean
     * @throws ValidationException
     */
    public function validate(?string $context);
}