<?php
namespace Fifa\ConnectId\Sdk\Registration\Event\Handler;

use Exception;
use Fifa\ConnectId\Sdk\Model\PersonDetails;
use Fifa\ConnectId\Sdk\Model\PersonDetailsRequest;

/**
 * Interface EventHandlerInterface
 * @package Fifa\ConnectId\Sdk\Registration\Event\Handler
 */
interface EventHandlerInterface
{
    /**
     * Code that will be executed when Event will be raised
     *
     * @param PersonDetails|PersonDetailsRequest|Exception $eventData
     */
    public function execute($eventData);
}