*/ declare(strict_types=1); namespace oat\taoTestTaker\models\events; use oat\tao\model\webhooks\WebhookSerializableEventInterface; /** * Class TestTakerCreatedEvent * @package oat\taoTestTaker\models\events */ class TestTakerCreatedEvent extends AbstractTestTakerEvent implements WebhookSerializableEventInterface { private const WEBHOOK_EVENT_NAME = 'test-taker-created'; /** * @inheritDoc */ public function getWebhookEventName() { return self::WEBHOOK_EVENT_NAME; } /** * @inheritDoc */ public function serializeForWebhook() { return [ 'testTakerUri' => $this->testTakerUri, 'unit' => 1 ]; } }